Go to the documentation of this file.
12 #include "IntegratedBC.h"
13 #include "LinearInterpolation.h"
51 using IntegratedBC::computeJacobianBlock;
92 std::vector<Real>
_pp;
113 Real
jac(
unsigned int wrt_num);
const MaterialProperty< RealTensorValue > & _permeability
permeability
std::vector< Real > _nodal_relperm
nodal values of relative permeability
Base class for Richards relative permeability classes that provide relative permeability as a functio...
virtual Real computeQpJacobian() override
Applies a fully-upwinded flux sink to a boundary The sink is a piecewise linear function of porepress...
std::vector< Real > _pp
nodal values of porepressure
const VariableValue & _other_var_nodal
the other variable in the 2-phase system (this is saturation if Variable=porepressure,...
std::vector< Real > _dnodal_relperm_ds
d(_nodal_relperm)/d(saturation)
bool _use_mobility
whether to multiply the sink flux by permeability*density/viscosity
void prepareNodalValues()
calculates the nodal values of pressure, mobility, and derivatives thereof
Q2PPiecewiseLinearSink(const InputParameters ¶meters)
const RichardsRelPerm & _relperm
fluid relative permeability
unsigned int _num_nodes
number of nodes in this element.
const RichardsDensity & _density
fluid density
std::vector< Real > _sat
nodal values of saturation
virtual void computeResidual() override
virtual void computeJacobianBlock(MooseVariableFEBase &jvar) override
InputParameters validParams< Q2PPiecewiseLinearSink >()
bool _var_is_pp
whether the Variable for this BC is porepressure or not
bool _use_relperm
whether to multiply the sink flux by relative permeability
Real jac(unsigned int wrt_num)
derivative of residual wrt the wrt_num variable
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const Function & _m_func
sink flux gets multiplied by this function
unsigned int _other_var_num
the variable number of the other variable
std::vector< Real > _nodal_density
nodal values of fluid density
std::vector< Real > _dnodal_density_dp
d(_nodal_density)/d(porepressure)
virtual void computeJacobian() override
virtual Real computeQpResidual() override
LinearInterpolation _sink_func
piecewise-linear function of porepressure (this defines the strength of the sink)