www.mooseframework.org
PorousFlowFullySaturatedHeatAdvection.C
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 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<PorousFlowFullySaturatedDarcyBase>();
15  params.addClassDescription("Heat flux that arises from the advection of a fully-saturated single "
16  "phase fluid. No upwinding is used");
17  return params;
18 }
19 
21  const InputParameters & parameters)
23  _enthalpy(getMaterialProperty<std::vector<Real>>("PorousFlow_fluid_phase_enthalpy_qp")),
24  _denthalpy_dvar(getMaterialProperty<std::vector<std::vector<Real>>>(
25  "dPorousFlow_fluid_phase_enthalpy_qp_dvar"))
26 {
27 }
28 
29 Real
31 {
32  const unsigned ph = 0;
34 }
35 
36 Real
38 {
39  const unsigned ph = 0;
40  const Real darcy_mob = PorousFlowFullySaturatedDarcyBase::mobility();
41  const Real ddarcy_mob = PorousFlowFullySaturatedDarcyBase::dmobility(pvar);
42  return _denthalpy_dvar[_qp][ph][pvar] * darcy_mob + _enthalpy[_qp][ph] * ddarcy_mob;
43 }
InputParameters validParams< PorousFlowFullySaturatedDarcyBase >()
InputParameters validParams< PorousFlowFullySaturatedHeatAdvection >()
const MaterialProperty< std::vector< Real > > & _enthalpy
Enthalpy of each phase.
virtual Real dmobility(unsigned pvar) const override
The derivative of the mobility with respect to the porous-flow variable pvar.
virtual Real mobility() const
The mobility of the fluid = density / viscosity.
virtual Real dmobility(unsigned pvar) const
The derivative of the mobility with respect to the porous-flow variable pvar.
const MaterialProperty< std::vector< std::vector< Real > > > & _denthalpy_dvar
Derivative of the enthalpy wrt PorousFlow variables.
virtual Real mobility() const override
The mobility of the fluid = density / viscosity.
Darcy advective flux for a fully-saturated, single phase, single component fluid. ...
PorousFlowFullySaturatedHeatAdvection(const InputParameters &parameters)