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 18 of file PresetAcceleration.h.

Constructor & Destructor Documentation

PresetAcceleration::PresetAcceleration ( const InputParameters &  parameters)

Definition at line 24 of file PresetAcceleration.C.

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

Member Function Documentation

Real PresetAcceleration::computeQpValue ( )
protectedvirtual

Definition at line 36 of file PresetAcceleration.C.

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

Member Data Documentation

const VariableValue& PresetAcceleration::_accel_old
protected

Definition at line 30 of file PresetAcceleration.h.

Referenced by computeQpValue().

const Real PresetAcceleration::_beta
protected

Definition at line 31 of file PresetAcceleration.h.

Referenced by computeQpValue().

Function& PresetAcceleration::_function
protected

Definition at line 28 of file PresetAcceleration.h.

Referenced by computeQpValue().

const Real PresetAcceleration::_scale_factor
protected

Definition at line 27 of file PresetAcceleration.h.

const VariableValue& PresetAcceleration::_u_old
protected

Definition at line 26 of file PresetAcceleration.h.

Referenced by computeQpValue().

const VariableValue& PresetAcceleration::_vel_old
protected

Definition at line 29 of file PresetAcceleration.h.

Referenced by computeQpValue().


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