www.mooseframework.org
Q2PNegativeNodalMassOld.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef Q2PNEGATIVENODALMASSOLD
9 #define Q2PNEGATIVENODALMASSOLD
10 
11 #include "TimeKernel.h"
12 #include "Material.h"
13 #include "RichardsDensity.h"
14 
15 // Forward Declarations
17 
18 template <>
19 InputParameters validParams<Q2PNegativeNodalMassOld>();
20 
25 class Q2PNegativeNodalMassOld : public TimeKernel
26 {
27 public:
28  Q2PNegativeNodalMassOld(const InputParameters & parameters);
29 
30 protected:
31  virtual Real computeQpResidual();
32 
34 
36  const VariableValue & _other_var_nodal_old;
37 
39  bool _var_is_pp;
40 
42  const MaterialProperty<Real> & _porosity_old;
43 };
44 
45 #endif // Q2PNEGATIVENODALMASSOLD
const RichardsDensity & _density
InputParameters validParams< Q2PNegativeNodalMassOld >()
Q2PNegativeNodalMassOld(const InputParameters &parameters)
bool _var_is_pp
whether the "other variable" is actually porepressure
-fluid_mass_old/dt with the fluid mass being lumped to the nodes.
const MaterialProperty< Real > & _porosity_old
value of the porosity at the start of the timestep
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
const VariableValue & _other_var_nodal_old
old value of the other variable (this is porepressure if the Variable is saturation) ...