https://mooseframework.inl.gov
PorousFlowAdvectiveFluxCalculatorSaturatedHeat.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
16 {
18  params.addClassDescription(
19  "Computes the advective flux of heat energy in the given phase, assuming fully-saturated "
20  "conditions. Hence this UserObject is only relevant to single-phase situations. "
21  "Explicitly, the UserObject computes (density * enthalpy / viscosity) * (- permeability * "
22  "(grad(P) - density * gravity)), using the Kuzmin-Turek FEM-TVD multidimensional "
23  "stabilization scheme");
24  return params;
25 }
26 
28  const InputParameters & parameters)
30  _enthalpy(getMaterialProperty<std::vector<Real>>("PorousFlow_fluid_phase_enthalpy_nodal")),
31  _denthalpy_dvar(getMaterialProperty<std::vector<std::vector<Real>>>(
32  "dPorousFlow_fluid_phase_enthalpy_nodal_dvar"))
33 {
34 }
35 
36 Real
38 {
40 }
41 
42 Real
44 {
45  Real du =
48  return du;
49 }
virtual Real computeU(unsigned i) const override
Computes the value of u at the local node id of the current element (_current_elem) ...
registerMooseObject("PorousFlowApp", PorousFlowAdvectiveFluxCalculatorSaturatedHeat)
const MaterialProperty< std::vector< Real > > & _enthalpy
Enthalpy of each phase.
virtual Real computeU(unsigned i) const override
Computes the value of u at the local node id of the current element (_current_elem) ...
const MaterialProperty< std::vector< std::vector< Real > > > & _denthalpy_dvar
Derivative of enthalpy of each phase wrt PorousFlow variables.
Computes the advective flux of heat energy in the given phase, assuming fully-saturated conditions...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computedU_dvar(unsigned i, unsigned pvar) const override
Compute d(u)/d(porous_flow_variable)
Computes the advective flux of fluid of given phase, assuming fully-saturated conditions.
void addClassDescription(const std::string &doc_string)
virtual Real computedU_dvar(unsigned i, unsigned pvar) const override
Compute d(u)/d(porous_flow_variable)