www.mooseframework.org
Q2PPiecewiseLinearSinkFlux.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 Q2PPIECEWISELINEARSINKFLUX_H
9 #define Q2PPIECEWISELINEARSINKFLUX_H
10 
11 #include "SideIntegralPostprocessor.h"
12 #include "LinearInterpolation.h"
13 #include "RichardsDensity.h"
14 #include "RichardsRelPerm.h"
15 
16 class Function;
17 
18 // Forward Declarations
20 
21 template <>
23 
33 class Q2PPiecewiseLinearSinkFlux : public SideIntegralPostprocessor
34 {
35 public:
36  Q2PPiecewiseLinearSinkFlux(const InputParameters & parameters);
37 
38 protected:
39  virtual Real computeQpIntegral();
40 
42  LinearInterpolation _sink_func;
43 
45  Function & _m_func;
46 
48  const VariableValue & _pp;
49 
52 
55 
58 
60  Real _viscosity;
61 
64 
66  const VariableValue & _sat;
67 
69  const MaterialProperty<RealTensorValue> & _permeability;
70 };
71 
72 #endif
Base class for Richards relative permeability classes that provide relative permeability as a functio...
Real _viscosity
fluid viscosity, optional
const VariableValue & _pp
the porepressure variable
const RichardsRelPerm * _relperm
fluid relative permeaility, optional
InputParameters validParams< Q2PPiecewiseLinearSinkFlux >()
Q2PPiecewiseLinearSinkFlux(const InputParameters &parameters)
This postprocessor computes the fluid flux to a Q2PPiecewiseLinearSink.
const MaterialProperty< RealTensorValue > & _permeability
medium permeability
const RichardsDensity * _density
fluid density, optional
bool _use_relperm
whether to include relative permeability in the flux
LinearInterpolation _sink_func
the sink function, which is a piecewise linear function of porepressure values
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
bool _use_mobility
whether to include density*permeability_nn/viscosity in the flux
Function & _m_func
the multiplier function
const VariableValue & _sat
saturation variable, optional