19 "rho_s",
"rho_s >= 0",
"The density of the solid matrix");
21 "This Material calculates the porous medium density from the porosity, solid density " 22 "(assumed constant) and fluid density, for the fully-saturated single fluid phase case, " 23 "using a linear weighted average. " 24 "density = phi * rho_f + (1 - phi) * rho_s, where phi is porosity and rho_f, rho_s are " 25 "the densities of the fluid and solid phases.");
33 _rho_s(getParam<
Real>(
"rho_s")),
34 _rho_f_qp(getMaterialProperty<
std::vector<
Real>>(
"PorousFlow_fluid_phase_density_qp")),
35 _porosity_qp(getMaterialProperty<
Real>(
"PorousFlow_porosity_qp")),
36 _drho_f_qp_dvar(getMaterialProperty<
std::vector<
std::vector<
Real>>>(
37 "dPorousFlow_fluid_phase_density_qp_dvar")),
38 _dporosity_qp_dvar(getMaterialProperty<
std::vector<
Real>>(
"dPorousFlow_porosity_qp_dvar"))
41 mooseError(
"The Dictator proclaims that the number of phases is ",
42 _dictator.numPhases(),
43 " whereas PorousFlowThermalConductivityFromPorosity can only be used for 1-phase " 44 "simulations. Be aware that the Dictator has noted your mistake.");
46 if (_nodal_material ==
true)
47 mooseError(
"PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity is only defined for " 54 const unsigned ph = 0;
61 const unsigned ph = 0;
static InputParameters validParams()
registerMooseObject("PorousFlowApp", PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity)
const unsigned int _num_phases
Number of phases.
void mooseError(Args &&... args)
const MaterialProperty< std::vector< std::vector< Real > > > & _drho_f_qp_dvar
d(rho_f)/d(PorousFlow variable)
void computeQpProperties() override
virtual void resize(const std::size_t size) override final
static InputParameters validParams()
const MaterialProperty< std::vector< Real > > & _rho_f_qp
Fluid density at qps.
const Real _rho_s
Solid density.
Base class Material designed to provide the density of the porous medium.
void initQpStatefulProperties() override
const unsigned int _num_var
Number of PorousFlow variables.
const MaterialProperty< std::vector< Real > > & _dporosity_qp_dvar
d(porosity)/d(PorousFlow variable)
Material designed to provide the density of the porous medium for the fully-saturated case...
const MaterialProperty< Real > & _porosity_qp
Porosity at qps.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
MaterialProperty< std::vector< Real > > & _dgravdensity_dvar
d(density)/d(PorousFlow variable)
PorousFlowTotalGravitationalDensityFullySaturatedFromPorosity(const InputParameters ¶meters)
MaterialProperty< Real > & _gravdensity
Computed density at quadpoints.