www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NeighborMooseVariableInterface< T > Class Template Reference

Enhances MooseVariableInterface interface provide values from neighbor elements. More...

#include <NeighborMooseVariableInterface.h>

Inheritance diagram for NeighborMooseVariableInterface< T >:
[legend]

Public Member Functions

 NeighborMooseVariableInterface (const MooseObject *moose_object, bool nodal, Moose::VarKindType expected_var_type=Moose::VarKindType::VAR_ANY, Moose::VarFieldType expected_var_field_type=Moose::VarFieldType::VAR_FIELD_STANDARD)
 Constructing the object. More...
 
virtual ~NeighborMooseVariableInterface ()
 
MooseVariableFE< T > * mooseVariable () const
 Get the variable that this object is using. More...
 

Protected Member Functions

virtual const OutputTools< T >::VariableValueneighborValue ()
 The value of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableValueneighborValueOld ()
 The old value of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableValueneighborValueOlder ()
 The older value of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableGradientneighborGradient ()
 The gradient of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableGradientneighborGradientOld ()
 The old gradient of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableGradientneighborGradientOlder ()
 The older gradient of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableSecondneighborSecond ()
 The second derivative of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableSecondneighborSecondOld ()
 The old second derivative of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableSecondneighborSecondOlder ()
 The older second derivative of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const OutputTools< T >::VariableTestSecondneighborSecondTest ()
 The second derivative of the neighbor's test function. More...
 
virtual const OutputTools< T >::VariablePhiSecondneighborSecondPhi ()
 The second derivative of the neighbor's shape function. More...
 
template<>
const VectorVariableValueneighborValue ()
 
template<>
const VectorVariableValueneighborValueOld ()
 
template<>
const VectorVariableValueneighborValueOlder ()
 
virtual const OutputTools< T >::VariableValuevalue ()
 The value of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableValuevalueOld ()
 The old value of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableValuevalueOlder ()
 The older value of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableValuedot ()
 The time derivative of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableValuedotDot ()
 The second time derivative of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableValuedotOld ()
 The old time derivative of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableValuedotDotOld ()
 The old second time derivative of the variable this object is operating on. More...
 
virtual const VariableValuedotDu ()
 The derivative of the time derivative of the variable this object is operating on with respect to this variable's coefficients. More...
 
virtual const VariableValuedotDotDu ()
 The derivative of the second time derivative of the variable this object is operating on with respect to this variable's coefficients. More...
 
virtual const OutputTools< T >::VariableGradientgradient ()
 The gradient of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableGradientgradientOld ()
 The old gradient of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableGradientgradientOlder ()
 The older gradient of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableSecondsecond ()
 The second derivative of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableSecondsecondOld ()
 The old second derivative of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableSecondsecondOlder ()
 The older second derivative of the variable this object is operating on. More...
 
virtual const OutputTools< T >::VariableTestSecondsecondTest ()
 The second derivative of the test function. More...
 
virtual const OutputTools< T >::VariableTestSecondsecondTestFace ()
 The second derivative of the test function on the current face. More...
 
virtual const OutputTools< T >::VariablePhiSecondsecondPhi ()
 The second derivative of the trial function. More...
 
virtual const OutputTools< T >::VariablePhiSecondsecondPhiFace ()
 The second derivative of the trial function on the current face. More...
 

Protected Attributes

bool _nodal
 Whether or not this object is acting only at nodes. More...
 
MooseVariableFE< T > * _variable
 The variable this object is acting on. More...
 
Assembly_mvi_assembly
 

Detailed Description

template<typename T>
class NeighborMooseVariableInterface< T >

Enhances MooseVariableInterface interface provide values from neighbor elements.

Definition at line 21 of file NeighborMooseVariableInterface.h.

Constructor & Destructor Documentation

◆ NeighborMooseVariableInterface()

template<typename T >
NeighborMooseVariableInterface< T >::NeighborMooseVariableInterface ( const MooseObject moose_object,
bool  nodal,
Moose::VarKindType  expected_var_type = Moose::VarKindType::VAR_ANY,
Moose::VarFieldType  expected_var_field_type = Moose::VarFieldType::VAR_FIELD_STANDARD 
)

Constructing the object.

Parameters
parametersParameters that come from constructing the object
nodaltrue if the variable is nodal

Definition at line 20 of file NeighborMooseVariableInterface.C.

26  moose_object, nodal, "variable", expected_var_type, expected_var_field_type)
27 {
28 }
Interface for objects that need to get values of MooseVariables.

