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

Constructor & Destructor Documentation

◆ NewmarkAccelAux()

NewmarkAccelAux::NewmarkAccelAux ( const InputParameters &  parameters)


Computes Acceleration using Newmark Time integration scheme

Definition at line 26 of file NewmarkAccelAux.C.

27  : AuxKernel(parameters),
28  _disp_old(coupledValueOld("displacement")),
29  _disp(coupledValue("displacement")),
30  _vel_old(coupledValueOld("velocity")),
31  _beta(getParam<Real>("beta"))
32 {
33 }
const VariableValue & _disp
const VariableValue & _vel_old
const VariableValue & _disp_old

◆ ~NewmarkAccelAux()

virtual NewmarkAccelAux::~NewmarkAccelAux ( )
inlinevirtual

Definition at line 28 of file NewmarkAccelAux.h.

28 {}

Member Function Documentation

◆ computeValue()

Real NewmarkAccelAux::computeValue ( )
protectedvirtual

Definition at line 36 of file NewmarkAccelAux.C.

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

Member Data Documentation

◆ _beta

Real NewmarkAccelAux::_beta
protected

Definition at line 36 of file NewmarkAccelAux.h.

Referenced by computeValue().

◆ _disp

const VariableValue& NewmarkAccelAux::_disp
protected

Definition at line 34 of file NewmarkAccelAux.h.

Referenced by computeValue().

◆ _disp_old

const VariableValue& NewmarkAccelAux::_disp_old
protected

Definition at line 33 of file NewmarkAccelAux.h.

Referenced by computeValue().

◆ _vel_old

const VariableValue& NewmarkAccelAux::_vel_old
protected

Definition at line 35 of file NewmarkAccelAux.h.

Referenced by computeValue().


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