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

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

#include <NeighborMooseVariableInterface.h>

Inheritance diagram for NeighborMooseVariableInterface:
[legend]

Public Member Functions

 NeighborMooseVariableInterface (const MooseObject *moose_object, bool nodal)
 Constructing the object. More...
 
virtual ~NeighborMooseVariableInterface ()
 
MooseVariablemooseVariable ()
 Get the variable that this object is using. More...
 

Protected Member Functions

virtual const VariableValueneighborValue ()
 The value of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableValueneighborValueOld ()
 The old value of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableValueneighborValueOlder ()
 The older value of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableGradientneighborGradient ()
 The gradient of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableGradientneighborGradientOld ()
 The old gradient of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableGradientneighborGradientOlder ()
 The older gradient of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableSecondneighborSecond ()
 The second derivative of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableSecondneighborSecondOld ()
 The old second derivative of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableSecondneighborSecondOlder ()
 The older second derivative of the variable this object is operating on evaluated on the "neighbor" element. More...
 
virtual const VariableTestSecondneighborSecondTest ()
 The second derivative of the neighbor's test function. More...
 
virtual const VariablePhiSecondneighborSecondPhi ()
 The second derivative of the neighbor's shape function. More...
 
virtual const VariableValuevalue ()
 The value of the variable this object is operating on. More...
 
virtual const VariableValuevalueOld ()
 The old value of the variable this object is operating on. More...
 
virtual const VariableValuevalueOlder ()
 The older value of the variable this object is operating on. More...
 
virtual const VariableValuedot ()
 The 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 VariableGradientgradient ()
 The gradient of the variable this object is operating on. More...
 
virtual const VariableGradientgradientOld ()
 The old gradient of the variable this object is operating on. More...
 
virtual const VariableGradientgradientOlder ()
 The older gradient of the variable this object is operating on. More...
 
virtual const VariableSecondsecond ()
 The second derivative of the variable this object is operating on. More...
 
virtual const VariableSecondsecondOld ()
 The old second derivative of the variable this object is operating on. More...
 
virtual const VariableSecondsecondOlder ()
 The older second derivative of the variable this object is operating on. More...
 
virtual const VariableTestSecondsecondTest ()
 The second derivative of the test function. More...
 
virtual const VariableTestSecondsecondTestFace ()
 The second derivative of the test function on the current face. More...
 
virtual const VariablePhiSecondsecondPhi ()
 The second derivative of the trial function. More...
 
virtual const 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...
 
MooseVariable_variable
 The variable this object is acting on. More...
 
Assembly_mvi_assembly
 

Detailed Description

Enhances MooseVariableInterface interface provide values from neighbor elements.

Definition at line 25 of file NeighborMooseVariableInterface.h.

Constructor & Destructor Documentation

NeighborMooseVariableInterface::NeighborMooseVariableInterface ( const MooseObject moose_object,
bool  nodal 
)

Constructing the object.

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

Definition at line 24 of file NeighborMooseVariableInterface.C.

26  : MooseVariableInterface(moose_object, nodal)
27 {
28 }
MooseVariableInterface(const MooseObject *moose_object, bool nodal, std::string var_param_name="variable")
Constructing the object.
NeighborMooseVariableInterface::~NeighborMooseVariableInterface ( )
virtual

Definition at line 30 of file NeighborMooseVariableInterface.C.

30 {}

Member Function Documentation

const VariableValue & MooseVariableInterface::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 83 of file MooseVariableInterface.C.

84 {
85  if (_nodal)
86  return _variable->nodalSlnDot();
87  else
88  return _variable->uDot();
89 }
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & nodalSlnDot()
const VariableValue & uDot()
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & MooseVariableInterface::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 92 of file MooseVariableInterface.C.

93 {
94  if (_nodal)
95  return _variable->nodalSlnDuDotDu();
96  else
97  return _variable->duDotDu();
98 }
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & duDotDu()
const VariableValue & nodalSlnDuDotDu()
MooseVariable * _variable
The variable this object is acting on.
const VariableGradient & MooseVariableInterface::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 101 of file MooseVariableInterface.C.

