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 23 of file PresetDisplacement.h.

Constructor & Destructor Documentation

◆ PresetDisplacement()

PresetDisplacement::PresetDisplacement ( const InputParameters &  parameters)

Definition at line 30 of file PresetDisplacement.C.

31  : PresetNodalBC(parameters),
32  _u_old(valueOld()),
33  _scale_factor(parameters.get<Real>("scale_factor")),
34  _function(getFunction("function")),
35  _vel_old(coupledValueOld("velocity")),
36  _accel_old(coupledValueOld("acceleration")),
37  _beta(getParam<Real>("beta"))
38 {
39 }
const VariableValue & _accel_old
const VariableValue & _u_old
const VariableValue & _vel_old

Member Function Documentation

◆ computeQpValue()

Real PresetDisplacement::computeQpValue ( )
protectedvirtual

Definition at line 42 of file PresetDisplacement.C.

43 {
44  Point p;
45  Real vel = _function.timeDerivative(_t, p);
46  Real vel_old = _function.timeDerivative(_t - _dt, p);
47  Real accel = (vel - vel_old) / _dt;
48 
49  return _u_old[_qp] + _dt * _vel_old[_qp] +
50  ((0.5 - _beta) * _accel_old[_qp] + _beta * accel) * _dt * _dt;
51 }
const VariableValue & _accel_old
const VariableValue & _u_old
const VariableValue & _vel_old

Member Data Documentation

◆ _accel_old

const VariableValue& PresetDisplacement::_accel_old
protected

Definition at line 35 of file PresetDisplacement.h.

Referenced by computeQpValue().

◆ _beta

const Real PresetDisplacement::_beta
protected

Definition at line 36 of file PresetDisplacement.h.

Referenced by computeQpValue().

◆ _function

Function& PresetDisplacement::_function
protected

Definition at line 33 of file PresetDisplacement.h.

Referenced by computeQpValue().

◆ _scale_factor

const Real PresetDisplacement::_scale_factor
protected

Definition at line 32 of file PresetDisplacement.h.

◆ _u_old

const VariableValue& PresetDisplacement::_u_old
protected

Definition at line 31 of file PresetDisplacement.h.

Referenced by computeQpValue().

◆ _vel_old

const VariableValue& PresetDisplacement::_vel_old
protected

Definition at line 34 of file PresetDisplacement.h.

Referenced by computeQpValue().


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