www.mooseframework.org
Public Member Functions | Static 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 ()
 

Static Public Member Functions

static InputParameters validParams ()
 

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 19 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 32 of file TestNewmarkTI.C.

33  : AuxKernel(parameters),
34  _first(getParam<bool>("first")),
35  _value(_first ? coupledDot("displacement") : coupledDotDot("displacement"))
36 {
37 }

◆ ~TestNewmarkTI()

virtual TestNewmarkTI::~TestNewmarkTI ( )
inlinevirtual

Definition at line 30 of file TestNewmarkTI.h.

30 {}

Member Function Documentation

◆ computeValue()

Real TestNewmarkTI::computeValue ( )
protectedvirtual

Definition at line 40 of file TestNewmarkTI.C.

41 {
42  if (!isNodal())
43  mooseError("must run on a nodal variable");
44 
45  // assigns the first/second time derivative of displacement to the provided auxvariable
46  return _value[_qp];
47 }

◆ validParams()

InputParameters TestNewmarkTI::validParams ( )
static

Definition at line 17 of file TestNewmarkTI.C.

18 {
19  InputParameters params = AuxKernel::validParams();
20  params.addClassDescription("Assigns the velocity/acceleration calculated by time integrator to "
21  "the velocity/acceleration auxvariable.");
22  params.addRequiredCoupledVar(
23  "displacement",
24  "The variable whose first/second derivative needs to be copied to the provided auxvariable.");
25  params.addParam<bool>("first",
26  true,
27  "Set to true to copy the first derivative to the auxvariable. If false, "
28  "the second derivative is copied.");
29  return params;
30 }

Member Data Documentation

◆ _first

const bool TestNewmarkTI::_first
protected

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

Definition at line 36 of file TestNewmarkTI.h.

◆ _value

const VariableValue& TestNewmarkTI::_value
protected

Value of the first/second time derivative of dispalcement.

Definition at line 39 of file TestNewmarkTI.h.

Referenced by computeValue().


The documentation for this class was generated from the following files:
TestNewmarkTI::_value
const VariableValue & _value
Value of the first/second time derivative of dispalcement.
Definition: TestNewmarkTI.h:39
validParams
InputParameters validParams()
TestNewmarkTI::_first
const bool _first
Parameter that decides whether first or second derivative should be stored.
Definition: TestNewmarkTI.h:36