◆ ~NeighborMooseVariableInterface()

template<typename T >
NeighborMooseVariableInterface< T >::~NeighborMooseVariableInterface ( )
virtual

Definition at line 31 of file NeighborMooseVariableInterface.C.

32 {
33 }

Member Function Documentation

◆ dot()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::dot ( )
protectedvirtualinherited

The time derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 137 of file MooseVariableInterface.C.

138 {
139  if (_nodal)
140  return _variable->dofValuesDot();
141  else
142  return _variable->uDot();
143 }
const MooseArray< Number > & dofValuesDot() override
Returns time derivative of degrees of freedom.
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableValue & uDot()

◆ dotDot()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::dotDot ( )
protectedvirtualinherited

The second time derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 147 of file MooseVariableInterface.C.

148 {
149  if (_nodal)
150  return _variable->dofValuesDotDot();
151  else
152  return _variable->uDotDot();
153 }
const MooseArray< Number > & dofValuesDotDot() override
Returns second time derivative of degrees of freedom.
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableValue & uDotDot()

◆ dotDotDu()

template<typename T >
const VariableValue & MooseVariableInterface< T >::dotDotDu ( )
protectedvirtualinherited

The derivative of the second time derivative of the variable this object is operating on with respect to this variable's coefficients.

This is useful for creating Jacobian entries for residual statements that use _u_dotdot

Returns
The reference to be stored off and used later.

Definition at line 227 of file MooseVariableInterface.C.

228 {
229  if (_nodal)
230  return _variable->dofValuesDuDotDotDu();
231  else
232  return _variable->duDotDotDu();
233 }
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const MooseArray< Number > & dofValuesDuDotDotDu() override
Returns derivative of second time derivative of degrees of freedom.
const VariableValue & duDotDotDu()

◆ dotDotOld()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::dotDotOld ( )
protectedvirtualinherited

The old second time derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 167 of file MooseVariableInterface.C.

168 {
169  if (_nodal)
170  return _variable->dofValuesDotDotOld();
171  else
172  return _variable->uDotDotOld();
173 }
bool _nodal
Whether or not this object is acting only at nodes.
const MooseArray< Number > & dofValuesDotDotOld() override
Returns old second time derivative of degrees of freedom.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableValue & uDotDotOld()

◆ dotDu()

template<typename T >
const VariableValue & MooseVariableInterface< T >::dotDu ( )
protectedvirtualinherited

The derivative of the time derivative of the variable this object is operating on with respect to this variable's coefficients.

This is useful for creating Jacobian entries for residual statements that use _u_dot

Returns
The reference to be stored off and used later.

Definition at line 217 of file MooseVariableInterface.C.

218 {
219  if (_nodal)
220  return _variable->dofValuesDuDotDu();
221  else
222  return _variable->duDotDu();
223 }
const VariableValue & duDotDu()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const MooseArray< Number > & dofValuesDuDotDu() override
Returns derivative of time derivative of degrees of freedom.

◆ dotOld()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::dotOld ( )
protectedvirtualinherited

The old time derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 157 of file MooseVariableInterface.C.

158 {
159  if (_nodal)
160  return _variable->dofValuesDotOld();
161  else
162  return _variable->uDotOld();
163 }
const MooseArray< Number > & dofValuesDotOld() override
Returns old time derivative of degrees of freedom.
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableValue & uDotOld()

◆ gradient()

template<typename T >
const OutputTools< T >::VariableGradient & MooseVariableInterface< T >::gradient ( )
protectedvirtualinherited

The gradient of the variable this object is operating on.

This is computed by default and should already be available as _grad_u

Returns
The reference to be stored off and used later.

Definition at line 237 of file MooseVariableInterface.C.

238 {
239  if (_nodal)
240  mooseError("gradients are not defined at nodes");
241 
242  return _variable->gradSln();
243 }
const FieldVariableGradient & gradSln()
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ gradientOld()

template<typename T >
const OutputTools< T >::VariableGradient & MooseVariableInterface< T >::gradientOld ( )
protectedvirtualinherited

The old gradient of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 247 of file MooseVariableInterface.C.

248 {
249  if (_nodal)
250  mooseError("gradients are not defined at nodes");
251 
252  return _variable->gradSlnOld();
253 }
const FieldVariableGradient & gradSlnOld()
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ gradientOlder()

template<typename T >
const OutputTools< T >::VariableGradient & MooseVariableInterface< T >::gradientOlder ( )
protectedvirtualinherited

