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

This class prescribes the acceleration on a given boundary in a given direction. More...

#include <PresetAcceleration.h>

Inheritance diagram for PresetAcceleration:
[legend]

Public Member Functions

 PresetAcceleration (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 prescribes the acceleration on a given boundary in a given direction.

The acceleration is integrated using newmark time integration scheme and the resulting displacement is applied on the boundary.

Definition at line 21 of file PresetAcceleration.h.

Constructor & Destructor Documentation

◆ PresetAcceleration()

PresetAcceleration::PresetAcceleration ( const InputParameters &  parameters)

Definition at line 29 of file PresetAcceleration.C.

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

Member Function Documentation

◆ computeQpValue()

Real PresetAcceleration::computeQpValue ( )
protectedvirtual

Definition at line 41 of file PresetAcceleration.C.

42 {
43  Real accel = _function.value(_t, *_current_node);
44 
45  // Integrate acceleration using Newmark time integration to get displacement
46  return _u_old[_qp] + _dt * _vel_old[_qp] +
47  ((0.5 - _beta) * _accel_old[_qp] + _beta * accel) * _dt * _dt;
48 }
const VariableValue & _u_old
const VariableValue & _vel_old
const VariableValue & _accel_old

Member Data Documentation

◆ _accel_old

const VariableValue& PresetAcceleration::_accel_old
protected

Definition at line 33 of file PresetAcceleration.h.

Referenced by computeQpValue().

◆ _beta

const Real PresetAcceleration::_beta
protected

Definition at line 34 of file PresetAcceleration.h.

Referenced by computeQpValue().

◆ _function

Function& PresetAcceleration::_function
protected

Definition at line 31 of file PresetAcceleration.h.

Referenced by computeQpValue().

◆ _scale_factor

const Real PresetAcceleration::_scale_factor
protected

Definition at line 30 of file PresetAcceleration.h.

◆ _u_old

const VariableValue& PresetAcceleration::_u_old
protected

Definition at line 29 of file PresetAcceleration.h.

Referenced by computeQpValue().

◆ _vel_old

const VariableValue& PresetAcceleration::_vel_old
protected

Definition at line 32 of file PresetAcceleration.h.

Referenced by computeQpValue().


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