www.mooseframework.org
MooseVariableInterface.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef MOOSEVARIABLEINTERFACE_H
16 #define MOOSEVARIABLEINTERFACE_H
17 
18 #include "MooseVariableBase.h"
19 
20 // Forward declarations
21 class Assembly;
22 class MooseObject;
23 class MooseVariable;
24 
29 {
30 public:
37  MooseVariableInterface(const MooseObject * moose_object,
38  bool nodal,
39  std::string var_param_name = "variable");
40 
46 
47  virtual ~MooseVariableInterface();
48 
49 protected:
57  virtual const VariableValue & value();
58 
64  virtual const VariableValue & valueOld();
65 
71  virtual const VariableValue & valueOlder();
72 
78  virtual const VariableValue & dot();
79 
88  virtual const VariableValue & dotDu();
89 
97  virtual const VariableGradient & gradient();
98 
104  virtual const VariableGradient & gradientOld();
105 
111  virtual const VariableGradient & gradientOlder();
112 
118  virtual const VariableSecond & second();
119 
125  virtual const VariableSecond & secondOld();
126 
132  virtual const VariableSecond & secondOlder();
133 
139  virtual const VariableTestSecond & secondTest();
140 
148  virtual const VariableTestSecond & secondTestFace();
149 
155  virtual const VariablePhiSecond & secondPhi();
156 
164  virtual const VariablePhiSecond & secondPhiFace();
165 
167  bool _nodal;
168 
171 
172 protected:
174 };
175 
176 #endif /* MOOSEVARIABLEINTERFACE_H */
virtual const VariableTestSecond & secondTestFace()
The second derivative of the test function on the current face.
virtual const VariableSecond & secondOlder()
The older second derivative of the variable this object is operating on.
Keeps track of stuff related to assembling.
Definition: Assembly.h:63
virtual const VariableValue & valueOld()
The old value of the variable this object is operating on.
Class for stuff related to variables.
Definition: MooseVariable.h:43
virtual const VariableGradient & gradientOld()
The old gradient of the variable this object is operating on.
bool _nodal
Whether or not this object is acting only at nodes.
virtual const VariableGradient & gradientOlder()
The older gradient of the variable this object is operating on.
virtual const VariableSecond & second()
The second derivative of the variable this object is operating on.
virtual const VariableValue & dot()
The time derivative of the variable this object is operating on.
MooseVariableInterface(const MooseObject *moose_object, bool nodal, std::string var_param_name="variable")
Constructing the object.
MooseVariable * mooseVariable()
Get the variable that this object is using.
virtual const VariableValue & valueOlder()
The older value of the variable this object is operating on.
virtual const VariablePhiSecond & secondPhi()
The second derivative of the trial function.
Every object that can be built by the factory should be derived from this class.
Definition: MooseObject.h:36
virtual const VariablePhiSecond & secondPhiFace()
The second derivative of the trial function on the current face.
virtual const VariableValue & value()
The value of the variable this object is operating on.
Interface for objects that need to get values of MooseVariables.
virtual const VariableValue & dotDu()
The derivative of the time derivative of the variable this object is operating on with respect to thi...
virtual const VariableSecond & secondOld()
The old second derivative of the variable this object is operating on.
MooseVariable * _variable
The variable this object is acting on.
virtual const VariableGradient & gradient()
The gradient of the variable this object is operating on.
virtual const VariableTestSecond & secondTest()
The second derivative of the test function.