20 "The PorousFlowDictator UserObject");
29 _num_phases(_dictator.numPhases()),
30 _fluid_present(_num_phases > 0),
31 _porosity(getADMaterialProperty<
Real>(
"PorousFlow_porosity_qp")),
32 _porosity_old(getMaterialPropertyOld<
Real>(
"PorousFlow_porosity_qp")),
33 _density(_fluid_present
34 ? &getADMaterialProperty<
std::vector<
Real>>(
"PorousFlow_fluid_phase_density_qp")
36 _density_old(_fluid_present ? &getMaterialPropertyOld<
std::vector<
Real>>(
37 "PorousFlow_fluid_phase_density_qp")
39 _rock_energy(getADMaterialProperty<
Real>(
"PorousFlow_matrix_internal_energy_nodal")),
40 _rock_energy_old(getMaterialPropertyOld<
Real>(
"PorousFlow_matrix_internal_energy_nodal")),
41 _energy(_fluid_present ? &getADMaterialProperty<
std::vector<
Real>>(
42 "PorousFlow_fluid_phase_internal_energy_qp")
44 _energy_old(_fluid_present ? &getMaterialPropertyOld<
std::vector<
Real>>(
45 "PorousFlow_fluid_phase_internal_energy_qp")
47 _saturation(_fluid_present
48 ? &getADMaterialProperty<
std::vector<
Real>>(
"PorousFlow_saturation_qp")
50 _saturation_old(_fluid_present
51 ? &getMaterialPropertyOld<
std::vector<
Real>>(
"PorousFlow_saturation_qp")
69 (*_energy_old)[
_qp][p];
72 return (energy - energy_old) /
_dt;
FVPorousFlowEnergyTimeDerivative(const InputParameters ¶meters)
const MaterialProperty< Real > & _porosity_old
registerADMooseObject("PorousFlowApp", FVPorousFlowEnergyTimeDerivative)
static InputParameters validParams()
const ADMaterialProperty< Real > & _rock_energy
Internal energy of porous matrix.
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
const bool _fluid_present
Whether fluid is present.
Time derivative of energy.
const MaterialProperty< Real > & _rock_energy_old
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
IntRange< T > make_range(T beg, T end)
const ADMaterialProperty< Real > & _porosity
Porosity.
ADReal computeQpResidual() override
const unsigned int _num_phases
Number of fluid phases.