15 #pragma GCC diagnostic push 16 #pragma GCC diagnostic ignored "-Woverloaded-virtual" 110 #pragma GCC diagnostic pop 112 template <
typename CppType>
114 StiffenedGasFluidProperties::rho_from_p_T_template(
const CppType & p,
const CppType & T)
const 116 mooseAssert(((
_gamma - 1.0) *
_cv *
T) != 0.0,
"Invalid gamma or cv or temperature detected!");
124 template <
typename CppType>
126 StiffenedGasFluidProperties::rho_from_p_T_template(
127 const CppType & p,
const CppType & T, CppType & rho, CppType & drho_dp, CppType & drho_dT)
const 129 mooseAssert(((
_gamma - 1.0) *
_cv *
T) != 0.0,
"Invalid gamma or cv or temperature detected!");
143 template <
typename CppType>
145 StiffenedGasFluidProperties::e_from_p_rho_template(
const CppType & p,
const CppType & rho)
const 147 mooseAssert((
_gamma - 1.0) *
rho != 0.,
"Invalid gamma or density detected!");
151 template <
typename CppType>
153 StiffenedGasFluidProperties::e_from_p_rho_template(
154 const CppType & p,
const CppType & rho, CppType & e, CppType & de_dp, CppType & de_drho)
const 156 e = e_from_p_rho_template(
p,
rho);
161 template <
typename CppType>
163 StiffenedGasFluidProperties::T_from_v_e_template(
const CppType &
v,
const CppType & e)
const 168 template <
typename CppType>
170 StiffenedGasFluidProperties::T_from_v_e_template(
171 const CppType &
v,
const CppType & e, CppType & T, CppType & dT_dv, CppType & dT_de)
const 173 T = T_from_v_e_template(
v, e);
178 template <
typename CppType>
180 StiffenedGasFluidProperties::T_from_p_h_template(
const CppType & ,
const CppType & h)
const 185 template <
typename CppType>
187 StiffenedGasFluidProperties::T_from_p_h_template(
188 const CppType & p,
const CppType & h, CppType & T, CppType & dT_dp, CppType & dT_dh)
const 190 T = T_from_p_h_template(
p,
h);
195 template <
typename CppType>
197 StiffenedGasFluidProperties::p_from_v_e_template(
const CppType &
v,
const CppType & e)
const 202 template <
typename CppType>
204 StiffenedGasFluidProperties::p_from_v_e_template(
205 const CppType &
v,
const CppType & e, CppType & p, CppType & dp_dv, CppType & dp_de)
const 207 p = p_from_v_e_template(
v, e);
212 template <
typename CppType>
214 StiffenedGasFluidProperties::s_from_v_e_template(
const CppType &
v,
const CppType & e)
const 216 CppType
T = T_from_v_e_template(
v, e);
217 CppType
p = p_from_v_e_template(
v, e);
225 template <
typename CppType>
227 StiffenedGasFluidProperties::s_from_v_e_template(
228 const CppType &
v,
const CppType & e, CppType & s, CppType & ds_dv, CppType & ds_de)
const 230 CppType
T, dT_dv, dT_de;
231 T_from_v_e_template(
v, e,
T, dT_dv, dT_de);
233 CppType
p, dp_dv, dp_de;
234 p_from_v_e_template(
v, e,
p, dp_dv, dp_de);
250 const CppType dn_dv = dn_dT * dT_dv + dn_dp * dp_dv;
251 const CppType dn_de = dn_dT * dT_de + dn_dp * dp_de;
253 ds_dv =
_cv / n * dn_dv;
254 ds_de =
_cv / n * dn_de;
258 template <
typename CppType>
260 StiffenedGasFluidProperties::s_from_p_T_template(
const CppType & p,
const CppType & T)
const 269 template <
typename CppType>
271 StiffenedGasFluidProperties::s_from_p_T_template(
272 const CppType & p,
const CppType & T, CppType & s, CppType & ds_dp, CppType & ds_dT)
const 288 ds_dp =
_cv / n * dn_dp;
289 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
e e e e s T T T T T rho v v T e h
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.
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
Molar mass [kg/mol].
virtual ~StiffenedGasFluidProperties()
MooseUnits pow(const MooseUnits &, int)
static const std::string k
virtual Real p_from_T_v(Real T, Real v) const override