102 {
103  if (_nodal)
104  mooseError("Nodal variables do not have gradients");
105 
106  return _variable->gradSln();
107 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableGradient & gradSln()
const VariableGradient & MooseVariableInterface::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 110 of file MooseVariableInterface.C.

111 {
112  if (_nodal)
113  mooseError("Nodal variables do not have gradients");
114 
115  return _variable->gradSlnOld();
116 }
const VariableGradient & gradSlnOld()
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableGradient & MooseVariableInterface::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 119 of file MooseVariableInterface.C.

120 {
121  if (_nodal)
122  mooseError("Nodal variables do not have gradients");
123 
124  return _variable->gradSlnOlder();
125 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariableGradient & gradSlnOlder()
MooseVariable * _variable
The variable this object is acting on.
MooseVariable * MooseVariableInterface::mooseVariable ( )
inherited
const VariableGradient & NeighborMooseVariableInterface::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 60 of file NeighborMooseVariableInterface.C.

61 {
62  if (_nodal)
63  mooseError("Nodal variables do not have gradients");
64 
65  return _variable->gradSlnNeighbor();
66 }
const VariableGradient & gradSlnNeighbor()
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableGradient & NeighborMooseVariableInterface::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 69 of file NeighborMooseVariableInterface.C.

70 {
71  if (_nodal)
72  mooseError("Nodal variables do not have gradients");
73 
74  return _variable->gradSlnOldNeighbor();
75 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
const VariableGradient & gradSlnOldNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableGradient & NeighborMooseVariableInterface::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 78 of file NeighborMooseVariableInterface.C.

79 {
80  if (_nodal)
81  mooseError("Nodal variables do not have gradients");
82 
84 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariableGradient & gradSlnOlderNeighbor()
MooseVariable * _variable
The variable this object is acting on.
const VariableSecond & NeighborMooseVariableInterface::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 87 of file NeighborMooseVariableInterface.C.

88 {
89  if (_nodal)
90  mooseError("Nodal variables do not have second derivatives");
91 
92  return _variable->secondSlnNeighbor();
93 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableSecond & secondSlnNeighbor()
const VariableSecond & NeighborMooseVariableInterface::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 96 of file NeighborMooseVariableInterface.C.

97 {
98  if (_nodal)
99  mooseError("Nodal variables do not have second derivatives");
100 
102 }
const VariableSecond & secondSlnOldNeighbor()
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableSecond & NeighborMooseVariableInterface::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 105 of file NeighborMooseVariableInterface.C.

106 {
107  if (_nodal)
108  mooseError("Nodal variables do not have second derivatives");
109 
111 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariableSecond & secondSlnOlderNeighbor()
MooseVariable * _variable
The variable this object is acting on.
const VariablePhiSecond & NeighborMooseVariableInterface::neighborSecondPhi ( )
protectedvirtual

The second derivative of the neighbor's shape function.

Returns
The reference to be stored off and used later.

Definition at line 123 of file NeighborMooseVariableInterface.C.

124 {
125  if (_nodal)
126  mooseError("Nodal variables do not have second derivatives");
127 
129 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariablePhiSecond & secondPhiFaceNeighbor()
Definition: Assembly.h:548
const VariableTestSecond & NeighborMooseVariableInterface::neighborSecondTest ( )
protectedvirtual

The second derivative of the neighbor's test function.

Returns
The reference to be stored off and used later.

Definition at line 114 of file NeighborMooseVariableInterface.C.

115 {
116  if (_nodal)
117  mooseError("Nodal variables do not have second derivatives");
118 
120 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariablePhiSecond & secondPhiFaceNeighbor()
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & NeighborMooseVariableInterface::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 33 of file NeighborMooseVariableInterface.C.

34 {
35  if (_nodal)
36  return _variable->nodalSlnNeighbor();
37  else
38  return _variable->slnNeighbor();
39 }
const VariableValue & nodalSlnNeighbor()
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & slnNeighbor()
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & NeighborMooseVariableInterface::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 42 of file NeighborMooseVariableInterface.C.

43 {
44  if (_nodal)
46  else
47  return _variable->slnOldNeighbor();
48 }
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & nodalSlnOldNeighbor()
const VariableValue & slnOldNeighbor()
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & NeighborMooseVariableInterface::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 51 of file NeighborMooseVariableInterface.C.

52 {
53  if (_nodal)
55  else
56  return _variable->slnOlderNeighbor();
57 }
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & nodalSlnOlderNeighbor()
const VariableValue & slnOlderNeighbor()
MooseVariable * _variable
The variable this object is acting on.
const VariableSecond & MooseVariableInterface::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 128 of file MooseVariableInterface.C.

Referenced by DiracKernel::addPointWithValidId().

129 {
130  if (_nodal)
131  mooseError("Nodal variables do not have second derivatives");
132 
133  return _variable->secondSln();
134 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
const VariableSecond & secondSln()
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableSecond & MooseVariableInterface::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 137 of file MooseVariableInterface.C.

138 {
139  if (_nodal)
140  mooseError("Nodal variables do not have second derivatives");
141 
142  return _variable->secondSlnOld();
143 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariableSecond & secondSlnOld()
MooseVariable * _variable
The variable this object is acting on.
const VariableSecond & MooseVariableInterface::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 146 of file MooseVariableInterface.C.

147 {
148  if (_nodal)
149  mooseError("Nodal variables do not have second derivatives");
150 
151  return _variable->secondSlnOlder();
152 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariableSecond & secondSlnOlder()
MooseVariable * _variable
The variable this object is acting on.
const VariablePhiSecond & MooseVariableInterface::secondPhi ( )
protectedvirtualinherited

The second derivative of the trial function.

Returns
The reference to be stored off and used later.

Definition at line 173 of file MooseVariableInterface.C.

174 {
175  if (_nodal)
176  mooseError("Nodal variables do not have second derivatives");
177 
178  return _mvi_assembly->secondPhi();
179 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariablePhiSecond & secondPhi()
Definition: Assembly.h:536
const VariablePhiSecond & MooseVariableInterface::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 182 of file MooseVariableInterface.C.

183 {
184  if (_nodal)
185  mooseError("Nodal variables do not have second derivatives");
186 
187  return _mvi_assembly->secondPhiFace();
188 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariablePhiSecond & secondPhiFace()
Definition: Assembly.h:540
const VariableTestSecond & MooseVariableInterface::secondTest ( )
protectedvirtualinherited

The second derivative of the test function.

Returns
The reference to be stored off and used later.

Definition at line 155 of file MooseVariableInterface.C.

156 {
157  if (_nodal)
158  mooseError("Nodal variables do not have second derivatives");
159 
160  return _variable->secondPhi();
161 }
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
const VariablePhiSecond & secondPhi()
MooseVariable * _variable
The variable this object is acting on.
const VariableTestSecond & MooseVariableInterface::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 164 of file MooseVariableInterface.C.

165 {
166  if (_nodal)
167  mooseError("Nodal variables do not have second derivatives");
168 
169  return _variable->secondPhiFace();
170 }
const VariablePhiSecond & secondPhiFace()
void mooseError(Args &&...args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:182
bool _nodal
Whether or not this object is acting only at nodes.
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & MooseVariableInterface::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 56 of file MooseVariableInterface.C.

Referenced by AuxKernel::compute(), KernelValue::computeJacobian(), KernelGrad::computeJacobian(), ConvectiveFluxBC::computeQpResidual(), SinDirichletBC::computeQpResidual(), SinNeumannBC::computeQpResidual(), KernelValue::computeResidual(), KernelGrad::computeResidual(), and InternalSideIndicator::finalize().

57 {
58  if (_nodal)
59  return _variable->nodalSln();
60  else
61  return _variable->sln();
62 }
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & nodalSln()
const VariableValue & sln()
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & MooseVariableInterface::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 65 of file MooseVariableInterface.C.

66 {
67  if (_nodal)
68  return _variable->nodalSlnOld();
69  else
70  return _variable->slnOld();
71 }
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & slnOld()
const VariableValue & nodalSlnOld()
MooseVariable * _variable
The variable this object is acting on.
const VariableValue & MooseVariableInterface::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 74 of file MooseVariableInterface.C.

75 {
76  if (_nodal)
77  return _variable->nodalSlnOlder();
78  else
79  return _variable->slnOlder();
80 }
const VariableValue & slnOlder()
bool _nodal
Whether or not this object is acting only at nodes.
const VariableValue & nodalSlnOlder()
MooseVariable * _variable
The variable this object is acting on.

Member Data Documentation

Assembly* MooseVariableInterface::_mvi_assembly
protectedinherited
bool MooseVariableInterface::_nodal
protectedinherited
MooseVariable* MooseVariableInterface::_variable
protectedinherited

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