15 #pragma GCC diagnostic push 16 #pragma GCC diagnostic ignored "-Woverloaded-virtual" 109 #pragma GCC diagnostic pop 111 template <
typename CppType>
113 StiffenedGasFluidProperties::rho_from_p_T_template(
const CppType & p,
const CppType & T)
const 115 mooseAssert(((
_gamma - 1.0) *
_cv *
T) != 0.0,
"Invalid gamma or cv or temperature detected!");
123 template <
typename CppType>
125 StiffenedGasFluidProperties::rho_from_p_T_template(
126 const CppType & p,
const CppType & T, CppType & rho, CppType & drho_dp, CppType & drho_dT)
const 128 mooseAssert(((
_gamma - 1.0) *
_cv *
T) != 0.0,
"Invalid gamma or cv or temperature detected!");
142 template <
typename CppType>
144 StiffenedGasFluidProperties::e_from_p_rho_template(
const CppType & p,
const CppType & rho)
const 146 mooseAssert((
_gamma - 1.0) *
rho != 0.,
"Invalid gamma or density detected!");
150 template <
typename CppType>
152 StiffenedGasFluidProperties::e_from_p_rho_template(
153 const CppType & p,
const CppType & rho, CppType & e, CppType & de_dp, CppType & de_drho)
const 155 e = e_from_p_rho_template(
p,
rho);
160 template <
typename CppType>
162 StiffenedGasFluidProperties::T_from_v_e_template(
const CppType &
v,
const CppType & e)
const 167 template <
typename CppType>
169 StiffenedGasFluidProperties::T_from_v_e_template(
170 const CppType &
v,
const CppType & e, CppType & T, CppType & dT_dv, CppType & dT_de)
const 172 T = T_from_v_e_template(
v, e);
177 template <
typename CppType>
179 StiffenedGasFluidProperties::p_from_v_e_template(
const CppType &
v,
const CppType & e)
const 184 template <
typename CppType>
186 StiffenedGasFluidProperties::p_from_v_e_template(
187 const CppType &
v,
const CppType & e, CppType & p, CppType & dp_dv, CppType & dp_de)
const 189 p = p_from_v_e_template(
v, e);
194 template <
typename CppType>
196 StiffenedGasFluidProperties::s_from_v_e_template(
const CppType &
v,
const CppType & e)
const 198 CppType
T = T_from_v_e_template(
v, e);
199 CppType
p = p_from_v_e_template(
v, e);
207 template <
typename CppType>
209 StiffenedGasFluidProperties::s_from_v_e_template(
210 const CppType &
v,
const CppType & e, CppType & s, CppType & ds_dv, CppType & ds_de)
const 212 CppType
T, dT_dv, dT_de;
213 T_from_v_e_template(
v, e,
T, dT_dv, dT_de);
215 CppType
p, dp_dv, dp_de;
216 p_from_v_e_template(
v, e,
p, dp_dv, dp_de);
232 const CppType dn_dv = dn_dT * dT_dv + dn_dp * dp_dv;
233 const CppType dn_de = dn_dT * dT_de + dn_dp * dp_de;
235 ds_dv =
_cv / n * dn_dv;
236 ds_de =
_cv / n * dn_de;
240 template <
typename CppType>
242 StiffenedGasFluidProperties::s_from_p_T_template(
const CppType & p,
const CppType & T)
const 251 template <
typename CppType>
253 StiffenedGasFluidProperties::s_from_p_T_template(
254 const CppType & p,
const CppType & T, CppType & s, CppType & ds_dp, CppType & ds_dT)
const 270 ds_dp =
_cv / n * dn_dp;
271 ds_dT =
_cv / n * dn_dT;
virtual Real s_from_T_v(Real T, Real v) const override
e e e e s T T T T T rho T
virtual Real e_from_T_v(Real T, Real v) const override
static const std::string cv
bool _allow_nonphysical_states
virtual Real criticalTemperature() const override
Critical temperature.
virtual Real rho_from_p_s(Real p, Real s) const override
virtual Real mu_from_p_T(Real p, Real T) const override
static InputParameters validParams()
virtual Real g_from_v_e(Real v, Real e) const override
virtual Real s_from_h_p(Real h, Real p) const override
virtual Real beta_from_p_T(Real p, Real T) const override
virtual void v_e_spndl_from_T(Real T, Real &v, Real &e) const override
Specific internal energy from temperature and specific volume.
virtual Real criticalInternalEnergy() const override
Critical specific internal energy.
propfuncWithDefinitionOverride(rho, p, T)
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
virtual Real cv_from_p_T(Real p, Real T) const override
virtual Real k_from_v_e(Real v, Real e) const override
virtual Real p_from_h_s(Real h, Real s) const override
virtual Real k_from_p_T(Real p, Real T) const override
virtual Real e_from_v_h(Real v, Real h) const override
static const std::string cp
virtual Real cp_from_v_e(Real v, Real e) const override
virtual Real cp_from_p_T(Real p, Real T) const override
virtual Real h_from_p_T(Real p, Real T) const override
virtual Real cv_from_T_v(Real T, Real v) const override
static const std::string mu
virtual Real e_from_p_T(Real p, Real T) const override
virtual Real criticalDensity() const override
Critical density.
Common class for single phase fluid properties.
e e e e s T T T T T rho v v T h
virtual Real c2_from_p_rho(Real pressure, Real rho) const
virtual Real c_from_v_e(Real v, Real e) const override
Stiffened gas fluid properties.
virtual Real h_from_T_v(Real T, Real v) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string v
static const std::string pressure
virtual Real pp_sat_from_p_T(Real, Real) const override
StiffenedGasFluidProperties(const InputParameters ¶meters)
const InputParameters & parameters() const
virtual Real cv_from_v_e(Real v, Real e) const override
virtual Real mu_from_v_e(Real v, Real e) const override
virtual Real e_spndl_from_v(Real v) const override
Specific internal energy from temperature and specific volume.
Interface class for producing errors, warnings, or just quiet NaNs.
virtual Real molarMass() const override
Fluid name.
virtual ~StiffenedGasFluidProperties()
MooseUnits pow(const MooseUnits &, int)
static const std::string k
virtual Real p_from_T_v(Real T, Real v) const override