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

#include <TestNewmarkTI.h>

Inheritance diagram for TestNewmarkTI:
[legend]

Public Member Functions

 TestNewmarkTI (const InputParameters &parameters)
 Stores the velocity/acceleration computed using the time integrator into the provided auxvariable. More...
 
virtual ~TestNewmarkTI ()
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const bool _first
 Parameter that decides whether first or second derivative should be stored. More...
 
const VariableValue & _value
 Value of the first/second time derivative of dispalcement. More...
 

Detailed Description

Definition at line 20 of file TestNewmarkTI.h.

Constructor & Destructor Documentation

◆ TestNewmarkTI()

TestNewmarkTI::TestNewmarkTI ( const InputParameters &  parameters)

Stores the velocity/acceleration computed using the time integrator into the provided auxvariable.

Definition at line 31 of file TestNewmarkTI.C.

32  : AuxKernel(parameters),
33  _first(getParam<bool>("first")),
34  _value(_first ? coupledDot("displacement") : coupledDotDot("displacement"))
35 {
36 }
const bool _first
Parameter that decides whether first or second derivative should be stored.
Definition: TestNewmarkTI.h:35
const VariableValue & _value
Value of the first/second time derivative of dispalcement.
Definition: TestNewmarkTI.h:38

◆ ~TestNewmarkTI()

virtual TestNewmarkTI::~TestNewmarkTI ( )
inlinevirtual

Definition at line 29 of file TestNewmarkTI.h.

29 {}

Member Function Documentation

◆ computeValue()

Real TestNewmarkTI::computeValue ( )
protectedvirtual

Definition at line 39 of file TestNewmarkTI.C.

40 {
41  if (!isNodal())
42  mooseError("must run on a nodal variable");
43 
44  // assigns the first/second time derivative of displacement to the provided auxvariable
45  return _value[_qp];
46 }
const VariableValue & _value
Value of the first/second time derivative of dispalcement.
Definition: TestNewmarkTI.h:38

Member Data Documentation

◆ _first

const bool TestNewmarkTI::_first
protected

Parameter that decides whether first or second derivative should be stored.

Definition at line 35 of file TestNewmarkTI.h.

◆ _value

const VariableValue& TestNewmarkTI::_value
protected

Value of the first/second time derivative of dispalcement.

Definition at line 38 of file TestNewmarkTI.h.

Referenced by computeValue().


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