www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PresetDisplacement Class Reference

This class applies a displacement time history on a given boundary in a given direction. More...

#include <PresetDisplacement.h>

Inheritance diagram for PresetDisplacement:
[legend]

Public Member Functions

 PresetDisplacement (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpValue ()
 

Protected Attributes

const VariableValue & _u_old
 
const Real _scale_factor
 
Function & _function
 
const VariableValue & _vel_old
 
const VariableValue & _accel_old
 
const Real _beta
 

Detailed Description

This class applies a displacement time history on a given boundary in a given direction.

The displacement is converted to acceleration using backward euler differentiation and then integrated using newmark time integration scheme to get the displacement. This modified displacement is then applied to the boundary.

Definition at line 20 of file PresetDisplacement.h.

Constructor & Destructor Documentation

PresetDisplacement::PresetDisplacement ( const InputParameters &  parameters)

Definition at line 25 of file PresetDisplacement.C.

26  : PresetNodalBC(parameters),
27  _u_old(valueOld()),
28  _scale_factor(parameters.get<Real>("scale_factor")),
29  _function(getFunction("function")),
30  _vel_old(coupledValueOld("velocity")),
31  _accel_old(coupledValueOld("acceleration")),
32  _beta(getParam<Real>("beta"))
33 {
34 }
const VariableValue & _accel_old
const VariableValue & _u_old
const VariableValue & _vel_old

Member Function Documentation

Real PresetDisplacement::computeQpValue ( )
protectedvirtual

Definition at line 37 of file PresetDisplacement.C.

38 {
39  Point p;
40  Real vel = _function.timeDerivative(_t, p);
41  Real vel_old = _function.timeDerivative(_t - _dt, p);
42  Real accel = (vel - vel_old) / _dt;
43 
44  return _u_old[_qp] + _dt * _vel_old[_qp] +
45  ((0.5 - _beta) * _accel_old[_qp] + _beta * accel) * _dt * _dt;
46 }
const VariableValue & _accel_old
const VariableValue & _u_old
const VariableValue & _vel_old

Member Data Documentation

const VariableValue& PresetDisplacement::_accel_old
protected

Definition at line 32 of file PresetDisplacement.h.

Referenced by computeQpValue().

const Real PresetDisplacement::_beta
protected

Definition at line 33 of file PresetDisplacement.h.

Referenced by computeQpValue().

Function& PresetDisplacement::_function
protected

Definition at line 30 of file PresetDisplacement.h.

Referenced by computeQpValue().

const Real PresetDisplacement::_scale_factor
protected

Definition at line 29 of file PresetDisplacement.h.

const VariableValue& PresetDisplacement::_u_old
protected

Definition at line 28 of file PresetDisplacement.h.

Referenced by computeQpValue().

const VariableValue& PresetDisplacement::_vel_old
protected

Definition at line 31 of file PresetDisplacement.h.

Referenced by computeQpValue().


The documentation for this class was generated from the following files: