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

#include <NewmarkVelAux.h>

Inheritance diagram for NewmarkVelAux:
[legend]

Public Member Functions

 NewmarkVelAux (const InputParameters &parameters)
 Calcualtes velocity using Newmark time integration scheme. More...
 
virtual ~NewmarkVelAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableValue & _accel_old
 
const VariableValue & _accel
 
Real _gamma
 

Detailed Description

Definition at line 17 of file NewmarkVelAux.h.

Constructor & Destructor Documentation

NewmarkVelAux::NewmarkVelAux ( const InputParameters &  parameters)

Calcualtes velocity using Newmark time integration scheme.

Definition at line 19 of file NewmarkVelAux.C.

20  : AuxKernel(parameters),
21  _accel_old(coupledValueOld("acceleration")),
22  _accel(coupledValue("acceleration")),
23  _gamma(getParam<Real>("gamma"))
24 {
25 }
const VariableValue & _accel_old
Definition: NewmarkVelAux.h:30
const VariableValue & _accel
Definition: NewmarkVelAux.h:31
virtual NewmarkVelAux::~NewmarkVelAux ( )
inlinevirtual

Definition at line 25 of file NewmarkVelAux.h.

25 {}

Member Function Documentation

Real NewmarkVelAux::computeValue ( )
protectedvirtual

Definition at line 28 of file NewmarkVelAux.C.

Referenced by ~NewmarkVelAux().

29 {
30  Real vel_old = _u_old[_qp];
31  if (!isNodal())
32  mooseError("must run on a nodal variable");
33  // Calculates Velocity using Newmark time integration scheme
34  return vel_old + (_dt * (1 - _gamma)) * _accel_old[_qp] + _gamma * _dt * _accel[_qp];
35 }
const VariableValue & _accel_old
Definition: NewmarkVelAux.h:30
const VariableValue & _accel
Definition: NewmarkVelAux.h:31

Member Data Documentation

const VariableValue& NewmarkVelAux::_accel
protected

Definition at line 31 of file NewmarkVelAux.h.

Referenced by computeValue().

const VariableValue& NewmarkVelAux::_accel_old
protected

Definition at line 30 of file NewmarkVelAux.h.

Referenced by computeValue().

Real NewmarkVelAux::_gamma
protected

Definition at line 32 of file NewmarkVelAux.h.

Referenced by computeValue().


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