www.mooseframework.org
Q2PSaturationDiffusion.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 Q2PSATURATIONDIFFUSION
9 #define Q2PSATURATIONDIFFUSION
10 
11 #include "Kernel.h"
12 #include "RichardsDensity.h"
13 #include "RichardsRelPerm.h"
14 #include "Material.h"
15 #include "Function.h"
16 
17 // Forward Declarations
19 
20 template <>
21 InputParameters validParams<Q2PSaturationDiffusion>();
22 
27 class Q2PSaturationDiffusion : public Kernel
28 {
29 public:
30  Q2PSaturationDiffusion(const InputParameters & parameters);
31 
32 protected:
33  virtual Real computeQpResidual();
34 
35  virtual Real computeQpJacobian();
36 
37  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
38 
41 
44 
46  const VariableValue & _pp;
47 
49  unsigned int _pp_var_num;
50 
52  Real _viscosity;
53 
55  const MaterialProperty<RealTensorValue> & _permeability;
56 
58 };
59 
60 #endif // Q2PSATURATIONDIFFUSION
Real _viscosity
fluid viscosity
Base class for Richards relative permeability classes that provide relative permeability as a functio...
const RichardsRelPerm & _relperm
water relative permeability
Q2PSaturationDiffusion(const InputParameters &parameters)
InputParameters validParams< Q2PSaturationDiffusion >()
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
const MaterialProperty< RealTensorValue > & _permeability
permeability
Diffusive Kernel that models nonzero capillary pressure in Q2P models The Variable of this Kernel sho...
const RichardsDensity & _density
water density
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
unsigned int _pp_var_num
variable number of the porepressure variable
const VariableValue & _pp
porepressure at the quadpoints