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 20 of file NewmarkVelAux.h.

Constructor & Destructor Documentation

◆ NewmarkVelAux()

NewmarkVelAux::NewmarkVelAux ( const InputParameters &  parameters)

Calcualtes velocity using Newmark time integration scheme.

Definition at line 25 of file NewmarkVelAux.C.

26  : AuxKernel(parameters),
27  _accel_old(coupledValueOld("acceleration")),
28  _accel(coupledValue("acceleration")),
29  _gamma(getParam<Real>("gamma"))
30 {
31 }
const VariableValue & _accel_old
Definition: NewmarkVelAux.h:33
const VariableValue & _accel
Definition: NewmarkVelAux.h:34

◆ ~NewmarkVelAux()

virtual NewmarkVelAux::~NewmarkVelAux ( )
inlinevirtual

Definition at line 28 of file NewmarkVelAux.h.

28 {}

Member Function Documentation

◆ computeValue()

Real NewmarkVelAux::computeValue ( )
protectedvirtual

Definition at line 34 of file NewmarkVelAux.C.

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

Member Data Documentation

◆ _accel

const VariableValue& NewmarkVelAux::_accel
protected

Definition at line 34 of file NewmarkVelAux.h.

Referenced by computeValue().

◆ _accel_old

const VariableValue& NewmarkVelAux::_accel_old
protected

Definition at line 33 of file NewmarkVelAux.h.

Referenced by computeValue().

◆ _gamma

Real NewmarkVelAux::_gamma
protected

Definition at line 35 of file NewmarkVelAux.h.

Referenced by computeValue().


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