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

#include <NewmarkAccelAux.h>

Inheritance diagram for NewmarkAccelAux:
[legend]

Public Member Functions

 NewmarkAccelAux (const InputParameters &parameters)
 Computes Acceleration using Newmark Time integration scheme. More...
 
virtual ~NewmarkAccelAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _disp_old
 
const VariableValue & _disp
 
const VariableValue & _vel_old
 
Real _beta
 

Detailed Description

Definition at line 17 of file NewmarkAccelAux.h.

Constructor & Destructor Documentation

NewmarkAccelAux::NewmarkAccelAux ( const InputParameters &  parameters)

Computes Acceleration using Newmark Time integration scheme.

Definition at line 20 of file NewmarkAccelAux.C.

21  : AuxKernel(parameters),
22  _disp_old(coupledValueOld("displacement")),
23  _disp(coupledValue("displacement")),
24  _vel_old(coupledValueOld("velocity")),
25  _beta(getParam<Real>("beta"))
26 {
27 }
const VariableValue & _disp
const VariableValue & _vel_old
const VariableValue & _disp_old
virtual NewmarkAccelAux::~NewmarkAccelAux ( )
inlinevirtual

Definition at line 25 of file NewmarkAccelAux.h.

25 {}

Member Function Documentation

Real NewmarkAccelAux::computeValue ( )
protectedvirtual

Definition at line 30 of file NewmarkAccelAux.C.

Referenced by ~NewmarkAccelAux().

31 {
32  if (!isNodal())
33  mooseError("must run on a nodal variable");
34 
35  Real accel_old = _u_old[_qp];
36  if (_dt == 0)
37  return accel_old;
38 
39  // Calculates acceeleration using Newmark time integration method
40  return 1.0 / _beta * ((_disp[_qp] - _disp_old[_qp]) / (_dt * _dt) - _vel_old[_qp] / _dt -
41  accel_old * (0.5 - _beta));
42 }
const VariableValue & _disp
const VariableValue & _vel_old
const VariableValue & _disp_old

Member Data Documentation

Real NewmarkAccelAux::_beta
protected

Definition at line 33 of file NewmarkAccelAux.h.

Referenced by computeValue().

const VariableValue& NewmarkAccelAux::_disp
protected

Definition at line 31 of file NewmarkAccelAux.h.

Referenced by computeValue().

const VariableValue& NewmarkAccelAux::_disp_old
protected

Definition at line 30 of file NewmarkAccelAux.h.

Referenced by computeValue().

const VariableValue& NewmarkAccelAux::_vel_old
protected

Definition at line 32 of file NewmarkAccelAux.h.

Referenced by computeValue().


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