The older gradient of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 257 of file MooseVariableInterface.C.

258 {
259  if (_nodal)
260  mooseError("gradients are not defined at nodes");
261 
262  return _variable->gradSlnOlder();
263 }
const FieldVariableGradient & gradSlnOlder()
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ mooseVariable()

template<typename T >
MooseVariableFE< T > * MooseVariableInterface< T >::mooseVariable ( ) const
inherited

Get the variable that this object is using.

Returns
The variable this object is using.

Definition at line 70 of file MooseVariableInterface.C.

71 {
72  return _variable;
73 }
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborGradient()

template<typename T >
const OutputTools< T >::VariableGradient & NeighborMooseVariableInterface< T >::neighborGradient ( )
protectedvirtual

The gradient of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 97 of file NeighborMooseVariableInterface.C.

98 {
99  if (this->_nodal)
100  mooseError("Nodal variables do not have gradients");
101 
102  return this->_variable->gradSlnNeighbor();
103 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const FieldVariableGradient & gradSlnNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborGradientOld()

template<typename T >
const OutputTools< T >::VariableGradient & NeighborMooseVariableInterface< T >::neighborGradientOld ( )
protectedvirtual

The old gradient of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 107 of file NeighborMooseVariableInterface.C.

108 {
109  if (this->_nodal)
110  mooseError("Nodal variables do not have gradients");
111 
112  return this->_variable->gradSlnOldNeighbor();
113 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const FieldVariableGradient & gradSlnOldNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborGradientOlder()

template<typename T >
const OutputTools< T >::VariableGradient & NeighborMooseVariableInterface< T >::neighborGradientOlder ( )
protectedvirtual

The older gradient of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 117 of file NeighborMooseVariableInterface.C.

118 {
119  if (this->_nodal)
120  mooseError("Nodal variables do not have gradients");
121 
122  return this->_variable->gradSlnOlderNeighbor();
123 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const FieldVariableGradient & gradSlnOlderNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborSecond()

template<typename T >
const OutputTools< T >::VariableSecond & NeighborMooseVariableInterface< T >::neighborSecond ( )
protectedvirtual

The second derivative of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 127 of file NeighborMooseVariableInterface.C.

128 {
129  if (this->_nodal)
130  mooseError("Nodal variables do not have second derivatives");
131 
132  return this->_variable->secondSlnNeighbor();
133 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableSecond & secondSlnNeighbor()

◆ neighborSecondOld()

template<typename T >
const OutputTools< T >::VariableSecond & NeighborMooseVariableInterface< T >::neighborSecondOld ( )
protectedvirtual

The old second derivative of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 137 of file NeighborMooseVariableInterface.C.

138 {
139  if (this->_nodal)
140  mooseError("Nodal variables do not have second derivatives");
141 
142  return this->_variable->secondSlnOldNeighbor();
143 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableSecond & secondSlnOldNeighbor()

◆ neighborSecondOlder()

template<typename T >
const OutputTools< T >::VariableSecond & NeighborMooseVariableInterface< T >::neighborSecondOlder ( )
protectedvirtual

The older second derivative of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 147 of file NeighborMooseVariableInterface.C.

148 {
149  if (this->_nodal)
150  mooseError("Nodal variables do not have second derivatives");
151 
152  return this->_variable->secondSlnOlderNeighbor();
153 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
const FieldVariableSecond & secondSlnOlderNeighbor()
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborSecondPhi()

template<typename T >
const OutputTools< T >::VariablePhiSecond & NeighborMooseVariableInterface< T >::neighborSecondPhi ( )
protectedvirtual

The second derivative of the neighbor's shape function.

Returns
The reference to be stored off and used later.

Definition at line 167 of file NeighborMooseVariableInterface.C.

168 {
169  if (this->_nodal)
170  mooseError("Nodal variables do not have second derivatives");
171 
172  return this->_mvi_assembly->secondPhiFaceNeighbor(*this->_variable);
173 }
const VariablePhiSecond & secondPhiFaceNeighbor(MooseVariable &) const
Definition: Assembly.h:673
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborSecondTest()

template<typename T >
const OutputTools< T >::VariableTestSecond & NeighborMooseVariableInterface< T >::neighborSecondTest ( )
protectedvirtual

The second derivative of the neighbor's test function.

Returns
The reference to be stored off and used later.

Definition at line 157 of file NeighborMooseVariableInterface.C.

158 {
159  if (this->_nodal)
160  mooseError("Nodal variables do not have second derivatives");
161 
162  return this->_variable->secondPhiFaceNeighbor();
163 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariablePhiSecond & secondPhiFaceNeighbor()

◆ neighborValue() [1/2]

template<typename T >
const OutputTools< T >::VariableValue & NeighborMooseVariableInterface< T >::neighborValue ( )
protectedvirtual

The value of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 37 of file NeighborMooseVariableInterface.C.

38 {
39  if (this->_nodal)
40  return this->_variable->dofValuesNeighbor();
41  else
42  return this->_variable->slnNeighbor();
43 }
bool _nodal
Whether or not this object is acting only at nodes.
const FieldVariableValue & slnNeighbor()
MooseVariableFE< T > * _variable
The variable this object is acting on.
const MooseArray< Number > & dofValuesNeighbor() override
Returns dof solution on neighbor element.

◆ neighborValue() [2/2]

template<>
const VectorVariableValue & NeighborMooseVariableInterface< RealVectorValue >::neighborValue ( )
protected

Definition at line 47 of file NeighborMooseVariableInterface.C.

48 {
49  if (this->_nodal)
50  mooseError("Dofs are scalars while vector variables have vector values. Mismatch");
51  else
52  return this->_variable->slnNeighbor();
53 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
const FieldVariableValue & slnNeighbor()
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborValueOld() [1/2]

template<typename T >
const OutputTools< T >::VariableValue & NeighborMooseVariableInterface< T >::neighborValueOld ( )
protectedvirtual

The old value of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 57 of file NeighborMooseVariableInterface.C.

58 {
59  if (this->_nodal)
60  return this->_variable->dofValuesOldNeighbor();
61  else
62  return this->_variable->slnOldNeighbor();
63 }
const FieldVariableValue & slnOldNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const MooseArray< Number > & dofValuesOldNeighbor() override
Returns old dof solution on neighbor element.

◆ neighborValueOld() [2/2]

template<>
const VectorVariableValue & NeighborMooseVariableInterface< RealVectorValue >::neighborValueOld ( )
protected

Definition at line 67 of file NeighborMooseVariableInterface.C.

68 {
69  if (this->_nodal)
70  mooseError("Dofs are scalars while vector variables have vector values. Mismatch");
71  else
72  return this->_variable->slnOldNeighbor();
73 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const FieldVariableValue & slnOldNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ neighborValueOlder() [1/2]

template<typename T >
const OutputTools< T >::VariableValue & NeighborMooseVariableInterface< T >::neighborValueOlder ( )
protectedvirtual

The older value of the variable this object is operating on evaluated on the "neighbor" element.

Returns
The reference to be stored off and used later.

Definition at line 77 of file NeighborMooseVariableInterface.C.

78 {
79  if (this->_nodal)
80  return this->_variable->dofValuesOlderNeighbor();
81  else
82  return this->_variable->slnOlderNeighbor();
83 }
const FieldVariableValue & slnOlderNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const MooseArray< Number > & dofValuesOlderNeighbor() override
Returns older dof solution on neighbor element.

◆ neighborValueOlder() [2/2]

template<>
const VectorVariableValue & NeighborMooseVariableInterface< RealVectorValue >::neighborValueOlder ( )
protected

Definition at line 87 of file NeighborMooseVariableInterface.C.

88 {
89  if (this->_nodal)
90  mooseError("Dofs are scalars while vector variables have vector values. Mismatch");
91  else
92  return this->_variable->slnOlderNeighbor();
93 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const FieldVariableValue & slnOlderNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ second()

template<typename T >
const OutputTools< T >::VariableSecond & MooseVariableInterface< T >::second ( )
protectedvirtualinherited

The second derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 267 of file MooseVariableInterface.C.

268 {
269  if (_nodal)
270  mooseError("second derivatives are not defined at nodes");
271 
272  return _variable->secondSln();
273 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableSecond & secondSln()

◆ secondOld()

template<typename T >
const OutputTools< T >::VariableSecond & MooseVariableInterface< T >::secondOld ( )
protectedvirtualinherited

The old second derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 277 of file MooseVariableInterface.C.

278 {
279  if (_nodal)
280  mooseError("second derivatives are not defined at nodes");
281 
282  return _variable->secondSlnOld();
283 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableSecond & secondSlnOld()

◆ secondOlder()

template<typename T >
const OutputTools< T >::VariableSecond & MooseVariableInterface< T >::secondOlder ( )
protectedvirtualinherited

The older second derivative of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 287 of file MooseVariableInterface.C.

288 {
289  if (_nodal)
290  mooseError("second derivatives are not defined at nodes");
291 
292  return _variable->secondSlnOlder();
293 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableSecond & secondSlnOlder()

◆ secondPhi()

template<typename T >
const OutputTools< T >::VariablePhiSecond & MooseVariableInterface< T >::secondPhi ( )
protectedvirtualinherited

The second derivative of the trial function.

Returns
The reference to be stored off and used later.

Definition at line 317 of file MooseVariableInterface.C.

318 {
319  if (_nodal)
320  mooseError("second derivatives are not defined at nodes");
321 
323 }
const VariablePhiSecond & secondPhi() const
Definition: Assembly.h:652
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ secondPhiFace()

template<typename T >
const OutputTools< T >::VariablePhiSecond & MooseVariableInterface< T >::secondPhiFace ( )
protectedvirtualinherited

The second derivative of the trial function on the current face.

This should be called in e.g. IntegratedBC when you need second derivatives of the trial function function on the boundary.

Returns
The reference to be stored off and used later.

Definition at line 327 of file MooseVariableInterface.C.

328 {
329  if (_nodal)
330  mooseError("second derivatives are not defined at nodes");
331 
333 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
const VariablePhiSecond & secondPhiFace(MooseVariable &) const
Definition: Assembly.h:659
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ secondTest()

template<typename T >
const OutputTools< T >::VariableTestSecond & MooseVariableInterface< T >::secondTest ( )
protectedvirtualinherited

The second derivative of the test function.

Returns
The reference to be stored off and used later.

Definition at line 297 of file MooseVariableInterface.C.

298 {
299  if (_nodal)
300  mooseError("second derivatives are not defined at nodes");
301 
302  return _variable->secondPhi();
303 }
const FieldVariablePhiSecond & secondPhi()
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.

◆ secondTestFace()

template<typename T >
const OutputTools< T >::VariableTestSecond & MooseVariableInterface< T >::secondTestFace ( )
protectedvirtualinherited

The second derivative of the test function on the current face.

This should be called in e.g. IntegratedBC when you need second derivatives of the test function function on the boundary.

Returns
The reference to be stored off and used later.

Definition at line 307 of file MooseVariableInterface.C.

308 {
309  if (_nodal)
310  mooseError("second derivatives are not defined at nodes");
311 
312  return _variable->secondPhiFace();
313 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:208
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariablePhiSecond & secondPhiFace()

◆ value()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::value ( )
protectedvirtualinherited

The value of the variable this object is operating on.

This is computed by default and should already be available as _u

Returns
The reference to be stored off and used later.

Definition at line 77 of file MooseVariableInterface.C.

78 {
79  if (_nodal)
80  return _variable->dofValues();
81  else
82  return _variable->sln();
83 }
const FieldVariableValue & sln()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const MooseArray< Number > & dofValues() override
Returns dof solution on element.

◆ valueOld()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::valueOld ( )
protectedvirtualinherited

The old value of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 97 of file MooseVariableInterface.C.

98 {
99  if (_nodal)
100  return _variable->dofValuesOld();
101  else
102  return _variable->slnOld();
103 }
bool _nodal
Whether or not this object is acting only at nodes.
const MooseArray< Number > & dofValuesOld() override
Returns old dof solution on element.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableValue & slnOld()

◆ valueOlder()

template<typename T >
const OutputTools< T >::VariableValue & MooseVariableInterface< T >::valueOlder ( )
protectedvirtualinherited

The older value of the variable this object is operating on.

Returns
The reference to be stored off and used later.

Definition at line 117 of file MooseVariableInterface.C.

118 {
119  if (_nodal)
120  return _variable->dofValuesOlder();
121  else
122  return _variable->slnOlder();
123 }
const MooseArray< Number > & dofValuesOlder() override
Returns older dof solution on element.
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariableFE< T > * _variable
The variable this object is acting on.
const FieldVariableValue & slnOlder()

Member Data Documentation

◆ _mvi_assembly

template<typename T>
Assembly* MooseVariableInterface< T >::_mvi_assembly
protectedinherited

◆ _nodal

template<typename T>
bool MooseVariableInterface< T >::_nodal
protectedinherited

Whether or not this object is acting only at nodes.

Definition at line 198 of file MooseVariableInterface.h.

◆ _variable

template<typename T>
MooseVariableFE<T>* MooseVariableInterface< T >::_variable
protectedinherited

The variable this object is acting on.

Definition at line 201 of file MooseVariableInterface.h.

Referenced by MooseVariableInterface< Real >::MooseVariableInterface().


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