www.mooseframework.org
Q2PNodalMass.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 Q2PNODALMASS
9 #define Q2PNODALMASS
10 
11 #include "TimeKernel.h"
12 #include "Material.h"
13 #include "RichardsDensity.h"
14 
15 // Forward Declarations
16 class Q2PNodalMass;
17 
18 template <>
19 InputParameters validParams<Q2PNodalMass>();
20 
24 class Q2PNodalMass : public TimeKernel
25 {
26 public:
27  Q2PNodalMass(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpResidual();
31 
32  virtual Real computeQpJacobian();
33 
34  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
35 
37 
39  const VariableValue & _other_var_nodal;
40 
42  unsigned int _other_var_num;
43 
45  bool _var_is_pp;
46 
48  const MaterialProperty<Real> & _porosity;
49 };
50 
51 #endif // Q2PNODALMASS
unsigned int _other_var_num
variable number of the other variable
Definition: Q2PNodalMass.h:42
const RichardsDensity & _density
Definition: Q2PNodalMass.h:36
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: Q2PNodalMass.C:94
InputParameters validParams< Q2PNodalMass >()
Definition: Q2PNodalMass.C:18
Q2PNodalMass(const InputParameters &parameters)
Definition: Q2PNodalMass.C:39
const VariableValue & _other_var_nodal
the other variable (this is porepressure if the Variable is saturation)
Definition: Q2PNodalMass.h:39
bool _var_is_pp
whether the "other variable" is actually porepressure
Definition: Q2PNodalMass.h:45
const MaterialProperty< Real > & _porosity
current value of the porosity
Definition: Q2PNodalMass.h:48
virtual Real computeQpResidual()
Definition: Q2PNodalMass.C:50
fluid_mass/dt lumped to the nodes
Definition: Q2PNodalMass.h:24
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
virtual Real computeQpJacobian()
Definition: Q2PNodalMass.C:70