https://mooseframework.inl.gov
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CaloricallyImperfectGas Class Reference

A calorically imperfect gas fluid property class This fluid property assumes that internal energy is a general monotonic function of temperature; behaves like an ideal gas otherwise. More...

#include <CaloricallyImperfectGas.h>

Inheritance diagram for CaloricallyImperfectGas:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 CaloricallyImperfectGas (const InputParameters &parameters)
 
virtual void initialSetup () override
 
virtual Real p_from_v_e (Real v, Real e) const override
 
virtual ADReal p_from_v_e (const ADReal &v, const ADReal &e) const override
 
virtual void p_from_v_e (Real v, Real e, Real &p, Real &dp_dv, Real &dp_de) const override
 
virtual Real T_from_v_e (Real v, Real e) const override
 
virtual ADReal T_from_v_e (const ADReal &v, const ADReal &e) const override
 
virtual void T_from_v_e (Real v, Real e, Real &T, Real &dT_dv, Real &dT_de) const override
 
virtual Real cp_from_v_e (Real v, Real e) const override
 
virtual void cp_from_v_e (Real v, Real e, Real &cp, Real &dcp_dv, Real &dcp_de) const override
 
virtual Real cv_from_v_e (Real v, Real e) const override
 
virtual ADReal cv_from_v_e (ADReal v, ADReal e) const
 
virtual void cv_from_v_e (Real v, Real e, Real &cv, Real &dcv_dv, Real &dcv_de) const override
 
virtual Real mu_from_v_e (Real v, Real e) const override
 
virtual void mu_from_v_e (Real v, Real e, Real &mu, Real &dmu_dv, Real &dmu_de) const override
 
virtual Real k_from_v_e (Real v, Real e) const override
 
virtual void k_from_v_e (Real v, Real e, Real &k, Real &dk_dv, Real &dk_de) const override
 
virtual Real s_from_v_e (Real v, Real e) const override
 
virtual void s_from_v_e (Real v, Real e, Real &s, Real &ds_dv, Real &ds_de) const override
 
virtual Real s_from_p_T (Real p, Real T) const override
 
virtual void s_from_p_T (Real p, Real T, Real &s, Real &ds_dp, Real &ds_dT) const override
 
virtual Real s_from_h_p (Real h, Real p) const override
 
virtual void s_from_h_p (Real h, Real p, Real &s, Real &ds_dh, Real &ds_dp) const override
 
virtual Real rho_from_p_s (Real p, Real s) const override
 
virtual Real e_from_v_h (Real v, Real h) const override
 
virtual void e_from_v_h (Real v, Real h, Real &e, Real &de_dv, Real &de_dh) const override
 
virtual Real rho_from_p_T (Real p, Real T) const override
 
virtual ADReal rho_from_p_T (const ADReal &p, const ADReal &T) const override
 
virtual void rho_from_p_T (Real p, Real T, Real &rho, Real &drho_dp, Real &drho_dT) const override
 
virtual void rho_from_p_T (const ADReal &p, const ADReal &T, ADReal &rho, ADReal &drho_dp, ADReal &drho_dT) const override
 
 propfuncWithDefinitionOverride (e, p, rho)
 
virtual Real e_from_T_v (Real T, Real v) const override
 
virtual void e_from_T_v (Real T, Real v, Real &e, Real &de_dT, Real &de_dv) const override
 
virtual ADReal e_from_T_v (const ADReal &T, const ADReal &v) const override
 
virtual Real p_from_T_v (Real T, Real v) const override
 
virtual void p_from_T_v (Real T, Real v, Real &p, Real &dp_dT, Real &dp_dv) const override
 
virtual Real h_from_T_v (Real T, Real v) const override
 
virtual void h_from_T_v (Real T, Real v, Real &h, Real &dh_dT, Real &dh_dv) const override
 
virtual Real s_from_T_v (Real T, Real v) const override
 
virtual void s_from_T_v (Real T, Real v, Real &s, Real &ds_dT, Real &ds_dv) const override
 
virtual Real cv_from_T_v (Real T, Real v) const override
 
virtual Real e_spndl_from_v (Real v) const override
 Specific internal energy from temperature and specific volume. More...
 
virtual void v_e_spndl_from_T (Real T, Real &v, Real &e) const override
 Specific internal energy from temperature and specific volume. More...
 
virtual Real h_from_p_T (Real p, Real T) const override
 
virtual void h_from_p_T (Real p, Real T, Real &h, Real &dh_dp, Real &dh_dT) const override
 
virtual Real e_from_p_T (Real p, Real T) const override
 
virtual ADReal e_from_p_T (ADReal p, ADReal T) const
 
virtual void e_from_p_T (Real p, Real T, Real &e, Real &de_dp, Real &de_dT) const override
 
virtual Real T_from_p_h (Real p, Real h) const override
 
virtual void T_from_p_h (Real p, Real h, Real &T, Real &dT_dp, Real &dT_dh) const override
 
virtual Real cv_from_p_T (Real p, Real T) const override
 
virtual void cv_from_p_T (Real p, Real T, Real &cv, Real &dcv_dp, Real &dcv_dT) const override
 
virtual Real cp_from_p_T (Real p, Real T) const override
 
virtual void cp_from_p_T (Real p, Real T, Real &cp, Real &dcp_dp, Real &dcp_dT) const override
 
virtual Real mu_from_p_T (Real p, Real T) const override
 
virtual void mu_from_p_T (Real p, Real T, Real &mu, Real &dmu_dp, Real &dmu_dT) const override
 
virtual Real k_from_p_T (Real pressure, Real temperature) const override
 
virtual void k_from_p_T (Real pressure, Real temperature, Real &k, Real &dk_dp, Real &dk_dT) const override
 
virtual std::string fluidName () const override
 Fluid name. More...
 
virtual Real molarMass () const override
 Molar mass [kg/mol]. More...
 
virtual Real criticalTemperature () const override
 Critical temperature. More...
 
virtual Real criticalDensity () const override
 Critical density. More...
 
virtual Real criticalInternalEnergy () const override
 Critical specific internal energy. More...
 
virtual Real gamma_from_v_e (Real v, Real e) const override
 
virtual ADReal gamma_from_v_e (ADReal v, ADReal e) const
 
virtual void gamma_from_v_e (Real v, Real e, Real &gamma, Real &dgamma_dv, Real &dgamma_de) const override
 
virtual Real gamma_from_p_T (Real p, Real T) const override
 
virtual ADReal gamma_from_p_T (ADReal p, ADReal T) const
 
virtual void gamma_from_p_T (Real p, Real T, Real &gamma, Real &dgamma_dp, Real &dgamma_dT) const override
 
virtual Real g_from_v_e (Real v, Real e) const override
 
virtual Real p_from_h_s (Real h, Real s) const override
 
virtual void p_from_h_s (Real h, Real s, Real &p, Real &dp_dh, Real &dp_ds) const override
 
virtual Real c_from_v_e (Real v, Real e) const override
 
virtual ADReal c_from_v_e (const ADReal &v, const ADReal &e) const override
 
virtual void c_from_v_e (Real v, Real e, Real &c, Real &dc_dv, Real &dc_de) const override
 
virtual Real c_from_p_T (Real p, Real T) const override
 
virtual ADReal c_from_p_T (const ADReal &p, const ADReal &T) const override
 
virtual void c_from_p_T (Real, Real T, Real &c, Real &dc_dp, Real &dc_dT) const override
 
virtual Real criticalPressure () const
 Critical pressure. More...
 
virtual Real triplePointPressure () const
 Triple point pressure. More...
 
virtual Real triplePointTemperature () const
 Triple point temperature. More...
 
virtual Real vaporPressure (Real T) const
 Vapor pressure. More...
 
virtual void vaporPressure (Real T, Real &psat, Real &dpsat_dT) const
 
virtual ADReal vaporPressure (const ADReal &T) const
 
virtual Real vaporTemperature (Real p) const
 Vapor temperature. More...
 
virtual void vaporTemperature (Real p, Real &Tsat, Real &dTsat_dp) const
 
virtual ADReal vaporTemperature (const ADReal &p) const
 
virtual std::vector< RealhenryCoefficients () const
 Henry's law coefficients for dissolution in water. More...
 
template<typename CppType >
void v_e_from_p_T (const CppType &p, const CppType &T, CppType &v, CppType &e) const
 
template<typename CppType >
void v_e_from_p_T (const CppType &p, const CppType &T, CppType &v, CppType &dv_dp, CppType &dv_dT, CppType &e, CppType &de_dp, CppType &de_dT) const
 
virtual void rho_mu_from_p_T (Real p, Real T, Real &rho, Real &mu) const
 Combined methods. More...
 
virtual void rho_mu_from_p_T (Real p, Real T, Real &rho, Real &drho_dp, Real &drho_dT, Real &mu, Real &dmu_dp, Real &dmu_dT) const
 
virtual void rho_mu_from_p_T (const ADReal &p, const ADReal &T, ADReal &rho, ADReal &mu) const
 
virtual void rho_e_from_p_T (Real p, Real T, Real &rho, Real &drho_dp, Real &drho_dT, Real &e, Real &de_dp, Real &de_dT) const
 
template<typename CppType >
void p_T_from_v_e (const CppType &v, const CppType &e, Real p0, Real T0, CppType &p, CppType &T, bool &conversion_succeeded) const
 Determines (p,T) from (v,e) using Newton Solve in 2D Useful for conversion between different sets of state variables. More...
 
template<typename T >
void p_T_from_v_h (const T &v, const T &h, Real p0, Real T0, T &pressure, T &temperature, bool &conversion_succeeded) const
 Determines (p,T) from (v,h) using Newton Solve in 2D Useful for conversion between different sets of state variables. More...
 
template<typename T >
void p_T_from_h_s (const T &h, const T &s, Real p0, Real T0, T &pressure, T &temperature, bool &conversion_succeeded) const
 Determines (p,T) from (h,s) using Newton Solve in 2D Useful for conversion between different sets of state variables. More...
 
template<>
std::pair< Real, RealmakeZeroAndOne (const Real &)
 
virtual void execute () final
 
virtual void initialize () final
 
virtual void finalize () final
 
virtual void threadJoin (const UserObject &) final
 
virtual void subdomainSetup () final
 
bool needThreadedCopy () const override final
 
SubProblemgetSubProblem () const
 
bool shouldDuplicateInitialExecution () const
 
virtual Real spatialValue (const Point &) const
 
virtual const std::vector< Point > spatialPoints () const
 
void gatherSum (T &value)
 
void gatherMax (T &value)
 
void gatherMin (T &value)
 
void gatherProxyValueMax (T1 &proxy, T2 &value)
 
void gatherProxyValueMin (T1 &proxy, T2 &value)
 
void setPrimaryThreadCopy (UserObject *primary)
 
UserObjectprimaryThreadCopy ()
 
std::set< UserObjectName > getDependObjects () const
 
const std::set< std::string > & getRequestedItems () override
 
const std::set< std::string > & getSuppliedItems () override
 
unsigned int systemNumber () const
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
virtual const std::string & name () const
 
std::string typeAndName () const
 
std::string errorPrefix (const std::string &error_type) const
 
void callMooseError (std::string msg, const bool with_prefix) const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
const InputParametersparameters () const
 
MooseObjectName uniqueName () const
 
const TgetParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const TqueryParam (const std::string &name) const
 
const TgetRenamedParam (const std::string &old_name, const std::string &new_name) const
 
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &nm) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void mooseError (Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnumgetExecuteOnEnum () const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const TgetUserObject (const std::string &param_name, bool is_dependency=true) const
 
const TgetUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectgetUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectgetUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const std::vector< MooseVariableScalar *> & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > getBlockMaterialProperty (const MaterialPropertyName &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
std::set< SubdomainIDgetMaterialPropertyBlocks (const std::string &name)
 
std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &name)
 
std::set< BoundaryIDgetMaterialPropertyBoundaryIDs (const std::string &name)
 
std::vector< BoundaryName > getMaterialPropertyBoundaryNames (const std::string &name)
 
void checkBlockAndBoundaryCompatibility (std::shared_ptr< MaterialBase > discrete)
 
std::unordered_map< SubdomainID, std::vector< MaterialBase *> > buildRequiredMaterials (bool allow_stateful=true)
 
void statefulPropertiesAllowed (bool)
 
bool getMaterialPropertyCalled () const
 
virtual const std::unordered_set< unsigned int > & getMatPropDependencies () const
 
virtual void resolveOptionalProperties ()
 
const GenericMaterialProperty< T, is_ad > & getPossiblyConstantGenericMaterialPropertyByName (const MaterialPropertyName &prop_name, MaterialData &material_data, const unsigned int state)
 
bool isImplicit ()
 
Moose::StateArg determineState () const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterial (const std::string &name)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
MaterialBasegetMaterialByName (const std::string &name, bool no_warn=false)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
const FunctiongetFunction (const std::string &name) const
 
const FunctiongetFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name) const
 
const VectorPostprocessorName & getVectorPostprocessorName (const std::string &param_name) const
 
TgetSampler (const std::string &name)
 
SamplergetSampler (const std::string &name)
 
TgetSamplerByName (const SamplerName &name)
 
SamplergetSamplerByName (const SamplerName &name)
 
virtual void meshChanged ()
 
virtual void meshDisplaced ()
 
PerfGraphperfGraph ()
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const TgetDistribution (const std::string &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const TgetDistribution (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const TgetDistributionByName (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const TgetDistributionByName (const std::string &name) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Static Public Member Functions

static InputParameters validParams ()
 
static void sort (typename std::vector< T > &vector)
 
static void sortDFS (typename std::vector< T > &vector)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header)
 

Public Attributes

const ConsoleStream _console
 

Static Public Attributes

static const Real _R = 8.3144598
 Universal gas constant (J/mol/K) More...
 
static constexpr PropertyValue::id_type default_property_id
 
static constexpr PropertyValue::id_type zero_property_id
 
static constexpr auto SYSTEM
 
static constexpr auto NAME
 

Protected Types

enum  NaNMessage { NAN_MESSAGE_NONE = 0, NAN_MESSAGE_WARNING = 1, NAN_MESSAGE_EXCEPTION = 2, NAN_MESSAGE_ERROR = 3 }
 

Protected Member Functions

void setupLookupTables ()
 sets up the T(e) reverse lookup table More...
 
void outOfBounds (const std::string &function, Real value, Real min, Real max) const
 function that handles exceeding parameter limits More...
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &name) const override
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &name) const override
 
virtual void addUserObjectDependencyHelper (const UserObject &uo) const override
 
void addReporterDependencyHelper (const ReporterName &reporter_name) override
 
const ReporterNamegetReporterName (const std::string &param_name) const
 
TdeclareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< TdeclareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const TgetRestartableData (const std::string &data_name) const
 
TdeclareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
TdeclareRecoverableData (const std::string &data_name, Args &&... args)
 
TdeclareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
TdeclareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
const TgetMeshProperty (const std::string &data_name, const std::string &prefix)
 
const TgetMeshProperty (const std::string &data_name)
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name) const
 
bool hasMeshProperty (const std::string &data_name) const
 
std::string meshPropertyName (const std::string &data_name) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_name) const
 
bool isCoupledScalar (const std::string &var_name, unsigned int i=0) const
 
unsigned int coupledScalarComponents (const std::string &var_name) const
 
unsigned int coupledScalar (const std::string &var_name, unsigned int comp=0) const
 
libMesh::Order coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< is_ad > & coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const VariableValuecoupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalargetScalarVar (const std::string &var_name, unsigned int comp) const
 
virtual void checkMaterialProperty (const std::string &name, const unsigned int state)
 
void markMatPropRequested (const std::string &)
 
MaterialPropertyName getMaterialPropertyName (const std::string &name) const
 
void checkExecutionStage ()
 
const TgetReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const TgetReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const TgetReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
Real getNaN () const
 Throws an error or returns a NaN with or without a warning, with a default message. More...
 
template<typename... Args>
Real getNaN (Args &&... args) const
 Throws an error or returns a NaN with or without a warning. More...
 
std::vector< RealgetNaNVector (const unsigned int &n) const
 Throws an error or returns NaNs with or without a warning, with a default message. More...
 
template<typename... Args>
std::vector< RealgetNaNVector (const unsigned int &n, Args &&... args) const
 Throws an error or returns NaNs with or without a warning. More...
 
Real e_from_T (Real T) const
 helper functions for e(T) and h(T), T(e), T(h), cv(T), cp(T) More...
 
Real h_from_T (Real T) const
 
Real T_from_e (Real e) const
 
Real T_from_h (Real h) const
 
template<typename CppType >
Real cv_from_T (const CppType &T) const
 
Real cp_from_T (Real T) const
 
void cv_from_T (Real T, Real &cv, Real &dcv_dT) const
 
void cp_from_T (Real T, Real &cp, Real &dcp_dT) const
 
Real Z_from_T (Real T) const
 

Static Protected Member Functions

template<typename T , typename Functor >
static void xyDerivatives (const T x, const T &y, T &z, T &dz_dx, T &dz_dy, const Functor &z_from_x_y)
 Computes the dependent variable z and its derivatives with respect to the independent variables x and y using the simple two parameter z_from_x_y functor. More...
 
template<typename T >
static std::pair< T, TmakeZeroAndOne (const T &)
 Given a type example, this method returns zero and unity representations of that type (first and second members of returned pair respectively) More...
 
static std::string meshPropertyName (const std::string &data_name, const std::string &prefix)
 

Protected Attributes

const Real_molar_mass
 molar mass More...
 
const Real _R_specific
 Specific gas constant (R / molar mass) More...
 
Real _T_c
 
Real _rho_c
 
Real _e_c
 
Real _delta_T
 temperature interval in lookup tables More...
 
const bool _out_of_bound_error
 Flag to error if out of bounds. More...
 
Real _tol
 
const Function_e_T
 Internal energy as a function of temperature. More...
 
const Function_mu_T
 Dynamic viscosity. More...
 
const Function_k_T
 Thermal conductivity. More...
 
std::vector< Real_Z_T_lookup
 Z(T) lookup table on uniform grid between _min_temperature and _max_temperature. More...
 
const Real _tolerance
 Newton's method may be used to convert between variable sets. More...
 
const Real _T_initial_guess
 Initial guess for temperature (or temperature used to compute the initial guess) More...
 
const Real _p_initial_guess
 Initial guess for pressure (or pressure used to compute the initial guess) More...
 
const unsigned int _max_newton_its
 Maximum number of iterations for the variable conversion newton solves. More...
 
const Real _T_c2k
 Conversion of temperature from Celsius to Kelvin. More...
 
const bool _allow_imperfect_jacobians
 Flag to set unimplemented Jacobian entries to zero. More...
 
SubProblem_subproblem
 
FEProblemBase_fe_problem
 
SystemBase_sys
 
const THREAD_ID _tid
 
Assembly_assembly
 
const Moose::CoordinateSystemType_coord_sys
 
const bool _duplicate_initial_execution
 
std::set< std::string > _depend_uo
 
const bool & _enabled
 
MooseApp_app
 
const std::string _type
 
const std::string _name
 
const InputParameters_pars
 
Factory_factory
 
ActionFactory_action_factory
 
const ExecFlagEnum_execute_enum
 
const ExecFlagType_current_execute_flag
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase_mci_feproblem
 
FEProblemBase_mdi_feproblem
 
MooseApp_pg_moose_app
 
const std::string _prefix
 
FEProblemBase_sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real_real_zero
 
const VariableValue_scalar_zero
 
const Point & _point_zero
 
const InputParameters_mi_params
 
const std::string _mi_name
 
const MooseObjectName _mi_moose_object_name
 
FEProblemBase_mi_feproblem
 
SubProblem_mi_subproblem
 
const THREAD_ID _mi_tid
 
const Moose::MaterialDataType _material_data_type
 
MaterialData_material_data
 
bool _stateful_allowed
 
bool _get_material_property_called
 
std::vector< std::unique_ptr< PropertyValue > > _default_properties
 
std::unordered_set< unsigned int_material_property_dependencies
 
const MaterialPropertyName _get_suffix
 
const bool _use_interpolated_state
 
const InputParameters_ti_params
 
FEProblemBase_ti_feproblem
 
bool _is_implicit
 
Real_t
 
const Real_t_old
 
int_t_step
 
Real_dt
 
Real_dt_old
 
bool _is_transient
 
const Parallel::Communicator & _communicator
 
const MooseObject *const _moose_object
 
enum NaNMessage _emit_on_nan
 Raise mooseWarning or mooseError? More...
 
Real _min_temperature
 temperature limits when creating lookup tables More...
 
Real _max_temperature
 
Real _min_e
 internal energy and enthalpy limits when creating lookup tables More...
 
Real _max_e
 
Real _min_h
 
Real _max_h
 
Real _delta_e
 step size in internal energy and enthalpy More...
 
Real _delta_h
 
std::vector< Real_T_h_lookup
 inverse lookup table data More...
 
std::vector< Real_T_e_lookup
 

Static Protected Attributes

static const std::string _interpolated_old
 
static const std::string _interpolated_older
 
 propfunc (p, v, e) propfunc(T
 Compute a fluid property given for the state defined by two given properties. More...
 
propfunc (c, v, e) propfunc(cp
 
e e propfunc (cv, v, e) propfunc(mu
 
e e e propfunc (k, v, e) propfuncWithDefault(s
 
e e e e propfunc (s, h, p) propfunc(rho
 
e e e e s propfunc (e, v, h) propfuncWithDefault(s
 
e e e e s T propfunc (pp_sat, p, T) propfunc(mu
 
e e e e s T T propfunc (k, rho, T) propfuncWithDefault(c
 
e e e e s T T T T T propfunc (rho, p, T) propfunc(e
 
e e e e s T T T T T rho propfunc (e, T, v) propfunc(p
 
e e e e s T T T T T rho v propfunc (h, T, v) propfunc(s
 
e e e e s T T T T T rho v v propfunc (cv, T, v) propfunc(h
 
e e e e s T T T propfuncWithDefault (cp, p, T) propfuncWithDefault(cv
 
e e e e s T T T T propfuncWithDefault (mu, p, T) propfuncWithDefault(k
 
e e e e s T T T T T rho v v T propfuncWithDefault (h, v, e) propfunc(g
 
e e e e s T T T T T rho v v TpropfuncWithDefault (p, h, s) propfunc(T
 
e e e e s T T T T T rho v v T e p propfuncWithDefault (T, p, h) propfuncWithDefault(beta
 
e e e e s T T T T T rho v v T e p T propfuncWithDefault (v, p, T) propfuncWithDefault(e
 
e e e e s T T T T T rho v v T e p T T propfuncWithDefault (gamma, v, e) propfuncWithDefault(gamma
 
 v
 
v
 
e e v
 
e e e v
 
e e e e s T T T T T rho v v T v
 
e e e e p
 
e e e e s p
 
e e e e s T T p
 
e e e e s T T T p
 
e e e e s T T T T p
 
e e e e s T T T T T p
 
e e e e s T T T T T rho v v p
 
e e e e s T T T T T rho v v T e p p
 
e e e e s T T T T T rho v v T e p T p
 
e e e e s T T T T T rho v v T e p T T p
 
e e e e s T rho
 
e e e e s T T T T T rho T
 
e e e e s T T T T T rho v T
 
e e e e s T T T T T rho v v Th
 

Detailed Description

A calorically imperfect gas fluid property class This fluid property assumes that internal energy is a general monotonic function of temperature; behaves like an ideal gas otherwise.

In particular, it assumes: p v = R_s T

Definition at line 26 of file CaloricallyImperfectGas.h.

Member Enumeration Documentation

◆ NaNMessage

enum NaNInterface::NaNMessage
protectedinherited
Enumerator
NAN_MESSAGE_NONE 
NAN_MESSAGE_WARNING 
NAN_MESSAGE_EXCEPTION 
NAN_MESSAGE_ERROR 

Definition at line 30 of file NaNInterface.h.

Constructor & Destructor Documentation

◆ CaloricallyImperfectGas()

CaloricallyImperfectGas::CaloricallyImperfectGas ( const InputParameters parameters)

Definition at line 42 of file CaloricallyImperfectGas.C.

44  NaNInterface(this),
45  _molar_mass(getParam<Real>("molar_mass")),
47  _T_c(getParam<Real>("T_c")),
48  _rho_c(getParam<Real>("rho_c")),
49  _e_c(getParam<Real>("e_c")),
50  _min_temperature(getParam<Real>("min_temperature")),
51  _max_temperature(getParam<Real>("max_temperature")),
52  _delta_T(getParam<Real>("temperature_resolution")),
53  _out_of_bound_error(getParam<bool>("out_of_bound_error")),
54  _tol(1e-4)
55 {
56 }
NaNInterface(const MooseObject *moose_object)
Definition: NaNInterface.C:35
const bool _out_of_bound_error
Flag to error if out of bounds.
SinglePhaseFluidProperties(const InputParameters &parameters)
static const Real _R
Universal gas constant (J/mol/K)
Real _delta_T
temperature interval in lookup tables
const InputParameters & parameters() const
const Real & _molar_mass
molar mass
Real _min_temperature
temperature limits when creating lookup tables
const Real _R_specific
Specific gas constant (R / molar mass)

Member Function Documentation

◆ c_from_p_T() [1/3]

Real CaloricallyImperfectGas::c_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 362 of file CaloricallyImperfectGas.C.

Referenced by TEST_F().

363 {
364  return std::sqrt(gamma_from_p_T(p, T) * _R_specific * T);
365 }
virtual Real gamma_from_p_T(Real p, Real T) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ c_from_p_T() [2/3]

ADReal CaloricallyImperfectGas::c_from_p_T ( const ADReal p,
const ADReal T 
) const
overridevirtual

Definition at line 368 of file CaloricallyImperfectGas.C.

369 {
370  return std::sqrt(gamma_from_p_T(p, T) * _R_specific * T);
371 }
virtual Real gamma_from_p_T(Real p, Real T) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ c_from_p_T() [3/3]

void CaloricallyImperfectGas::c_from_p_T ( Real  p,
Real  T,
Real c,
Real dc_dp,
Real dc_dT 
) const
overridevirtual

Definition at line 374 of file CaloricallyImperfectGas.C.

376 {
377  Real gamma, dgamma_dp, dgamma_dT;
378  gamma_from_p_T(p, T, gamma, dgamma_dp, dgamma_dT);
379  c = std::sqrt(gamma * _R_specific * T);
380  dc_dp = 0;
381  dc_dT = 0.5 / c * _R_specific * (gamma + T * dgamma_dT);
382 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real gamma_from_p_T(Real p, Real T) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ c_from_v_e() [1/3]

Real CaloricallyImperfectGas::c_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 321 of file CaloricallyImperfectGas.C.

Referenced by TEST_F().

322 {
323  Real T = T_from_v_e(v, e);
324 
325  const Real c2 = gamma_from_v_e(v, e) * _R_specific * T;
326  if (c2 < 0)
327  return getNaN("Sound speed squared (gamma * R * T) is negative: c2 = " + Moose::stringify(c2) +
328  ".");
329 
330  return std::sqrt(c2);
331 }
virtual Real gamma_from_v_e(Real v, Real e) const override
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
Definition: NaNInterface.h:46
virtual Real T_from_v_e(Real v, Real e) const override
std::string stringify(const T &t)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _R_specific
Specific gas constant (R / molar mass)

◆ c_from_v_e() [2/3]

ADReal CaloricallyImperfectGas::c_from_v_e ( const ADReal v,
const ADReal e 
) const
overridevirtual

Definition at line 334 of file CaloricallyImperfectGas.C.

335 {
336  const auto T = T_from_v_e(v, e);
337 
338  const auto c2 = gamma_from_v_e(v, e) * _R_specific * T;
339  if (MetaPhysicL::raw_value(c2) < 0)
340  return getNaN("Sound speed squared (gamma * R * T) is negative: c2 = " +
342 
343  return std::sqrt(c2);
344 }
virtual Real gamma_from_v_e(Real v, Real e) const override
auto raw_value(const Eigen::Map< T > &in)
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
Definition: NaNInterface.h:46
virtual Real T_from_v_e(Real v, Real e) const override
std::string stringify(const T &t)
const Real _R_specific
Specific gas constant (R / molar mass)

◆ c_from_v_e() [3/3]

void CaloricallyImperfectGas::c_from_v_e ( Real  v,
Real  e,
Real c,
Real dc_dv,
Real dc_de 
) const
overridevirtual

Definition at line 347 of file CaloricallyImperfectGas.C.

348 {
349  Real T, dT_dv, dT_de;
350  T_from_v_e(v, e, T, dT_dv, dT_de);
351 
352  Real gamma, dgamma_dv, dgamma_dT;
353  gamma_from_v_e(v, e, gamma, dgamma_dv, dgamma_dT);
354  c = std::sqrt(gamma * _R_specific * T);
355 
356  const Real dc_dT = 0.5 / c * _R_specific * (gamma + T * dgamma_dT);
357  dc_dv = dc_dT * dT_dv;
358  dc_de = dc_dT * dT_de;
359 }
virtual Real gamma_from_v_e(Real v, Real e) const override
virtual Real T_from_v_e(Real v, Real e) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _R_specific
Specific gas constant (R / molar mass)

◆ cp_from_p_T() [1/2]

Real CaloricallyImperfectGas::cp_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 862 of file CaloricallyImperfectGas.C.

Referenced by gamma_from_p_T(), h_from_p_T(), s_from_p_T(), T_from_p_h(), and TEST_F().

863 {
864  return cp_from_T(temperature);
865 }
static const std::string temperature
Definition: NS.h:59

◆ cp_from_p_T() [2/2]

void CaloricallyImperfectGas::cp_from_p_T ( Real  p,
Real  T,
Real cp,
Real dcp_dp,
Real dcp_dT 
) const
overridevirtual

Definition at line 868 of file CaloricallyImperfectGas.C.

870 {
871  cp_from_T(T, cp, dcp_dT);
872  dcp_dp = 0.0;
873 }
static const std::string cp
Definition: NS.h:121

◆ cp_from_T() [1/2]

Real CaloricallyImperfectGas::cp_from_T ( Real  T) const
protected

Definition at line 177 of file CaloricallyImperfectGas.C.

Referenced by cp_from_p_T(), cp_from_T(), cp_from_v_e(), and h_from_T_v().

178 {
179  if (T < _min_temperature || T > _max_temperature)
181 
182  return _e_T->timeDerivative(T, Point()) + _R_specific;
183 }
virtual Real timeDerivative(Real t, const Point &p) const
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
const Function * _e_T
Internal energy as a function of temperature.
Real _min_temperature
temperature limits when creating lookup tables
const Real _R_specific
Specific gas constant (R / molar mass)

◆ cp_from_T() [2/2]

void CaloricallyImperfectGas::cp_from_T ( Real  T,
Real cp,
Real dcp_dT 
) const
protected

Definition at line 197 of file CaloricallyImperfectGas.C.

198 {
199  if (T < _min_temperature || T > _max_temperature)
200  outOfBounds("cp_from_T (3 args)", T, _min_temperature, _max_temperature);
201  Real pert = 1.0e-7;
202  cp = cp_from_T(T);
203  Real cp_pert = cp_from_T(T * (1 + pert));
204  dcp_dT = (cp_pert - cp) / (T * pert);
205 }
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
static const std::string cp
Definition: NS.h:121
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _min_temperature
temperature limits when creating lookup tables

◆ cp_from_v_e() [1/2]

Real CaloricallyImperfectGas::cp_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 385 of file CaloricallyImperfectGas.C.

Referenced by e_from_v_h(), gamma_from_v_e(), and TEST_F().

386 {
387  Real T = T_from_v_e(v, e);
388  return cp_from_T(T);
389 }
virtual Real T_from_v_e(Real v, Real e) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ cp_from_v_e() [2/2]

void CaloricallyImperfectGas::cp_from_v_e ( Real  v,
Real  e,
Real cp,
Real dcp_dv,
Real dcp_de 
) const
overridevirtual

Definition at line 392 of file CaloricallyImperfectGas.C.

393 {
394  Real T = T_from_v_e(v, e);
395  Real dcp_dT;
396  cp_from_T(T, cp, dcp_dT);
397  dcp_dv = 0.0;
398  dcp_de = dcp_dT / cv_from_T(T);
399 }
static const std::string cp
Definition: NS.h:121
virtual Real T_from_v_e(Real v, Real e) const override
Real cv_from_T(const CppType &T) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ criticalDensity()

Real CaloricallyImperfectGas::criticalDensity ( ) const
overridevirtual

Critical density.

Returns
critical density (kg/m^3)

Reimplemented from SinglePhaseFluidProperties.

Definition at line 822 of file CaloricallyImperfectGas.C.

823 {
824  return _rho_c;
825 }

◆ criticalInternalEnergy()

Real CaloricallyImperfectGas::criticalInternalEnergy ( ) const
overridevirtual

Critical specific internal energy.

Returns
specific internal energy (J/kg)

Reimplemented from SinglePhaseFluidProperties.

Definition at line 828 of file CaloricallyImperfectGas.C.

829 {
830  return _e_c;
831 }

◆ criticalPressure()

Real SinglePhaseFluidProperties::criticalPressure ( ) const
virtualinherited

◆ criticalTemperature()

Real CaloricallyImperfectGas::criticalTemperature ( ) const
overridevirtual

Critical temperature.

Returns
critical temperature (K)

Reimplemented from SinglePhaseFluidProperties.

Definition at line 816 of file CaloricallyImperfectGas.C.

817 {
818  return _T_c;
819 }

◆ cv_from_p_T() [1/2]

Real CaloricallyImperfectGas::cv_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 848 of file CaloricallyImperfectGas.C.

Referenced by e_from_p_T(), gamma_from_p_T(), k_from_v_e(), mu_from_v_e(), and TEST_F().

849 {
850  return cv_from_T(temperature);
851 }
static const std::string temperature
Definition: NS.h:59
Real cv_from_T(const CppType &T) const

◆ cv_from_p_T() [2/2]

void CaloricallyImperfectGas::cv_from_p_T ( Real  p,
Real  T,
Real cv,
Real dcv_dp,
Real dcv_dT 
) const
overridevirtual

Definition at line 854 of file CaloricallyImperfectGas.C.

856 {
857  cv_from_T(T, cv, dcv_dT);
858  dcv_dp = 0.0;
859 }
static const std::string cv
Definition: NS.h:122
Real cv_from_T(const CppType &T) const

◆ cv_from_T() [1/2]

template<typename CppType >
Real CaloricallyImperfectGas::cv_from_T ( const CppType &  T) const
protected

Definition at line 218 of file CaloricallyImperfectGas.h.

Referenced by cp_from_v_e(), cv_from_p_T(), cv_from_T(), cv_from_T_v(), cv_from_v_e(), p_from_v_e(), and setupLookupTables().

219 {
220  const auto raw_T = MetaPhysicL::raw_value(T);
221  if (raw_T < _min_temperature || raw_T > _max_temperature)
222  outOfBounds("cv_from_T", raw_T, _min_temperature, _max_temperature);
223 
224  return _e_T->timeDerivative(raw_T, Point());
225 }
virtual Real timeDerivative(Real t, const Point &p) const
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
auto raw_value(const Eigen::Map< T > &in)
const Function * _e_T
Internal energy as a function of temperature.
Real _min_temperature
temperature limits when creating lookup tables

◆ cv_from_T() [2/2]

void CaloricallyImperfectGas::cv_from_T ( Real  T,
Real cv,
Real dcv_dT 
) const
protected

Definition at line 186 of file CaloricallyImperfectGas.C.

187 {
188  if (T < _min_temperature || T > _max_temperature)
189  outOfBounds("cv_from_T (3 args)", T, _min_temperature, _max_temperature);
190  Real pert = 1.0e-7;
191  cv = cv_from_T(T);
192  Real cv_pert = cv_from_T(T * (1 + pert));
193  dcv_dT = (cv_pert - cv) / (T * pert);
194 }
static const std::string cv
Definition: NS.h:122
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
Real cv_from_T(const CppType &T) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _min_temperature
temperature limits when creating lookup tables

◆ cv_from_T_v()

Real CaloricallyImperfectGas::cv_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 752 of file CaloricallyImperfectGas.C.

Referenced by e_from_T_v().

753 {
754  return cv_from_T(T);
755 }
Real cv_from_T(const CppType &T) const

◆ cv_from_v_e() [1/3]

Real CaloricallyImperfectGas::cv_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 402 of file CaloricallyImperfectGas.C.

Referenced by cv_from_v_e(), e_from_v_h(), gamma_from_v_e(), T_from_v_e(), and TEST_F().

403 {
404  Real T = T_from_v_e(v, e);
405  return cv_from_T(T);
406 }
virtual Real T_from_v_e(Real v, Real e) const override
Real cv_from_T(const CppType &T) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ cv_from_v_e() [2/3]

ADReal CaloricallyImperfectGas::cv_from_v_e ( ADReal  v,
ADReal  e 
) const
virtual

Definition at line 409 of file CaloricallyImperfectGas.C.

410 {
411  Real x = 0;
412  Real raw1 = v.value();
413  Real raw2 = e.value();
414  Real dxd1 = 0;
415  Real dxd2 = 0;
416  cv_from_v_e(raw1, raw2, x, dxd1, dxd2);
417 
418  ADReal result = x;
419  result.derivatives() = v.derivatives() * dxd1 + e.derivatives() * dxd2;
420  return result;
421 }
DualNumber< Real, DNDerivativeType, true > ADReal
virtual Real cv_from_v_e(Real v, Real e) const override
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ cv_from_v_e() [3/3]

void CaloricallyImperfectGas::cv_from_v_e ( Real  v,
Real  e,
Real cv,
Real dcv_dv,
Real dcv_de 
) const
overridevirtual

Definition at line 424 of file CaloricallyImperfectGas.C.

425 {
426  Real T = T_from_v_e(v, e);
427  Real dcv_dT;
428  cv_from_T(T, cv, dcv_dT);
429  dcv_dv = 0.0;
430  dcv_de = dcv_dT / cv;
431 }
static const std::string cv
Definition: NS.h:122
virtual Real T_from_v_e(Real v, Real e) const override
Real cv_from_T(const CppType &T) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ e_from_p_T() [1/3]

Real CaloricallyImperfectGas::e_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 781 of file CaloricallyImperfectGas.C.

Referenced by e_from_p_T(), setupLookupTables(), and TEST_F().

782 {
783  return e_from_T(T);
784 }
Real e_from_T(Real T) const
helper functions for e(T) and h(T), T(e), T(h), cv(T), cp(T)

◆ e_from_p_T() [2/3]

ADReal CaloricallyImperfectGas::e_from_p_T ( ADReal  p,
ADReal  T 
) const
virtual

Definition at line 787 of file CaloricallyImperfectGas.C.

788 {
789  Real x = 0;
790  Real raw1 = p.value();
791  Real raw2 = T.value();
792  Real dxd1 = 0;
793  Real dxd2 = 0;
794  e_from_p_T(raw1, raw2, x, dxd1, dxd2);
795 
796  ADReal result = x;
797  result.derivatives() = p.derivatives() * dxd1 + T.derivatives() * dxd2;
798  return result;
799 }
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
virtual Real e_from_p_T(Real p, Real T) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ e_from_p_T() [3/3]

void CaloricallyImperfectGas::e_from_p_T ( Real  p,
Real  T,
Real e,
Real de_dp,
Real de_dT 
) const
overridevirtual

Definition at line 802 of file CaloricallyImperfectGas.C.

803 {
804  e = e_from_p_T(p, T);
805  de_dp = 0.0;
806  de_dT = cv_from_p_T(p, T);
807 }
virtual Real e_from_p_T(Real p, Real T) const override
virtual Real cv_from_p_T(Real p, Real T) const override

◆ e_from_T()

Real CaloricallyImperfectGas::e_from_T ( Real  T) const
protected

helper functions for e(T) and h(T), T(e), T(h), cv(T), cp(T)

Definition at line 160 of file CaloricallyImperfectGas.C.

Referenced by e_from_p_T(), e_from_T_v(), e_from_v_h(), and p_from_h_s().

161 {
162  if (T < _min_temperature || T > _max_temperature)
164 
165  return _e_T->value(T, Point());
166 }
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
const Function * _e_T
Internal energy as a function of temperature.
virtual Real value(Real t, const Point &p) const
Real _min_temperature
temperature limits when creating lookup tables

◆ e_from_T_v() [1/3]

Real CaloricallyImperfectGas::e_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 677 of file CaloricallyImperfectGas.C.

Referenced by e_from_T_v(), and TEST_F().

678 {
679  return e_from_T(T);
680 }
Real e_from_T(Real T) const
helper functions for e(T) and h(T), T(e), T(h), cv(T), cp(T)

◆ e_from_T_v() [2/3]

void CaloricallyImperfectGas::e_from_T_v ( Real  T,
Real  v,
Real e,
Real de_dT,
Real de_dv 
) const
overridevirtual

Definition at line 683 of file CaloricallyImperfectGas.C.

684 {
685  e = e_from_T_v(T, v);
686  de_dT = cv_from_T_v(T, v);
687  de_dv = 0.0;
688 }
virtual Real cv_from_T_v(Real T, Real v) const override
virtual Real e_from_T_v(Real T, Real v) const override

◆ e_from_T_v() [3/3]

ADReal CaloricallyImperfectGas::e_from_T_v ( const ADReal T,
const ADReal v 
) const
overridevirtual

Definition at line 691 of file CaloricallyImperfectGas.C.

692 {
693  Real x = 0;
694  Real raw1 = T.value();
695  Real raw2 = v.value();
696  Real dxd1 = 0;
697  Real dxd2 = 0;
698  e_from_T_v(raw1, raw2, x, dxd1, dxd2);
699 
700  ADReal result = x;
701  result.derivatives() = T.derivatives() * dxd1 + v.derivatives() * dxd2;
702  return result;
703 }
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
virtual Real e_from_T_v(Real T, Real v) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ e_from_v_h() [1/2]

Real CaloricallyImperfectGas::e_from_v_h ( Real  v,
Real  h 
) const
overridevirtual

Definition at line 604 of file CaloricallyImperfectGas.C.

Referenced by e_from_v_h(), and TEST_F().

605 {
606  Real T = T_from_h(h);
607  return e_from_T(T);
608 }
Real e_from_T(Real T) const
helper functions for e(T) and h(T), T(e), T(h), cv(T), cp(T)
e e e e s T T T T T rho v v T e h
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ e_from_v_h() [2/2]

void CaloricallyImperfectGas::e_from_v_h ( Real  v,
Real  h,
Real e,
Real de_dv,
Real de_dh 
) const
overridevirtual

Definition at line 611 of file CaloricallyImperfectGas.C.

612 {
613  e = e_from_v_h(v, h);
614  Real cv = cv_from_v_e(v, e);
615  Real cp = cp_from_v_e(v, e);
616  de_dv = 0.0;
617  de_dh = cv / cp;
618 }
static const std::string cv
Definition: NS.h:122
virtual Real e_from_v_h(Real v, Real h) const override
virtual Real cv_from_v_e(Real v, Real e) const override
static const std::string cp
Definition: NS.h:121
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
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ e_spndl_from_v()

Real CaloricallyImperfectGas::e_spndl_from_v ( Real  v) const
overridevirtual

Specific internal energy from temperature and specific volume.

Parameters
[in]Ttemperature
[in]vspecific volume

Reimplemented from SinglePhaseFluidProperties.

Definition at line 757 of file CaloricallyImperfectGas.C.

◆ execute()

virtual void FluidProperties::execute ( )
inlinefinalvirtualinherited

Implements ThreadedGeneralUserObject.

Definition at line 33 of file FluidProperties.h.

33 {}

◆ finalize()

virtual void FluidProperties::finalize ( )
inlinefinalvirtualinherited

Implements ThreadedGeneralUserObject.

Definition at line 35 of file FluidProperties.h.

35 {}

◆ fluidName()

std::string CaloricallyImperfectGas::fluidName ( ) const
overridevirtual

Fluid name.

Returns
string representing fluid name

Reimplemented from SinglePhaseFluidProperties.

Definition at line 154 of file CaloricallyImperfectGas.C.

155 {
156  return "caloric_imperfect_gas";
157 }

◆ g_from_v_e()

Real CaloricallyImperfectGas::g_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 908 of file CaloricallyImperfectGas.C.

909 {
910  // use the definition of the Gibbs free energy
911  Real T = T_from_v_e(v, e);
912  Real p = p_from_v_e(v, e);
913  return h_from_p_T(p, T) - T * s_from_p_T(p, T);
914 }
virtual Real T_from_v_e(Real v, Real e) const override
virtual Real s_from_p_T(Real p, Real T) const override
virtual Real h_from_p_T(Real p, Real T) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override

◆ gamma_from_p_T() [1/3]

Real CaloricallyImperfectGas::gamma_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 481 of file CaloricallyImperfectGas.C.

Referenced by c_from_p_T(), gamma_from_p_T(), and TEST_F().

482 {
483  return cp_from_p_T(p, T) / cv_from_p_T(p, T);
484 }
virtual Real cp_from_p_T(Real p, Real T) const override
virtual Real cv_from_p_T(Real p, Real T) const override

◆ gamma_from_p_T() [2/3]

ADReal CaloricallyImperfectGas::gamma_from_p_T ( ADReal  p,
ADReal  T 
) const
virtual

Definition at line 487 of file CaloricallyImperfectGas.C.

488 {
489  Real x = 0;
490  Real raw1 = p.value();
491  Real raw2 = T.value();
492  Real dxd1 = 0;
493  Real dxd2 = 0;
494  gamma_from_p_T(raw1, raw2, x, dxd1, dxd2);
495  ADReal result = x;
496  result.derivatives() = p.derivatives() * dxd1 + T.derivatives() * dxd2;
497  return result;
498 }
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real gamma_from_p_T(Real p, Real T) const override

◆ gamma_from_p_T() [3/3]

void CaloricallyImperfectGas::gamma_from_p_T ( Real  p,
Real  T,
Real gamma,
Real dgamma_dp,
Real dgamma_dT 
) const
overridevirtual

Definition at line 468 of file CaloricallyImperfectGas.C.

470 {
471  Real cp, dcp_dp, dcp_dT;
472  cp_from_p_T(p, T, cp, dcp_dp, dcp_dT);
473  Real cv, dcv_dp, dcv_dT;
474  cv_from_p_T(p, T, cv, dcv_dp, dcv_dT);
475  gamma = cp / cv;
476  dgamma_dp = 0.0;
477  dgamma_dT = 1.0 / cv * dcp_dT - gamma / cv * dcv_dT;
478 }
static const std::string cv
Definition: NS.h:122
virtual Real cp_from_p_T(Real p, Real T) const override
static const std::string cp
Definition: NS.h:121
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real cv_from_p_T(Real p, Real T) const override

◆ gamma_from_v_e() [1/3]

Real CaloricallyImperfectGas::gamma_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 434 of file CaloricallyImperfectGas.C.

Referenced by c_from_v_e(), gamma_from_v_e(), and TEST_F().

435 {
436  return cp_from_v_e(v, e) / cv_from_v_e(v, e);
437 }
virtual Real cv_from_v_e(Real v, Real e) const override
virtual Real cp_from_v_e(Real v, Real e) const override

◆ gamma_from_v_e() [2/3]

ADReal CaloricallyImperfectGas::gamma_from_v_e ( ADReal  v,
ADReal  e 
) const
virtual

Definition at line 440 of file CaloricallyImperfectGas.C.

441 {
442  Real x = 0;
443  Real raw1 = v.value();
444  Real raw2 = e.value();
445  Real dxd1 = 0;
446  Real dxd2 = 0;
447  gamma_from_v_e(raw1, raw2, x, dxd1, dxd2);
448 
449  ADReal result = x;
450  result.derivatives() = v.derivatives() * dxd1 + e.derivatives() * dxd2;
451  return result;
452 }
virtual Real gamma_from_v_e(Real v, Real e) const override
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ gamma_from_v_e() [3/3]

void CaloricallyImperfectGas::gamma_from_v_e ( Real  v,
Real  e,
Real gamma,
Real dgamma_dv,
Real dgamma_de 
) const
overridevirtual

Definition at line 455 of file CaloricallyImperfectGas.C.

457 {
458  Real cp, dcp_dv, dcp_de;
459  cp_from_v_e(v, e, cp, dcp_dv, dcp_de);
460  Real cv, dcv_dv, dcv_de;
461  cv_from_v_e(v, e, cv, dcv_dv, dcv_de);
462  gamma = cp / cv;
463  dgamma_dv = 0.0;
464  dgamma_de = 1.0 / cv * dcp_de - gamma / cv * dcv_de;
465 }
static const std::string cv
Definition: NS.h:122
virtual Real cv_from_v_e(Real v, Real e) const override
static const std::string cp
Definition: NS.h:121
virtual Real cp_from_v_e(Real v, Real e) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ getNaN() [1/2]

Real NaNInterface::getNaN ( ) const
inlineprotectedinherited

◆ getNaN() [2/2]

template<typename... Args>
Real NaNInterface::getNaN ( Args &&...  args) const
inlineprotectedinherited

Throws an error or returns a NaN with or without a warning.

Definition at line 62 of file NaNInterface.h.

63  {
64  switch (_emit_on_nan)
65  {
66  case (NAN_MESSAGE_WARNING):
67  mooseWarning(_moose_object->name(), ": ", std::forward<Args>(args)...);
68  break;
69  case (NAN_MESSAGE_EXCEPTION):
70  mooseException(_moose_object->name(), ": ", std::forward<Args>(args)...);
71  break;
72  case (NAN_MESSAGE_ERROR):
73  mooseError(_moose_object->name(), ": ", std::forward<Args>(args)...);
74  break;
75  default:
76  break;
77  }
78  // return a quiet NaN
79  return std::nan("");
80  }
void mooseError(Args &&... args)
void mooseWarning(Args &&... args)
virtual const std::string & name() const
enum NaNMessage _emit_on_nan
Raise mooseWarning or mooseError?
Definition: NaNInterface.h:41
const MooseObject *const _moose_object
Definition: NaNInterface.h:38

◆ getNaNVector() [1/2]

std::vector<Real> NaNInterface::getNaNVector ( const unsigned int n) const
inlineprotectedinherited

Throws an error or returns NaNs with or without a warning, with a default message.

Parameters
[in]nVector size

Definition at line 53 of file NaNInterface.h.

Referenced by NaNInterfaceTestFluidProperties::returnNaNVector().

54  {
55  return getNaNVector(n, "A NaN was produced.");
56  }
std::vector< Real > getNaNVector(const unsigned int &n) const
Throws an error or returns NaNs with or without a warning, with a default message.
Definition: NaNInterface.h:53

◆ getNaNVector() [2/2]

template<typename... Args>
std::vector<Real> NaNInterface::getNaNVector ( const unsigned int n,
Args &&...  args 
) const
inlineprotectedinherited

Throws an error or returns NaNs with or without a warning.

Parameters
[in]nVector size

Definition at line 88 of file NaNInterface.h.

89  {
90  switch (_emit_on_nan)
91  {
92  case (NAN_MESSAGE_WARNING):
93  mooseWarning(_moose_object->name(), ": ", std::forward<Args>(args)...);
94  break;
95  case (NAN_MESSAGE_EXCEPTION):
96  mooseException(_moose_object->name(), ": ", std::forward<Args>(args)...);
97  break;
98  case (NAN_MESSAGE_ERROR):
99  mooseError(_moose_object->name(), ": ", std::forward<Args>(args)...);
100  break;
101  default:
102  break;
103  }
104  // return quiet NaNs
105  return std::vector<Real>(n, std::nan(""));
106  }
void mooseError(Args &&... args)
void mooseWarning(Args &&... args)
virtual const std::string & name() const
enum NaNMessage _emit_on_nan
Raise mooseWarning or mooseError?
Definition: NaNInterface.h:41
const MooseObject *const _moose_object
Definition: NaNInterface.h:38

◆ h_from_p_T() [1/2]

Real CaloricallyImperfectGas::h_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 767 of file CaloricallyImperfectGas.C.

Referenced by g_from_v_e(), h_from_p_T(), setupLookupTables(), and TEST_F().

768 {
769  return h_from_T(T);
770 }

◆ h_from_p_T() [2/2]

void CaloricallyImperfectGas::h_from_p_T ( Real  p,
Real  T,
Real h,
Real dh_dp,
Real dh_dT 
) const
overridevirtual

Definition at line 773 of file CaloricallyImperfectGas.C.

774 {
775  h = h_from_p_T(p, T);
776  dh_dp = 0.0;
777  dh_dT = cp_from_p_T(p, T);
778 }
virtual Real cp_from_p_T(Real p, Real T) const override
e e e e s T T T T T rho v v T e h
virtual Real h_from_p_T(Real p, Real T) const override

◆ h_from_T()

Real CaloricallyImperfectGas::h_from_T ( Real  T) const
protected

Definition at line 169 of file CaloricallyImperfectGas.C.

Referenced by h_from_p_T(), and h_from_T_v().

170 {
171  if (T < _min_temperature || T > _max_temperature)
173  return _e_T->value(T, Point()) + _R_specific * T;
174 }
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
const Function * _e_T
Internal energy as a function of temperature.
virtual Real value(Real t, const Point &p) const
Real _min_temperature
temperature limits when creating lookup tables
const Real _R_specific
Specific gas constant (R / molar mass)

◆ h_from_T_v() [1/2]

Real CaloricallyImperfectGas::h_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 720 of file CaloricallyImperfectGas.C.

721 {
722  return h_from_T(T);
723 }

◆ h_from_T_v() [2/2]

void CaloricallyImperfectGas::h_from_T_v ( Real  T,
Real  v,
Real h,
Real dh_dT,
Real dh_dv 
) const
overridevirtual

Definition at line 726 of file CaloricallyImperfectGas.C.

727 {
728  h = h_from_T(T);
729  dh_dT = cp_from_T(T);
730  dh_dv = 0.0;
731 }
e e e e s T T T T T rho v v T e h

◆ henryCoefficients()

std::vector< Real > SinglePhaseFluidProperties::henryCoefficients ( ) const
virtualinherited

Henry's law coefficients for dissolution in water.

Returns
Henry's constant coefficients

Reimplemented in CO2FluidProperties, TabulatedFluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, and MethaneFluidProperties.

Definition at line 374 of file SinglePhaseFluidProperties.C.

Referenced by TabulatedFluidProperties::henryCoefficients().

375 {
376  mooseError(__PRETTY_FUNCTION__, " not implemented.");
377 }
void mooseError(Args &&... args) const

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Implements ThreadedGeneralUserObject.

Definition at line 34 of file FluidProperties.h.

34 {}

◆ initialSetup()

void CaloricallyImperfectGas::initialSetup ( )
overridevirtual

Reimplemented from ThreadedGeneralUserObject.

Definition at line 59 of file CaloricallyImperfectGas.C.

60 {
62  _e_T = &getFunction("e");
63  _mu_T = &getFunction("mu");
64  _k_T = &getFunction("k");
65 
67 }
const Function & getFunction(const std::string &name) const
const Function * _k_T
Thermal conductivity.
void setupLookupTables()
sets up the T(e) reverse lookup table
const Function * _mu_T
Dynamic viscosity.
const Function * _e_T
Internal energy as a function of temperature.
virtual void initialSetup()

◆ k_from_p_T() [1/2]

Real CaloricallyImperfectGas::k_from_p_T ( Real  pressure,
Real  temperature 
) const
overridevirtual

Definition at line 892 of file CaloricallyImperfectGas.C.

Referenced by k_from_p_T(), and k_from_v_e().

893 {
894  return _k_T->value(temperature, Point());
895 }
static const std::string temperature
Definition: NS.h:59
const Function * _k_T
Thermal conductivity.
virtual Real value(Real t, const Point &p) const

◆ k_from_p_T() [2/2]

void CaloricallyImperfectGas::k_from_p_T ( Real  pressure,
Real  temperature,
Real k,
Real dk_dp,
Real dk_dT 
) const
overridevirtual

Definition at line 898 of file CaloricallyImperfectGas.C.

899 {
900  k = k_from_p_T(p, T);
901  dk_dp = 0.0;
902  Real pert = 1.0e-7;
903  Real k2 = this->k_from_p_T(p, T * (1 + pert));
904  dk_dT = (k2 - k) / (T * pert);
905 }
virtual Real k_from_p_T(Real pressure, Real temperature) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string k
Definition: NS.h:130

◆ k_from_v_e() [1/2]

Real CaloricallyImperfectGas::k_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 522 of file CaloricallyImperfectGas.C.

523 {
524  const Real T = T_from_v_e(v, e);
525  const Real p = p_from_v_e(v, e);
526  return k_from_p_T(p, T);
527 }
virtual Real k_from_p_T(Real pressure, Real temperature) const override
virtual Real T_from_v_e(Real v, Real e) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override

◆ k_from_v_e() [2/2]

void CaloricallyImperfectGas::k_from_v_e ( Real  v,
Real  e,
Real k,
Real dk_dv,
Real dk_de 
) const
overridevirtual

Definition at line 530 of file CaloricallyImperfectGas.C.

531 {
532  const Real T = T_from_v_e(v, e);
533  const Real p = p_from_v_e(v, e);
534  Real dk_dp, dk_dT;
535  k_from_p_T(p, T, k, dk_dp, dk_dT);
536  // only dk_de = dk/dT * dT/de = 1/cv * dk/dT is nonzero
537  // (dk/dv)_e = 0 because e only depends on T and e is constant
538  dk_dv = 0.0;
539  dk_de = dk_dT / cv_from_p_T(p, T);
540 }
virtual Real k_from_p_T(Real pressure, Real temperature) const override
virtual Real T_from_v_e(Real v, Real e) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override
static const std::string k
Definition: NS.h:130
virtual Real cv_from_p_T(Real p, Real T) const override

◆ makeZeroAndOne() [1/2]

template<typename T >
std::pair< T, T > SinglePhaseFluidProperties::makeZeroAndOne ( const T )
staticprotectedinherited

Given a type example, this method returns zero and unity representations of that type (first and second members of returned pair respectively)

Definition at line 476 of file SinglePhaseFluidProperties.h.

Referenced by SinglePhaseFluidProperties::xyDerivatives().

477 {
478  return {T{0, 0}, T{1, 0}};
479 }

◆ makeZeroAndOne() [2/2]

template<>
std::pair<Real, Real> SinglePhaseFluidProperties::makeZeroAndOne ( const Real )
inlineinherited

Definition at line 483 of file SinglePhaseFluidProperties.h.

484 {
485  return {Real{0}, Real{1}};
486 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ molarMass()

Real CaloricallyImperfectGas::molarMass ( ) const
overridevirtual

Molar mass [kg/mol].

Returns
molar mass

Reimplemented from SinglePhaseFluidProperties.

Definition at line 810 of file CaloricallyImperfectGas.C.

811 {
812  return _molar_mass;
813 }
const Real & _molar_mass
molar mass

◆ mu_from_p_T() [1/2]

Real CaloricallyImperfectGas::mu_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 876 of file CaloricallyImperfectGas.C.

Referenced by mu_from_p_T(), and mu_from_v_e().

877 {
878  return _mu_T->value(temperature, Point());
879 }
static const std::string temperature
Definition: NS.h:59
const Function * _mu_T
Dynamic viscosity.
virtual Real value(Real t, const Point &p) const

◆ mu_from_p_T() [2/2]

void CaloricallyImperfectGas::mu_from_p_T ( Real  p,
Real  T,
Real mu,
Real dmu_dp,
Real dmu_dT 
) const
overridevirtual

Definition at line 882 of file CaloricallyImperfectGas.C.

883 {
884  mu = this->mu_from_p_T(p, T);
885  dmu_dp = 0.0;
886  Real pert = 1.0e-7;
887  Real mu2 = this->mu_from_p_T(p, T * (1 + pert));
888  dmu_dT = (mu2 - mu) / (T * pert);
889 }
virtual Real mu_from_p_T(Real p, Real T) const override
static const std::string mu
Definition: NS.h:123
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ mu_from_v_e() [1/2]

Real CaloricallyImperfectGas::mu_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 501 of file CaloricallyImperfectGas.C.

502 {
503  const Real T = T_from_v_e(v, e);
504  const Real p = p_from_v_e(v, e);
505  return mu_from_p_T(p, T);
506 }
virtual Real mu_from_p_T(Real p, Real T) const override
virtual Real T_from_v_e(Real v, Real e) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override

◆ mu_from_v_e() [2/2]

void CaloricallyImperfectGas::mu_from_v_e ( Real  v,
Real  e,
Real mu,
Real dmu_dv,
Real dmu_de 
) const
overridevirtual

Definition at line 509 of file CaloricallyImperfectGas.C.

510 {
511  const Real T = T_from_v_e(v, e);
512  const Real p = p_from_v_e(v, e);
513  Real dmu_dp, dmu_dT;
514  mu_from_p_T(p, T, mu, dmu_dp, dmu_dT);
515  // only dmu_de = dmu/dT * dT/de = 1/cv * dmu/dT is nonzero
516  // (dmu/dv)_e = 0 because e only depends on T and e is constant
517  dmu_dv = 0.0;
518  dmu_de = dmu_dT / cv_from_p_T(p, T);
519 }
virtual Real mu_from_p_T(Real p, Real T) const override
virtual Real T_from_v_e(Real v, Real e) const override
static const std::string mu
Definition: NS.h:123
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override
virtual Real cv_from_p_T(Real p, Real T) const override

◆ outOfBounds()

void CaloricallyImperfectGas::outOfBounds ( const std::string &  function,
Real  value,
Real  min,
Real  max 
) const
protected

function that handles exceeding parameter limits

Definition at line 938 of file CaloricallyImperfectGas.C.

Referenced by cp_from_T(), cv_from_T(), e_from_T(), h_from_T(), T_from_e(), T_from_h(), and Z_from_T().

942 {
943  std::stringstream ss;
944  ss << "Function " << function << " encountered argument value of " << value
945  << " which is outside of the bounds of " << min << " .. " << max;
947  mooseError(ss.str());
948  else
949  mooseWarning(ss.str());
950 }
const bool _out_of_bound_error
Flag to error if out of bounds.
void mooseWarning(Args &&... args) const
auto max(const L &left, const R &right)
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
void mooseError(Args &&... args) const
auto min(const L &left, const R &right)

◆ p_from_h_s() [1/2]

Real CaloricallyImperfectGas::p_from_h_s ( Real  h,
Real  s 
) const
overridevirtual

Definition at line 917 of file CaloricallyImperfectGas.C.

Referenced by p_from_h_s().

918 {
919  Real T = T_from_h(h);
920  Real e = e_from_T(T);
921  Real Z = Z_from_T(T);
922  Real v = std::exp((s - Z) / _R_specific);
923  return p_from_v_e(v, e);
924 }
Real e_from_T(Real T) const
helper functions for e(T) and h(T), T(e), T(h), cv(T), cp(T)
e e e e s T T T T T rho v v T e h
static const std::string Z
Definition: NS.h:169
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ p_from_h_s() [2/2]

void CaloricallyImperfectGas::p_from_h_s ( Real  h,
Real  s,
Real p,
Real dp_dh,
Real dp_ds 
) const
overridevirtual

Definition at line 927 of file CaloricallyImperfectGas.C.

928 {
929  p = p_from_h_s(h, s);
930  Real pert = 1e-7;
931  Real p_pert = p_from_h_s(h * (1 + pert), s);
932  dp_dh = (p_pert - p) / (h * pert);
933  p_pert = p_from_h_s(h, s * (1 + pert));
934  dp_ds = (p_pert - p) / (s * pert);
935 }
virtual Real p_from_h_s(Real h, Real s) const override
e e e e s T T T T T rho v v T e h
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ p_from_T_v() [1/2]

Real CaloricallyImperfectGas::p_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 706 of file CaloricallyImperfectGas.C.

Referenced by s_from_T_v(), and TEST_F().

707 {
708  return _R_specific * T / v;
709 }
const Real _R_specific
Specific gas constant (R / molar mass)

◆ p_from_T_v() [2/2]

void CaloricallyImperfectGas::p_from_T_v ( Real  T,
Real  v,
Real p,
Real dp_dT,
Real dp_dv 
) const
overridevirtual

Definition at line 712 of file CaloricallyImperfectGas.C.

713 {
714  p = _R_specific * T / v;
715  dp_dT = _R_specific / v;
716  dp_dv = -_R_specific * T / (v * v);
717 }
const Real _R_specific
Specific gas constant (R / molar mass)

◆ p_from_v_e() [1/3]

Real CaloricallyImperfectGas::p_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 251 of file CaloricallyImperfectGas.C.

Referenced by g_from_v_e(), k_from_v_e(), mu_from_v_e(), p_from_h_s(), p_from_v_e(), and TEST_F().

252 {
253  if (v == 0.0)
254  return getNaN("Invalid value of specific volume detected (v = " + Moose::stringify(v) + ").");
255 
256  return _R_specific * T_from_e(e) / v;
257 }
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
Definition: NaNInterface.h:46
std::string stringify(const T &t)
const Real _R_specific
Specific gas constant (R / molar mass)

◆ p_from_v_e() [2/3]

ADReal CaloricallyImperfectGas::p_from_v_e ( const ADReal v,
const ADReal e 
) const
overridevirtual

Definition at line 260 of file CaloricallyImperfectGas.C.

261 {
262  if (v.value() == 0.0)
263  return getNaN("Invalid value of specific volume detected (v = " + Moose::stringify(v.value()) +
264  ").");
265 
266  Real x = 0;
267  Real raw1 = v.value();
268  Real raw2 = e.value();
269  Real dxd1 = 0;
270  Real dxd2 = 0;
271  p_from_v_e(raw1, raw2, x, dxd1, dxd2);
272 
273  ADReal result = x;
274  result.derivatives() = v.derivatives() * dxd1 + e.derivatives() * dxd2;
275  return result;
276 }
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
Definition: NaNInterface.h:46
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
std::string stringify(const T &t)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override

◆ p_from_v_e() [3/3]

void CaloricallyImperfectGas::p_from_v_e ( Real  v,
Real  e,
Real p,
Real dp_dv,
Real dp_de 
) const
overridevirtual

Definition at line 279 of file CaloricallyImperfectGas.C.

280 {
281  p = p_from_v_e(v, e);
282  Real T = T_from_e(e);
283  dp_dv = -_R_specific * T / v / v;
284  dp_de = _R_specific / v / cv_from_T(T);
285 }
Real cv_from_T(const CppType &T) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real p_from_v_e(Real v, Real e) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ p_T_from_h_s()

template<typename T >
void SinglePhaseFluidProperties::p_T_from_h_s ( const T h,
const T s,
Real  p0,
Real  T0,
T pressure,
T temperature,
bool &  conversion_succeeded 
) const
inherited

Determines (p,T) from (h,s) using Newton Solve in 2D Useful for conversion between different sets of state variables.

Parameters
[in]hspecific enthalpy (J / kg)
[in]sspecific entropy (J/K*kg)
[in]p0initial guess for pressure (Pa / kg)
[in]T0initial guess for temperature (K)
[out]fluidpressure (Pa / kg)
[out]Temperature(K)

Definition at line 575 of file SinglePhaseFluidProperties.h.

Referenced by TabulatedFluidProperties::T_from_h_s().

582 {
583  auto h_lambda = [&](const T & pressure, const T & temperature, T & new_h, T & dh_dp, T & dh_dT)
584  { h_from_p_T(pressure, temperature, new_h, dh_dp, dh_dT); };
585  auto s_lambda = [&](const T & pressure, const T & temperature, T & new_s, T & ds_dp, T & ds_dT)
586  { s_from_p_T(pressure, temperature, new_s, ds_dp, ds_dT); };
587  try
588  {
590  h, s, p0, T0, pressure, temperature, _tolerance, _tolerance, h_lambda, s_lambda);
591  conversion_succeeded = true;
592  }
593  catch (MooseException &)
594  {
595  conversion_succeeded = false;
596  }
597 
598  if (!conversion_succeeded)
599  mooseDoOnce(mooseWarning("Conversion from (h, s)=(", h, ", ", s, ") to (p, T) failed"));
600 }
static const std::string temperature
Definition: NS.h:59
void mooseWarning(Args &&... args) const
const Real _tolerance
Newton&#39;s method may be used to convert between variable sets.
e e e e s T T T T T rho v v T e h
void NewtonSolve2D(const T &f, const T &g, const Real x0, const Real y0, T &x_final, T &y_final, const Real f_tol, const Real g_tol, const Functor1 &func1, const Functor2 &func2, const unsigned int max_its=100)
NewtonSolve2D does a 2D Newton Solve to solve for the x and y such that: f = func1(x, y) and g = func2(x, y).
static const std::string pressure
Definition: NS.h:56

◆ p_T_from_v_e()

template<typename CppType >
void SinglePhaseFluidProperties::p_T_from_v_e ( const CppType &  v,
const CppType &  e,
Real  p0,
Real  T0,
CppType &  p,
CppType &  T,
bool &  conversion_succeeded 
) const
inherited

Determines (p,T) from (v,e) using Newton Solve in 2D Useful for conversion between different sets of state variables.

Parameters
[in]vspecific volume (m^3 / kg)
[in]especific internal energy (J / kg)
[in]p0initial guess for pressure (Pa / kg)
[in]T0initial guess for temperature (K)
[out]fluidpressure (Pa / kg)
[out]Temperature(K)

Definition at line 511 of file SinglePhaseFluidProperties.h.

Referenced by TabulatedBicubicFluidProperties::constructInterpolation(), TemperaturePressureFunctionFluidProperties::cp_from_v_e(), TemperaturePressureFunctionFluidProperties::cv_from_v_e(), TabulatedFluidProperties::g_from_v_e(), TemperaturePressureFunctionFluidProperties::k_from_v_e(), TemperaturePressureFunctionFluidProperties::mu_from_v_e(), and TemperaturePressureFunctionFluidProperties::T_from_v_e().

518 {
519  auto v_lambda = [&](const CppType & pressure,
520  const CppType & temperature,
521  CppType & new_v,
522  CppType & dv_dp,
523  CppType & dv_dT) { v_from_p_T(pressure, temperature, new_v, dv_dp, dv_dT); };
524  auto e_lambda = [&](const CppType & pressure,
525  const CppType & temperature,
526  CppType & new_e,
527  CppType & de_dp,
528  CppType & de_dT) { e_from_p_T(pressure, temperature, new_e, de_dp, de_dT); };
529  try
530  {
532  v, e, p0, T0, p, T, _tolerance, _tolerance, v_lambda, e_lambda);
533  conversion_succeeded = true;
534  }
535  catch (MooseException &)
536  {
537  conversion_succeeded = false;
538  }
539 
540  if (!conversion_succeeded)
541  mooseDoOnce(mooseWarning("Conversion from (v, e)=(", v, ", ", e, ") to (p, T) failed"));
542 }
static const std::string temperature
Definition: NS.h:59
void mooseWarning(Args &&... args) const
const Real _tolerance
Newton&#39;s method may be used to convert between variable sets.
void NewtonSolve2D(const T &f, const T &g, const Real x0, const Real y0, T &x_final, T &y_final, const Real f_tol, const Real g_tol, const Functor1 &func1, const Functor2 &func2, const unsigned int max_its=100)
NewtonSolve2D does a 2D Newton Solve to solve for the x and y such that: f = func1(x, y) and g = func2(x, y).
static const std::string pressure
Definition: NS.h:56

◆ p_T_from_v_h()

template<typename T >
void SinglePhaseFluidProperties::p_T_from_v_h ( const T v,
const T h,
Real  p0,
Real  T0,
T pressure,
T temperature,
bool &  conversion_succeeded 
) const
inherited

Determines (p,T) from (v,h) using Newton Solve in 2D Useful for conversion between different sets of state variables.

Parameters
[in]vspecific volume (m^3 / kg)
[in]hspecific enthalpy (J / kg)
[in]p0initial guess for pressure (Pa / kg)
[in]T0initial guess for temperature (K)
[out]fluidpressure (Pa / kg)
[out]Temperature(K)

Definition at line 546 of file SinglePhaseFluidProperties.h.

Referenced by TabulatedBicubicFluidProperties::constructInterpolation().

553 {
554  auto v_lambda = [&](const T & pressure, const T & temperature, T & new_v, T & dv_dp, T & dv_dT)
555  { v_from_p_T(pressure, temperature, new_v, dv_dp, dv_dT); };
556  auto h_lambda = [&](const T & pressure, const T & temperature, T & new_h, T & dh_dp, T & dh_dT)
557  { h_from_p_T(pressure, temperature, new_h, dh_dp, dh_dT); };
558  try
559  {
561  v, h, p0, T0, pressure, temperature, _tolerance, _tolerance, v_lambda, h_lambda);
562  conversion_succeeded = true;
563  }
564  catch (MooseException &)
565  {
566  conversion_succeeded = false;
567  }
568 
569  if (!conversion_succeeded)
570  mooseDoOnce(mooseWarning("Conversion from (v, h)=(", v, ", ", h, ") to (p, T) failed"));
571 }
static const std::string temperature
Definition: NS.h:59
void mooseWarning(Args &&... args) const
const Real _tolerance
Newton&#39;s method may be used to convert between variable sets.
e e e e s T T T T T rho v v T e h
void NewtonSolve2D(const T &f, const T &g, const Real x0, const Real y0, T &x_final, T &y_final, const Real f_tol, const Real g_tol, const Functor1 &func1, const Functor2 &func2, const unsigned int max_its=100)
NewtonSolve2D does a 2D Newton Solve to solve for the x and y such that: f = func1(x, y) and g = func2(x, y).
static const std::string pressure
Definition: NS.h:56

◆ propfunc() [1/12]

SinglePhaseFluidProperties::propfunc ( p  ,
v  ,
 
)
inherited

Compute a fluid property given for the state defined by two given properties.

For all functions, the first two arguments are the given properties that define the fluid state. For the two-argument variants, the desired property is the return value. The five-argument variants also provide partial derivatives dx/da and dx/db where x is the desired property being computed, a is the first given property, and b is the second given property. The desired property, dx/da, and dx/db are stored into the 3rd, 4th, and 5th arguments respectively.

Properties/parameters used in these function are listed below with their units:

p pressure [Pa] T temperature [K] e specific internal energy [J/kg] v specific volume [m^3/kg] rho density [kg/m^3] h specific enthalpy [J/kg] s specific entropy [J/(kg*K)] mu viscosity [Pa*s] k thermal conductivity [W/(m*K)] c speed of sound [m/s] cp constant-pressure specific heat [J/K] cv constant-volume specific heat [J/K] beta volumetric thermal expansion coefficient [1/K] g Gibbs free energy [J] pp_sat partial pressure at saturation [Pa] gamma Adiabatic ratio (cp/cv) [-]

As an example:

// calculate pressure given specific vol and energy: auto pressure = your_fluid_properties_object.p_from_v_e(specific_vol, specific_energy);

// or use the derivative variant: Real dp_dv = 0; // derivative will be stored into here Real dp_de = 0; // derivative will be stored into here your_fluid_properties_object.p_from_v_e(specific_vol, specific_energy, pressure, dp_dv, dp_de);

Automatic differentiation (AD) support is provided through x_from_a_b(ADReal a, ADReal b) and x_from_a_b(ADReal a, ADReal b, ADReal x, ADReal dx_da, ADReal dx_db) versions of the functions where a and b must be ADReal/DualNumber's calculated using all AD-supporting values:

auto v = 1/rho; // rho must be an AD non-linear variable. auto e = rhoE/rho - vel_energy; // rhoE and vel_energy must be AD variables/numbers also. auto pressure = your_fluid_properties_object.p_from_v_e(v, e); // pressure now contains partial derivatives w.r.t. all degrees of freedom

◆ propfunc() [2/12]

e SinglePhaseFluidProperties::propfunc ( c  ,
v  ,
 
)
inherited

◆ propfunc() [3/12]

e e SinglePhaseFluidProperties::propfunc ( cv  ,
v  ,
 
)
inherited

◆ propfunc() [4/12]

e e e SinglePhaseFluidProperties::propfunc ( ,
v  ,
 
)
inherited

◆ propfunc() [5/12]

e e e e SinglePhaseFluidProperties::propfunc ( ,
h  ,
p   
)
inherited

◆ propfunc() [6/12]

e e e e s SinglePhaseFluidProperties::propfunc ( ,
v  ,
h   
)
inherited

◆ propfunc() [7/12]

e e e e s T SinglePhaseFluidProperties::propfunc ( pp_sat  ,
p  ,
T   
)
inherited

◆ propfunc() [8/12]

e e e e s T T SinglePhaseFluidProperties::propfunc ( ,
rho  ,
T   
)
inherited

◆ propfunc() [9/12]

e e e e s T T T T T SinglePhaseFluidProperties::propfunc ( rho  ,
p  ,
T   
)
inherited

◆ propfunc() [10/12]

e e e e s T T T T T rho SinglePhaseFluidProperties::propfunc ( ,
T  ,
v   
)
inherited

◆ propfunc() [11/12]

e e e e s T T T T T rho v SinglePhaseFluidProperties::propfunc ( h  ,
T  ,
v   
)
inherited

◆ propfunc() [12/12]

e e e e s T T T T T rho v v SinglePhaseFluidProperties::propfunc ( cv  ,
T  ,
v   
)
inherited

◆ propfuncWithDefault() [1/7]

e e e e s T T T SinglePhaseFluidProperties::propfuncWithDefault ( cp  ,
p  ,
T   
)
inherited

◆ propfuncWithDefault() [2/7]

e e e e s T T T T SinglePhaseFluidProperties::propfuncWithDefault ( mu  ,
p  ,
T   
)
inherited

◆ propfuncWithDefault() [3/7]

e e e e s T T T T T rho v v T SinglePhaseFluidProperties::propfuncWithDefault ( h  ,
v  ,
 
)
inherited

◆ propfuncWithDefault() [4/7]

e e e e s T T T T T rho v v T e SinglePhaseFluidProperties::propfuncWithDefault ( p  ,
h  ,
 
)
inherited

◆ propfuncWithDefault() [5/7]

e e e e s T T T T T rho v v T e p SinglePhaseFluidProperties::propfuncWithDefault ( T  ,
p  ,
h   
)
inherited

◆ propfuncWithDefault() [6/7]

e e e e s T T T T T rho v v T e p T SinglePhaseFluidProperties::propfuncWithDefault ( v  ,
p  ,
T   
)
inherited

◆ propfuncWithDefault() [7/7]

e e e e s T T T T T rho v v T e p T T SinglePhaseFluidProperties::propfuncWithDefault ( gamma  ,
v  ,
 
)
inherited

◆ propfuncWithDefinitionOverride()

CaloricallyImperfectGas::propfuncWithDefinitionOverride ( ,
p  ,
rho   
)

◆ rho_e_from_p_T()

void SinglePhaseFluidProperties::rho_e_from_p_T ( Real  p,
Real  T,
Real rho,
Real drho_dp,
Real drho_dT,
Real e,
Real de_dp,
Real de_dT 
) const
virtualinherited

Definition at line 434 of file SinglePhaseFluidProperties.C.

442 {
443  rho_from_p_T(p, T, rho, drho_dp, drho_dT);
444  e_from_p_T(p, T, e, de_dp, de_dT);
445 }

◆ rho_from_p_s()

Real CaloricallyImperfectGas::rho_from_p_s ( Real  p,
Real  s 
) const
overridevirtual

Definition at line 593 of file CaloricallyImperfectGas.C.

594 {
595  auto s_diff = [&p, &s, this](Real x) { return this->s_from_p_T(p, x) - s; };
598  BrentsMethod::bracket(s_diff, min, max);
599  Real T = BrentsMethod::root(s_diff, min, max);
600  return rho_from_p_T(p, T);
601 }
auto max(const L &left, const R &right)
const std::vector< double > x
virtual Real s_from_p_T(Real p, Real T) const override
Real root(std::function< Real(Real)> const &f, Real x1, Real x2, Real tol=1.0e-12)
Finds the root of a function using Brent&#39;s method.
Definition: BrentsMethod.C:66
virtual Real rho_from_p_T(Real p, Real T) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _min_temperature
temperature limits when creating lookup tables
auto min(const L &left, const R &right)
void bracket(std::function< Real(Real)> const &f, Real &x1, Real &x2)
Function to bracket a root of a given function.
Definition: BrentsMethod.C:17

◆ rho_from_p_T() [1/4]

Real CaloricallyImperfectGas::rho_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 621 of file CaloricallyImperfectGas.C.

Referenced by rho_from_p_s(), rho_from_p_T(), s_from_h_p(), s_from_p_T(), and TEST_F().

622 {
623  return p * _molar_mass / (_R * T);
624 }
static const Real _R
Universal gas constant (J/mol/K)
const Real & _molar_mass
molar mass

◆ rho_from_p_T() [2/4]

ADReal CaloricallyImperfectGas::rho_from_p_T ( const ADReal p,
const ADReal T 
) const
overridevirtual

Definition at line 627 of file CaloricallyImperfectGas.C.

628 {
629  return p * _molar_mass / (_R * T);
630 }
static const Real _R
Universal gas constant (J/mol/K)
const Real & _molar_mass
molar mass

◆ rho_from_p_T() [3/4]

void CaloricallyImperfectGas::rho_from_p_T ( Real  p,
Real  T,
Real rho,
Real drho_dp,
Real drho_dT 
) const
overridevirtual

Definition at line 642 of file CaloricallyImperfectGas.C.

644 {
645  rho = rho_from_p_T(p, T);
646  drho_dp = _molar_mass / (_R * T);
647  drho_dT = -p * _molar_mass / (_R * T * T);
648 }
static const Real _R
Universal gas constant (J/mol/K)
virtual Real rho_from_p_T(Real p, Real T) const override
const Real & _molar_mass
molar mass

◆ rho_from_p_T() [4/4]

void CaloricallyImperfectGas::rho_from_p_T ( const ADReal p,
const ADReal T,
ADReal rho,
ADReal drho_dp,
ADReal drho_dT 
) const
overridevirtual

Definition at line 633 of file CaloricallyImperfectGas.C.

635 {
636  rho = rho_from_p_T(p, T);
637  drho_dp = _molar_mass / (_R * T);
638  drho_dT = -p * _molar_mass / (_R * T * T);
639 }
static const Real _R
Universal gas constant (J/mol/K)
virtual Real rho_from_p_T(Real p, Real T) const override
const Real & _molar_mass
molar mass

◆ rho_mu_from_p_T() [1/3]

void SinglePhaseFluidProperties::rho_mu_from_p_T ( Real  p,
Real  T,
Real rho,
Real mu 
) const
virtualinherited

Combined methods.

These methods are particularly useful for the PorousFlow module, where density and viscosity are typically both computed everywhere. The combined methods allow the most efficient means of calculating both properties, especially where rho(p, T) and mu(rho, T). In this case, an extra density calculation would be required to calculate mu(p, T). All property names are described above.

Reimplemented in Water97FluidProperties, CO2FluidProperties, HydrogenFluidProperties, and NitrogenFluidProperties.

Definition at line 448 of file SinglePhaseFluidProperties.C.

Referenced by PorousFlowWaterNCG::gasProperties(), PorousFlowBrineCO2::gasProperties(), and PorousFlowWaterNCG::liquidProperties().

449 {
450  rho = rho_from_p_T(p, T);
451  mu = mu_from_p_T(p, T);
452 }
static const std::string mu
Definition: NS.h:123

◆ rho_mu_from_p_T() [2/3]

void SinglePhaseFluidProperties::rho_mu_from_p_T ( Real  p,
Real  T,
Real rho,
Real drho_dp,
Real drho_dT,
Real mu,
Real dmu_dp,
Real dmu_dT 
) const
virtualinherited

Reimplemented in Water97FluidProperties, CO2FluidProperties, HydrogenFluidProperties, and NitrogenFluidProperties.

Definition at line 455 of file SinglePhaseFluidProperties.C.

463 {
464  rho_from_p_T(p, T, rho, drho_dp, drho_dT);
465  mu_from_p_T(p, T, mu, dmu_dp, dmu_dT);
466 }
static const std::string mu
Definition: NS.h:123

◆ rho_mu_from_p_T() [3/3]

void SinglePhaseFluidProperties::rho_mu_from_p_T ( const ADReal p,
const ADReal T,
ADReal rho,
ADReal mu 
) const
virtualinherited

Definition at line 469 of file SinglePhaseFluidProperties.C.

473 {
474  rho = rho_from_p_T(p, T);
475  mu = mu_from_p_T(p, T);
476 }
static const std::string mu
Definition: NS.h:123

◆ s_from_h_p() [1/2]

Real CaloricallyImperfectGas::s_from_h_p ( Real  h,
Real  p 
) const
overridevirtual

Definition at line 576 of file CaloricallyImperfectGas.C.

Referenced by s_from_h_p().

577 {
578  Real T = T_from_p_h(p, h);
579  Real v = 1.0 / rho_from_p_T(p, T);
580  Real Z = Z_from_T(T);
581  return Z + _R_specific * std::log(v);
582 }
virtual Real T_from_p_h(Real p, Real h) const override
e e e e s T T T T T rho v v T e h
virtual Real rho_from_p_T(Real p, Real T) const override
static const std::string Z
Definition: NS.h:169
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _R_specific
Specific gas constant (R / molar mass)

◆ s_from_h_p() [2/2]

void CaloricallyImperfectGas::s_from_h_p ( Real  h,
Real  p,
Real s,
Real ds_dh,
Real ds_dp 
) const
overridevirtual

Definition at line 585 of file CaloricallyImperfectGas.C.

586 {
587  s = s_from_h_p(h, p);
588  ds_dh = 1.0 / T_from_p_h(p, h);
589  ds_dp = -_R_specific / p;
590 }
virtual Real T_from_p_h(Real p, Real h) const override
e e e e s T T T T T rho v v T e h
virtual Real s_from_h_p(Real h, Real p) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ s_from_p_T() [1/2]

Real CaloricallyImperfectGas::s_from_p_T ( Real  p,
Real  T 
) const
overridevirtual

Definition at line 560 of file CaloricallyImperfectGas.C.

Referenced by g_from_v_e(), rho_from_p_s(), s_from_p_T(), and s_from_T_v().

561 {
562  Real Z = Z_from_T(T);
563  Real v = 1.0 / rho_from_p_T(p, T);
564  return Z + _R_specific * std::log(v);
565 }
virtual Real rho_from_p_T(Real p, Real T) const override
static const std::string Z
Definition: NS.h:169
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _R_specific
Specific gas constant (R / molar mass)

◆ s_from_p_T() [2/2]

void CaloricallyImperfectGas::s_from_p_T ( Real  p,
Real  T,
Real s,
Real ds_dp,
Real ds_dT 
) const
overridevirtual

Definition at line 568 of file CaloricallyImperfectGas.C.

569 {
570  s = s_from_p_T(p, T);
571  ds_dp = -_R_specific / p;
572  ds_dT = cp_from_p_T(p, T) / T;
573 }
virtual Real cp_from_p_T(Real p, Real T) const override
virtual Real s_from_p_T(Real p, Real T) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ s_from_T_v() [1/2]

Real CaloricallyImperfectGas::s_from_T_v ( Real  T,
Real  v 
) const
overridevirtual

Definition at line 734 of file CaloricallyImperfectGas.C.

735 {
736  Real p = p_from_T_v(T, v);
737  return s_from_p_T(p, T);
738 }
virtual Real s_from_p_T(Real p, Real T) const override
virtual Real p_from_T_v(Real T, Real v) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ s_from_T_v() [2/2]

void CaloricallyImperfectGas::s_from_T_v ( Real  T,
Real  v,
Real s,
Real ds_dT,
Real ds_dv 
) const
overridevirtual

Definition at line 741 of file CaloricallyImperfectGas.C.

742 {
743  Real p, dp_dT_v, dp_dv_T;
744  Real ds_dp_T, ds_dT_p;
745  p_from_T_v(T, v, p, dp_dT_v, dp_dv_T);
746  s_from_p_T(p, T, s, ds_dp_T, ds_dT_p);
747  ds_dT = ds_dT_p + ds_dp_T * dp_dT_v;
748  ds_dv = ds_dp_T * dp_dv_T;
749 }
virtual Real s_from_p_T(Real p, Real T) const override
virtual Real p_from_T_v(Real T, Real v) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ s_from_v_e() [1/2]

Real CaloricallyImperfectGas::s_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 543 of file CaloricallyImperfectGas.C.

Referenced by s_from_v_e().

544 {
545  Real T = T_from_v_e(v, e);
546  Real Z = Z_from_T(T);
547  return Z + _R_specific * std::log(v);
548 }
virtual Real T_from_v_e(Real v, Real e) const override
static const std::string Z
Definition: NS.h:169
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _R_specific
Specific gas constant (R / molar mass)

◆ s_from_v_e() [2/2]

void CaloricallyImperfectGas::s_from_v_e ( Real  v,
Real  e,
Real s,
Real ds_dv,
Real ds_de 
) const
overridevirtual

Definition at line 551 of file CaloricallyImperfectGas.C.

552 {
553  s = s_from_v_e(v, e);
554  // see documentation for derivation
555  ds_dv = _R_specific / v;
556  ds_de = 1.0 / T_from_v_e(v, e);
557 }
virtual Real T_from_v_e(Real v, Real e) const override
virtual Real s_from_v_e(Real v, Real e) const override
const Real _R_specific
Specific gas constant (R / molar mass)

◆ setupLookupTables()

void CaloricallyImperfectGas::setupLookupTables ( )
protected

sets up the T(e) reverse lookup table

Definition at line 70 of file CaloricallyImperfectGas.C.

Referenced by initialSetup().

71 {
72  // estimate number of points in inverse lookup & then adjust
73  // the _delta_T so (n - 1) * _delta_T = _max_temperature - _min_temperature
74  unsigned int n = std::floor((_max_temperature - _min_temperature) / _delta_T) + 1;
75  _delta_T = (_max_temperature - _min_temperature) / ((Real)n - 1.0);
76 
77  // ensure e(T) is monotonic
78  for (unsigned int j = 0; j < n; ++j)
79  {
81 
82  // Note that the function behavior at the end points
83  // can lead to de/dT = 0 & we want to allow that
84  Real cv = _e_T->timeDerivative(temperature, Point());
85  if (cv < 0 || (cv == 0 && j > 0 && j < n - 1))
86  mooseError("e(T) is not monotonically increasing with T");
87  }
88 
89  // backward lookup tables
90  _min_e = _e_T->value(_min_temperature, Point());
91  _max_e = _e_T->value(_max_temperature, Point());
92  _delta_e = (_max_e - _min_e) / ((Real)n - 1.0);
95  _delta_h = (_max_h - _min_h) / ((Real)n - 1.0);
96 
97  _T_e_lookup.resize(n);
98  _T_h_lookup.resize(n);
99  _Z_T_lookup.resize(n);
100  for (unsigned int j = 0; j < n; ++j)
101  {
102  // internal energy
103  {
105 
106  // guarding against roundoff when summing
107  // at least once I saw roundoff cause an error here
109 
110  // The temperature is found by e - e(T) = 0
113  auto e_diff = [&internal_energy, this](Real x)
114  { return this->e_from_p_T(0.0, x) - internal_energy; };
115  BrentsMethod::bracket(e_diff, min, max);
116  Real temperature = BrentsMethod::root(e_diff, min, max);
118  }
119 
120  // enthalpy
121  {
122  Real enthalpy = _min_h + j * _delta_h;
123 
124  // guarding against roundoff when summing
125  // at least once I saw roundoff cause an error here
126  enthalpy = std::min(enthalpy, _max_h);
127 
128  // The temperature is found by h - h(T) = 0
131  auto h_diff = [&enthalpy, this](Real x) { return this->h_from_p_T(0.0, x) - enthalpy; };
132  BrentsMethod::bracket(h_diff, min, max);
133  Real temperature = BrentsMethod::root(h_diff, min, max);
135  }
136 
137  // Z(T)
138  {
139  if (j == 0)
140  _Z_T_lookup[j] = 0;
141  else
142  {
144  Real temperature_prev = _min_temperature + (j - 1) * _delta_T;
146  Real f2 = cv_from_T(temperature_prev) / temperature_prev;
147  _Z_T_lookup[j] = _Z_T_lookup[j - 1] + 0.5 * _delta_T * (f1 + f2);
148  }
149  }
150  }
151 }
static const std::string cv
Definition: NS.h:122
virtual Real timeDerivative(Real t, const Point &p) const
Real _min_e
internal energy and enthalpy limits when creating lookup tables
Real _delta_e
step size in internal energy and enthalpy
static const std::string temperature
Definition: NS.h:59
auto max(const L &left, const R &right)
const std::vector< double > x
Real cv_from_T(const CppType &T) const
Real root(std::function< Real(Real)> const &f, Real x1, Real x2, Real tol=1.0e-12)
Finds the root of a function using Brent&#39;s method.
Definition: BrentsMethod.C:66
std::vector< Real > _T_h_lookup
inverse lookup table data
virtual Real e_from_p_T(Real p, Real T) const override
const Function * _e_T
Internal energy as a function of temperature.
virtual Real h_from_p_T(Real p, Real T) const override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _delta_T
temperature interval in lookup tables
void mooseError(Args &&... args) const
static const std::string internal_energy
Definition: NS.h:61
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual Real value(Real t, const Point &p) const
Real _min_temperature
temperature limits when creating lookup tables
auto min(const L &left, const R &right)
const Real _R_specific
Specific gas constant (R / molar mass)
std::vector< Real > _Z_T_lookup
Z(T) lookup table on uniform grid between _min_temperature and _max_temperature.
void bracket(std::function< Real(Real)> const &f, Real &x1, Real &x2)
Function to bracket a root of a given function.
Definition: BrentsMethod.C:17

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Reimplemented from ThreadedGeneralUserObject.

Definition at line 38 of file FluidProperties.h.

38 {}

◆ T_from_e()

Real CaloricallyImperfectGas::T_from_e ( Real  e) const
protected

Definition at line 208 of file CaloricallyImperfectGas.C.

Referenced by p_from_v_e(), and T_from_v_e().

209 {
210  if (e < _min_e || e > _max_e)
211  outOfBounds("T_from_e", e, _min_e, _max_e);
212 
213  if (e < _min_e)
214  return _T_e_lookup[0];
215  else if (e > _max_e)
216  return _T_e_lookup.back();
217 
218  unsigned int index = std::floor((e - _min_e) / _delta_e);
219  Real x = (e - _min_e - index * _delta_e) / _delta_e;
220  return x * _T_e_lookup[index + 1] + (1 - x) * _T_e_lookup[index];
221 }
Real _min_e
internal energy and enthalpy limits when creating lookup tables
Real _delta_e
step size in internal energy and enthalpy
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ T_from_h()

Real CaloricallyImperfectGas::T_from_h ( Real  h) const
protected

Definition at line 224 of file CaloricallyImperfectGas.C.

Referenced by e_from_v_h(), p_from_h_s(), and T_from_p_h().

225 {
226  if (h < _min_h || h > _max_h)
227  outOfBounds("h_from_e", h, _min_h, _max_h);
228 
229  if (h < _min_h)
230  return _T_h_lookup[0];
231  else if (h > _max_h)
232  return _T_h_lookup.back();
233 
234  unsigned int index = std::floor((h - _min_h) / _delta_h);
235  Real x = (h - _min_h - index * _delta_h) / _delta_h;
236  return x * _T_h_lookup[index + 1] + (1 - x) * _T_h_lookup[index];
237 }
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
e e e e s T T T T T rho v v T e h
const std::vector< double > x
std::vector< Real > _T_h_lookup
inverse lookup table data
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ T_from_p_h() [1/2]

Real CaloricallyImperfectGas::T_from_p_h ( Real  p,
Real  h 
) const
overridevirtual

Definition at line 834 of file CaloricallyImperfectGas.C.

Referenced by s_from_h_p(), and T_from_p_h().

835 {
836  return T_from_h(h);
837 }
e e e e s T T T T T rho v v T e h

◆ T_from_p_h() [2/2]

void CaloricallyImperfectGas::T_from_p_h ( Real  p,
Real  h,
Real T,
Real dT_dp,
Real dT_dh 
) const
overridevirtual

Definition at line 840 of file CaloricallyImperfectGas.C.

841 {
842  T = T_from_p_h(p, h);
843  dT_dp = 0;
844  dT_dh = 1.0 / cp_from_p_T(p, T);
845 }
virtual Real cp_from_p_T(Real p, Real T) const override
virtual Real T_from_p_h(Real p, Real h) const override
e e e e s T T T T T rho v v T e h

◆ T_from_v_e() [1/3]

Real CaloricallyImperfectGas::T_from_v_e ( Real  v,
Real  e 
) const
overridevirtual

Definition at line 288 of file CaloricallyImperfectGas.C.

Referenced by c_from_v_e(), cp_from_v_e(), cv_from_v_e(), g_from_v_e(), k_from_v_e(), mu_from_v_e(), s_from_v_e(), T_from_v_e(), and TEST_F().

289 {
290  return T_from_e(e);
291 }

◆ T_from_v_e() [2/3]

ADReal CaloricallyImperfectGas::T_from_v_e ( const ADReal v,
const ADReal e 
) const
overridevirtual

Definition at line 294 of file CaloricallyImperfectGas.C.

295 {
296  if (v.value() == 0.0)
297  return getNaN("Invalid value of specific volume detected (v = " + Moose::stringify(v.value()) +
298  ").");
299 
300  Real x = 0;
301  Real raw1 = v.value();
302  Real raw2 = e.value();
303  Real dxd1 = 0;
304  Real dxd2 = 0;
305  T_from_v_e(raw1, raw2, x, dxd1, dxd2);
306 
307  ADReal result = x;
308  result.derivatives() = v.derivatives() * dxd1 + e.derivatives() * dxd2;
309  return result;
310 }
Real getNaN() const
Throws an error or returns a NaN with or without a warning, with a default message.
Definition: NaNInterface.h:46
DualNumber< Real, DNDerivativeType, true > ADReal
virtual Real T_from_v_e(Real v, Real e) const override
const std::vector< double > x
std::string stringify(const T &t)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ T_from_v_e() [3/3]

void CaloricallyImperfectGas::T_from_v_e ( Real  v,
Real  e,
Real T,
Real dT_dv,
Real dT_de 
) const
overridevirtual

Definition at line 313 of file CaloricallyImperfectGas.C.

314 {
315  T = T_from_e(e);
316  dT_dv = 0.0;
317  dT_de = 1.0 / cv_from_v_e(v, e);
318 }
virtual Real cv_from_v_e(Real v, Real e) const override

◆ threadJoin()

virtual void FluidProperties::threadJoin ( const UserObject )
inlinefinalvirtualinherited

Reimplemented from ThreadedGeneralUserObject.

Definition at line 37 of file FluidProperties.h.

37 {}

◆ triplePointPressure()

Real SinglePhaseFluidProperties::triplePointPressure ( ) const
virtualinherited

Triple point pressure.

Returns
triple point pressure (Pa)

Reimplemented in TabulatedFluidProperties, CO2FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, MethaneFluidProperties, NaClFluidProperties, and Water97FluidProperties.

Definition at line 322 of file SinglePhaseFluidProperties.C.

Referenced by TabulatedFluidProperties::triplePointPressure().

323 {
324  mooseError(__PRETTY_FUNCTION__, " not implemented.");
325 }
void mooseError(Args &&... args) const

◆ triplePointTemperature()

Real SinglePhaseFluidProperties::triplePointTemperature ( ) const
virtualinherited

Triple point temperature.

Returns
triple point temperature (K)

Reimplemented in TabulatedFluidProperties, CO2FluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, MethaneFluidProperties, NaClFluidProperties, and Water97FluidProperties.

Definition at line 328 of file SinglePhaseFluidProperties.C.

Referenced by TabulatedFluidProperties::triplePointTemperature().

329 {
330  mooseError(__PRETTY_FUNCTION__, " not implemented.");
331 }
void mooseError(Args &&... args) const

◆ v_e_from_p_T() [1/2]

template<typename CppType >
void SinglePhaseFluidProperties::v_e_from_p_T ( const CppType &  p,
const CppType &  T,
CppType &  v,
CppType &  e 
) const
inherited

Definition at line 604 of file SinglePhaseFluidProperties.h.

608 {
609  const CppType rho = rho_from_p_T(p, T);
610  v = 1.0 / rho;
611  try
612  {
613  // more likely to not involve a Newton search
614  e = e_from_p_T(p, T);
615  }
616  catch (...)
617  {
618  e = e_from_p_rho(p, rho);
619  }
620 }

◆ v_e_from_p_T() [2/2]

template<typename CppType >
void SinglePhaseFluidProperties::v_e_from_p_T ( const CppType &  p,
const CppType &  T,
CppType &  v,
CppType &  dv_dp,
CppType &  dv_dT,
CppType &  e,
CppType &  de_dp,
CppType &  de_dT 
) const
inherited

Definition at line 624 of file SinglePhaseFluidProperties.h.

632 {
633  CppType rho, drho_dp, drho_dT;
634  rho_from_p_T(p, T, rho, drho_dp, drho_dT);
635 
636  v = 1.0 / rho;
637  const CppType dv_drho = -1.0 / (rho * rho);
638  dv_dp = dv_drho * drho_dp;
639  dv_dT = dv_drho * drho_dT;
640 
641  CppType de_dp_partial, de_drho;
642  e_from_p_rho(p, rho, e, de_dp_partial, de_drho);
643  de_dp = de_dp_partial + de_drho * drho_dp;
644  de_dT = de_drho * drho_dT;
645 }

◆ v_e_spndl_from_T()

void CaloricallyImperfectGas::v_e_spndl_from_T ( Real  T,
Real v,
Real e 
) const
overridevirtual

Specific internal energy from temperature and specific volume.

Parameters
[in]Ttemperature
[in]vspecific volume

Reimplemented from SinglePhaseFluidProperties.

Definition at line 760 of file CaloricallyImperfectGas.C.

◆ validParams()

InputParameters CaloricallyImperfectGas::validParams ( )
static

Definition at line 19 of file CaloricallyImperfectGas.C.

20 {
22  params += NaNInterface::validParams();
23 
24  params.addRequiredParam<Real>("molar_mass", "Constant molar mass of the fluid [kg/mol]");
25  params.addRequiredParam<FunctionName>("mu", "Dynamic viscosity, [Pa-s]");
26  params.addRequiredParam<FunctionName>("k", "Thermal conductivity, [W/(m-K)]");
27  params.addParam<Real>("T_c", 0, "Critical temperature, [K]");
28  params.addParam<Real>("rho_c", 0, "Critical density, [kg/m3]");
29  params.addParam<Real>("e_c", 0, "Specific internal energy at the critical point, [J/kg]");
30  params.addRequiredParam<FunctionName>(
31  "e", "Specific internal energy as a function of temperature [J/kg]");
32  params.addRequiredParam<Real>("min_temperature", "Smallest temperature for lookup tables [K]");
33  params.addRequiredParam<Real>("max_temperature", "Largest temperature for lookup tables [K]");
34  params.addParam<Real>(
35  "temperature_resolution", 1, "Step size in temperature for creating the inverse lookup T(e)");
36  params.addParam<bool>("out_of_bound_error", true, "Error if out of bounds");
37  params.addClassDescription("Fluid properties for an ideal gas with imperfect caloric behavior.");
38 
39  return params;
40 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
void addRequiredParam(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Definition: NaNInterface.C:15

◆ vaporPressure() [1/3]

Real SinglePhaseFluidProperties::vaporPressure ( Real  T) const
virtualinherited

Vapor pressure.

Used to delineate liquid and gas phases. Valid for temperatures between the triple point temperature and the critical temperature

Parameters
Tfluid temperature (K)
[out]saturationpressure (Pa)
[out]derivativeof saturation pressure wrt temperature (Pa/K)

Reimplemented in Water97FluidProperties, CO2FluidProperties, TabulatedFluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, and MethaneFluidProperties.

Definition at line 368 of file SinglePhaseFluidProperties.C.

Referenced by PorousFlowWaterNCG::equilibriumMassFractions(), PorousFlowWaterNCG::gasDensity(), PorousFlowWaterNCG::gasProperties(), TabulatedFluidProperties::vaporPressure(), BrineFluidProperties::vaporPressure(), and SinglePhaseFluidProperties::vaporPressure().

369 {
370  mooseError(__PRETTY_FUNCTION__, " not implemented.");
371 }
void mooseError(Args &&... args) const

◆ vaporPressure() [2/3]

void SinglePhaseFluidProperties::vaporPressure ( Real  T,
Real psat,
Real dpsat_dT 
) const
virtualinherited

Reimplemented in Water97FluidProperties, CO2FluidProperties, TabulatedFluidProperties, HydrogenFluidProperties, NitrogenFluidProperties, and MethaneFluidProperties.

Definition at line 380 of file SinglePhaseFluidProperties.C.

381 {
382  unimplementedDerivativeMethod(__PRETTY_FUNCTION__);
383 
384  dp_dT = 0.0;
385  p = vaporPressure(T);
386 }
virtual Real vaporPressure(Real T) const
Vapor pressure.
void unimplementedDerivativeMethod(const std::string &property_function_name) const

◆ vaporPressure() [3/3]

ADReal SinglePhaseFluidProperties::vaporPressure ( const ADReal T) const
virtualinherited

Definition at line 389 of file SinglePhaseFluidProperties.C.

390 {
391  Real p = 0.0;
392  Real temperature = T.value();
393  Real dpdT = 0.0;
394 
395  vaporPressure(temperature, p, dpdT);
396 
397  ADReal result = p;
398  result.derivatives() = T.derivatives() * dpdT;
399 
400  return result;
401 }
static const std::string temperature
Definition: NS.h:59
DualNumber< Real, DNDerivativeType, true > ADReal
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real vaporPressure(Real T) const
Vapor pressure.

◆ vaporTemperature() [1/3]

Real SinglePhaseFluidProperties::vaporTemperature ( Real  p) const
virtualinherited

Vapor temperature.

Used to delineate liquid and gas phases. Valid for pressures between the triple point pressure and the critical pressure

Parameters
pfluid pressure (Pa)
[out]saturationtemperature (K)
[out]derivativeof saturation temperature wrt pressure

Reimplemented in Water97FluidProperties, and TabulatedFluidProperties.

Definition at line 404 of file SinglePhaseFluidProperties.C.

Referenced by PorousFlowWaterVapor::thermophysicalProperties(), TabulatedFluidProperties::vaporTemperature(), and SinglePhaseFluidProperties::vaporTemperature().

405 {
406  mooseError(__PRETTY_FUNCTION__, " not implemented.");
407 }
void mooseError(Args &&... args) const

◆ vaporTemperature() [2/3]

void SinglePhaseFluidProperties::vaporTemperature ( Real  p,
Real Tsat,
Real dTsat_dp 
) const
virtualinherited

Reimplemented in Water97FluidProperties, and TabulatedFluidProperties.

Definition at line 410 of file SinglePhaseFluidProperties.C.

411 {
412  unimplementedDerivativeMethod(__PRETTY_FUNCTION__);
413 
414  dT_dp = 0.0;
415  T = vaporTemperature(p);
416 }
virtual Real vaporTemperature(Real p) const
Vapor temperature.
void unimplementedDerivativeMethod(const std::string &property_function_name) const

◆ vaporTemperature() [3/3]

ADReal SinglePhaseFluidProperties::vaporTemperature ( const ADReal p) const
virtualinherited

Definition at line 419 of file SinglePhaseFluidProperties.C.

420 {
421  Real T = 0.0;
422  Real pressure = p.value();
423  Real dTdp = 0.0;
424 
425  vaporTemperature(pressure, T, dTdp);
426 
427  ADReal result = T;
428  result.derivatives() = p.derivatives() * dTdp;
429 
430  return result;
431 }
DualNumber< Real, DNDerivativeType, true > ADReal
virtual Real vaporTemperature(Real p) const
Vapor temperature.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::string pressure
Definition: NS.h:56

◆ xyDerivatives()

template<typename T , typename Functor >
void SinglePhaseFluidProperties::xyDerivatives ( const T  x,
const T y,
T z,
T dz_dx,
T dz_dy,
const Functor z_from_x_y 
)
staticprotectedinherited

Computes the dependent variable z and its derivatives with respect to the independent variables x and y using the simple two parameter z_from_x_y functor.

The derivatives are computed using a compound automatic differentiation type

Definition at line 490 of file SinglePhaseFluidProperties.h.

Referenced by Water97FluidProperties::e_from_p_rho_template(), Water97FluidProperties::h_from_p_T_template(), Water97FluidProperties::rho_from_p_T_template(), and Water97FluidProperties::v_from_p_T_template().

492 {
494  const auto [zero, one] = makeZeroAndOne(x);
495 
496  CompoundType x_c(x, zero);
497  auto & x_cd = x_c.derivatives();
498  x_cd[0] = one;
499  CompoundType y_c(y, zero);
500  auto & y_cd = y_c.derivatives();
501  y_cd[1] = one;
502 
503  const auto z_c = z_from_x_y(x_c, y_c);
504  z = z_c.value();
505  dz_dx = z_c.derivatives()[0];
506  dz_dy = z_c.derivatives()[1];
507 }
static std::pair< T, T > makeZeroAndOne(const T &)
Given a type example, this method returns zero and unity representations of that type (first and seco...
const std::vector< double > y
const Number zero
const std::vector< double > x

◆ Z_from_T()

Real CaloricallyImperfectGas::Z_from_T ( Real  T) const
protected

Definition at line 240 of file CaloricallyImperfectGas.C.

Referenced by p_from_h_s(), s_from_h_p(), s_from_p_T(), and s_from_v_e().

241 {
242  if (T < _min_temperature || T > _max_temperature)
244 
245  unsigned int index = std::floor((T - _min_temperature) / _delta_T);
246  Real x = (T - _min_temperature - index * _delta_T) / _delta_T;
247  return x * _Z_T_lookup[index + 1] + (1 - x) * _Z_T_lookup[index];
248 }
void outOfBounds(const std::string &function, Real value, Real min, Real max) const
function that handles exceeding parameter limits
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real _delta_T
temperature interval in lookup tables
Real _min_temperature
temperature limits when creating lookup tables
std::vector< Real > _Z_T_lookup
Z(T) lookup table on uniform grid between _min_temperature and _max_temperature.

Member Data Documentation

◆ _allow_imperfect_jacobians

const bool FluidProperties::_allow_imperfect_jacobians
protectedinherited

Flag to set unimplemented Jacobian entries to zero.

Definition at line 47 of file FluidProperties.h.

Referenced by VaporMixtureFluidProperties::imperfectJacobianMessage(), and SinglePhaseFluidProperties::unimplementedDerivativeMethod().

◆ _delta_e

Real CaloricallyImperfectGas::_delta_e
protected

step size in internal energy and enthalpy

Definition at line 181 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_e().

◆ _delta_h

Real CaloricallyImperfectGas::_delta_h
protected

Definition at line 182 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_h().

◆ _delta_T

Real CaloricallyImperfectGas::_delta_T
protected

temperature interval in lookup tables

Definition at line 158 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and Z_from_T().

◆ _e_c

Real CaloricallyImperfectGas::_e_c
protected

◆ _e_T

const Function* CaloricallyImperfectGas::_e_T
protected

Internal energy as a function of temperature.

Definition at line 167 of file CaloricallyImperfectGas.h.

Referenced by cp_from_T(), cv_from_T(), e_from_T(), h_from_T(), initialSetup(), and setupLookupTables().

◆ _emit_on_nan

enum NaNMessage NaNInterface::_emit_on_nan
protectedinherited

Raise mooseWarning or mooseError?

Definition at line 41 of file NaNInterface.h.

Referenced by NaNInterface::getNaN(), and NaNInterface::getNaNVector().

◆ _k_T

const Function* CaloricallyImperfectGas::_k_T
protected

Thermal conductivity.

Definition at line 171 of file CaloricallyImperfectGas.h.

Referenced by initialSetup(), and k_from_p_T().

◆ _max_e

Real CaloricallyImperfectGas::_max_e
protected

Definition at line 175 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_e().

◆ _max_h

Real CaloricallyImperfectGas::_max_h
protected

Definition at line 177 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_h().

◆ _max_newton_its

const unsigned int SinglePhaseFluidProperties::_max_newton_its
protectedinherited

◆ _max_temperature

Real CaloricallyImperfectGas::_max_temperature
protected

◆ _min_e

Real CaloricallyImperfectGas::_min_e
protected

internal energy and enthalpy limits when creating lookup tables

Definition at line 174 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_e().

◆ _min_h

Real CaloricallyImperfectGas::_min_h
protected

Definition at line 176 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_h().

◆ _min_temperature

Real CaloricallyImperfectGas::_min_temperature
protected

temperature limits when creating lookup tables

Definition at line 153 of file CaloricallyImperfectGas.h.

Referenced by cp_from_T(), cv_from_T(), e_from_T(), h_from_T(), rho_from_p_s(), setupLookupTables(), and Z_from_T().

◆ _molar_mass

const Real& CaloricallyImperfectGas::_molar_mass
protected

molar mass

Definition at line 142 of file CaloricallyImperfectGas.h.

Referenced by molarMass(), and rho_from_p_T().

◆ _moose_object

const MooseObject* const NaNInterface::_moose_object
protectedinherited

Definition at line 38 of file NaNInterface.h.

Referenced by NaNInterface::getNaN(), and NaNInterface::getNaNVector().

◆ _mu_T

const Function* CaloricallyImperfectGas::_mu_T
protected

Dynamic viscosity.

Definition at line 169 of file CaloricallyImperfectGas.h.

Referenced by initialSetup(), and mu_from_p_T().

◆ _out_of_bound_error

const bool CaloricallyImperfectGas::_out_of_bound_error
protected

Flag to error if out of bounds.

Definition at line 161 of file CaloricallyImperfectGas.h.

Referenced by outOfBounds().

◆ _p_initial_guess

const Real SinglePhaseFluidProperties::_p_initial_guess
protectedinherited

◆ _R

const Real FluidProperties::_R = 8.3144598
staticinherited

◆ _R_specific

const Real CaloricallyImperfectGas::_R_specific
protected

Specific gas constant (R / molar mass)

Definition at line 145 of file CaloricallyImperfectGas.h.

Referenced by c_from_p_T(), c_from_v_e(), cp_from_T(), h_from_T(), p_from_h_s(), p_from_T_v(), p_from_v_e(), s_from_h_p(), s_from_p_T(), s_from_v_e(), and setupLookupTables().

◆ _rho_c

Real CaloricallyImperfectGas::_rho_c
protected

Definition at line 149 of file CaloricallyImperfectGas.h.

Referenced by criticalDensity(), and v_e_spndl_from_T().

◆ _T_c

Real CaloricallyImperfectGas::_T_c
protected

Definition at line 148 of file CaloricallyImperfectGas.h.

Referenced by criticalTemperature().

◆ _T_c2k

const Real FluidProperties::_T_c2k
protectedinherited

◆ _T_e_lookup

std::vector<Real> CaloricallyImperfectGas::_T_e_lookup
protected

Definition at line 187 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_e().

◆ _T_h_lookup

std::vector<Real> CaloricallyImperfectGas::_T_h_lookup
protected

inverse lookup table data

Definition at line 186 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and T_from_h().

◆ _T_initial_guess

const Real SinglePhaseFluidProperties::_T_initial_guess
protectedinherited

◆ _tol

Real CaloricallyImperfectGas::_tol
protected

Definition at line 164 of file CaloricallyImperfectGas.h.

◆ _tolerance

const Real SinglePhaseFluidProperties::_tolerance
protectedinherited

◆ _Z_T_lookup

std::vector<Real> CaloricallyImperfectGas::_Z_T_lookup
protected

Z(T) lookup table on uniform grid between _min_temperature and _max_temperature.

Definition at line 191 of file CaloricallyImperfectGas.h.

Referenced by setupLookupTables(), and Z_from_T().

◆ h

e e e e s T T T T T rho v v T e SinglePhaseFluidProperties::h
inherited

Definition at line 212 of file SinglePhaseFluidProperties.h.

Referenced by SodiumSaturationFluidProperties::e_from_p_T(), NaKFluidProperties::e_from_p_T(), NaClFluidProperties::e_from_p_T(), LeadBismuthFluidProperties::e_from_p_T(), LeadLithiumFluidProperties::e_from_p_T(), LeadFluidProperties::e_from_p_T(), TemperaturePressureFunctionFluidProperties::e_from_p_T(), LinearFluidProperties::e_from_v_h(), e_from_v_h(), StiffenedGasFluidProperties::e_from_v_h(), IdealGasFluidProperties::e_from_v_h(), Water97FluidProperties::e_from_v_h(), TabulatedFluidProperties::e_from_v_h(), SimpleFluidProperties::e_from_v_h(), TabulatedFluidProperties::g_from_v_e(), SodiumSaturationFluidProperties::h_from_p_T(), HelmholtzFluidProperties::h_from_p_T(), LinearFluidProperties::h_from_p_T(), StiffenedGasFluidProperties::h_from_p_T(), NaKFluidProperties::h_from_p_T(), LeadLithiumFluidProperties::h_from_p_T(), LeadBismuthFluidProperties::h_from_p_T(), TabulatedFluidProperties::h_from_p_T(), LeadFluidProperties::h_from_p_T(), h_from_p_T(), NaClFluidProperties::h_from_p_T(), IdealGasFluidProperties::h_from_p_T(), SimpleFluidProperties::h_from_p_T(), TemperaturePressureFunctionFluidProperties::h_from_p_T(), Water97FluidProperties::h_from_p_T(), FlibeFluidProperties::h_from_p_T(), FlinakFluidProperties::h_from_p_T(), HeliumFluidProperties::h_from_p_T(), Water97FluidProperties::h_from_p_T_template(), StiffenedGasFluidProperties::h_from_T_v(), h_from_T_v(), IdealGasFluidProperties::h_from_T_v(), LeadLithiumFluidProperties::h_from_v_e(), LeadBismuthFluidProperties::h_from_v_e(), LeadFluidProperties::h_from_v_e(), StiffenedGasFluidProperties::p_from_h_s(), p_from_h_s(), IdealGasFluidProperties::p_from_h_s(), LeadLithiumFluidProperties::p_from_v_e(), LeadFluidProperties::p_from_v_e(), LeadBismuthFluidProperties::p_from_v_e(), SimpleFluidProperties::p_from_v_h(), SinglePhaseFluidProperties::p_T_from_h_s(), SinglePhaseFluidProperties::p_T_from_v_h(), Water97FluidProperties::p_T_from_v_h(), StiffenedGasFluidProperties::s_from_h_p(), s_from_h_p(), IdealGasFluidProperties::s_from_h_p(), TabulatedFluidProperties::s_from_h_p(), Water97FluidProperties::s_from_h_p(), T_from_h(), TabulatedFluidProperties::T_from_h_s(), LeadBismuthFluidProperties::T_from_p_h(), LeadLithiumFluidProperties::T_from_p_h(), LeadFluidProperties::T_from_p_h(), TemperaturePressureFunctionFluidProperties::T_from_p_h(), T_from_p_h(), FlibeFluidProperties::T_from_p_h(), FlinakFluidProperties::T_from_p_h(), HeliumFluidProperties::T_from_p_h(), IdealGasFluidProperties::T_from_p_h(), SimpleFluidProperties::T_from_p_h(), Water97FluidProperties::T_from_p_h(), and SimpleFluidProperties::T_from_v_h().

◆ p [1/10]

e e e e SinglePhaseFluidProperties::p
inherited

Definition at line 190 of file SinglePhaseFluidProperties.h.

Referenced by LinearFluidProperties::beta_from_p_T(), c_from_p_T(), Water97FluidProperties::c_from_p_T(), StiffenedGasFluidProperties::c_from_v_e(), HeliumFluidProperties::c_from_v_e(), Water97FluidProperties::c_from_v_e(), TabulatedFluidProperties::c_from_v_e(), LeadLithiumFluidProperties::cp_from_p_T(), LeadBismuthFluidProperties::cp_from_p_T(), LeadFluidProperties::cp_from_p_T(), IdealGasFluidProperties::cp_from_p_T(), TemperaturePressureFunctionFluidProperties::cp_from_p_T(), TemperaturePressureFunctionFluidProperties::cp_from_v_e(), TabulatedFluidProperties::cp_from_v_e(), Water97FluidProperties::cp_from_v_e(), LeadFluidProperties::cv_from_p_T(), LeadLithiumFluidProperties::cv_from_p_T(), LeadBismuthFluidProperties::cv_from_p_T(), IdealGasFluidProperties::cv_from_p_T(), LeadLithiumFluidProperties::cv_from_v_e(), LeadBismuthFluidProperties::cv_from_v_e(), LeadFluidProperties::cv_from_v_e(), TemperaturePressureFunctionFluidProperties::cv_from_v_e(), TabulatedFluidProperties::cv_from_v_e(), Water97FluidProperties::cv_from_v_e(), TestSinglePhaseFluidProperties::e_from_p_rho(), LinearTestFluidProperties::e_from_p_rho(), LinearFluidProperties::e_from_p_rho(), LeadLithiumFluidProperties::e_from_p_rho(), LeadBismuthFluidProperties::e_from_p_rho(), IdealGasFluidProperties::e_from_p_rho(), LeadFluidProperties::e_from_p_rho(), Water97FluidProperties::e_from_p_rho(), SimpleFluidProperties::e_from_p_rho(), TemperaturePressureFunctionFluidProperties::e_from_p_rho(), FlibeFluidProperties::e_from_p_rho(), FlinakFluidProperties::e_from_p_rho(), HeliumFluidProperties::e_from_p_rho(), Water97FluidProperties::e_from_p_rho_template(), LinearFluidProperties::e_from_p_T(), StiffenedGasFluidProperties::e_from_p_T(), LeadLithiumFluidProperties::e_from_p_T(), LeadBismuthFluidProperties::e_from_p_T(), LeadFluidProperties::e_from_p_T(), e_from_p_T(), IdealGasFluidProperties::e_from_p_T(), Water97FluidProperties::e_from_v_h(), TabulatedFluidProperties::e_from_v_h(), SimpleFluidProperties::e_from_v_h(), StiffenedGasFluidProperties::g_from_v_e(), g_from_v_e(), IdealGasFluidProperties::g_from_v_e(), TabulatedFluidProperties::g_from_v_e(), gamma_from_p_T(), TabulatedFluidProperties::generateTabulatedData(), LinearFluidProperties::h_from_p_T(), StiffenedGasFluidProperties::h_from_p_T(), LeadLithiumFluidProperties::h_from_p_T(), LeadBismuthFluidProperties::h_from_p_T(), LeadFluidProperties::h_from_p_T(), h_from_p_T(), IdealGasFluidProperties::h_from_p_T(), Water97FluidProperties::henryConstant(), LeadBismuthFluidProperties::k_from_p_T(), LeadLithiumFluidProperties::k_from_p_T(), LeadFluidProperties::k_from_p_T(), k_from_p_T(), IdealGasFluidProperties::k_from_p_T(), k_from_v_e(), TemperaturePressureFunctionFluidProperties::k_from_v_e(), TabulatedFluidProperties::k_from_v_e(), Water97FluidProperties::k_from_v_e_template(), LeadBismuthFluidProperties::mu_from_p_T(), LeadLithiumFluidProperties::mu_from_p_T(), LeadFluidProperties::mu_from_p_T(), mu_from_v_e(), TemperaturePressureFunctionFluidProperties::mu_from_v_e(), TabulatedFluidProperties::mu_from_v_e(), StiffenedGasFluidProperties::p_from_h_s(), p_from_h_s(), IdealGasFluidProperties::p_from_h_s(), StiffenedGasFluidProperties::p_from_T_v(), p_from_T_v(), IdealGasFluidProperties::p_from_T_v(), LinearFluidProperties::p_from_v_e(), LeadFluidProperties::p_from_v_e(), LeadLithiumFluidProperties::p_from_v_e(), LeadBismuthFluidProperties::p_from_v_e(), LinearTestFluidProperties::p_from_v_e(), p_from_v_e(), IdealGasFluidProperties::p_from_v_e(), FlibeFluidProperties::p_from_v_e(), FlinakFluidProperties::p_from_v_e(), HeliumFluidProperties::p_from_v_e(), TemperaturePressureFunctionFluidProperties::p_from_v_e(), SimpleFluidProperties::p_from_v_e(), TabulatedFluidProperties::p_from_v_e(), Water97FluidProperties::p_from_v_e_template(), SimpleFluidProperties::p_from_v_h(), SinglePhaseFluidProperties::p_T_from_v_e(), Water97FluidProperties::p_T_from_v_e(), SinglePhaseFluidProperties::rho_e_from_p_T(), StiffenedGasFluidProperties::rho_from_p_s(), TabulatedFluidProperties::rho_from_p_s(), rho_from_p_s(), IdealGasFluidProperties::rho_from_p_s(), TestSinglePhaseFluidProperties::rho_from_p_T(), LinearTestFluidProperties::rho_from_p_T(), TabulatedFluidProperties::rho_from_p_T(), LinearFluidProperties::rho_from_p_T(), rho_from_p_T(), LeadBismuthFluidProperties::rho_from_p_T(), LeadLithiumFluidProperties::rho_from_p_T(), LeadFluidProperties::rho_from_p_T(), IdealGasFluidProperties::rho_from_p_T(), SinglePhaseFluidProperties::rho_mu_from_p_T(), Water97FluidProperties::rho_T_from_v_e(), StiffenedGasFluidProperties::s_from_h_p(), s_from_h_p(), IdealGasFluidProperties::s_from_h_p(), Water97FluidProperties::s_from_h_p(), s_from_p_T(), IdealGasFluidProperties::s_from_p_T(), TabulatedFluidProperties::s_from_p_T(), s_from_T_v(), IdealGasFluidProperties::s_from_T_v(), IdealGasFluidProperties::s_from_v_e(), TabulatedFluidProperties::s_from_v_e(), Water97FluidProperties::T_drhodT_from_p_rho(), TabulatedFluidProperties::T_from_h_s(), LeadLithiumFluidProperties::T_from_p_h(), LeadBismuthFluidProperties::T_from_p_h(), LeadFluidProperties::T_from_p_h(), TemperaturePressureFunctionFluidProperties::T_from_p_h(), T_from_p_h(), SimpleFluidProperties::T_from_p_h(), Water97FluidProperties::T_from_p_h(), NaKFluidProperties::T_from_p_rho(), LeadLithiumFluidProperties::T_from_p_rho(), LeadBismuthFluidProperties::T_from_p_rho(), LeadFluidProperties::T_from_p_rho(), TemperaturePressureFunctionFluidProperties::T_from_p_rho(), FlibeFluidProperties::T_from_p_rho(), TabulatedFluidProperties::T_from_p_rho(), FlinakFluidProperties::T_from_p_rho(), SimpleFluidProperties::T_from_p_rho(), TabulatedFluidProperties::T_from_p_s(), TemperaturePressureFunctionFluidProperties::T_from_v_e(), FlibeFluidProperties::T_from_v_e(), FlinakFluidProperties::T_from_v_e(), SinglePhaseFluidProperties::v_e_from_p_T(), LeadBismuthFluidProperties::v_from_p_T(), LeadLithiumFluidProperties::v_from_p_T(), LeadFluidProperties::v_from_p_T(), Water97FluidProperties::vaporPressure(), SinglePhaseFluidProperties::vaporPressure(), Water97FluidProperties::vaporTemperature(), SinglePhaseFluidProperties::vaporTemperature(), and TabulatedFluidProperties::writeTabulatedData().

◆ p [2/10]

e e e e s SinglePhaseFluidProperties::p
inherited

Definition at line 192 of file SinglePhaseFluidProperties.h.

◆ p [3/10]

e e e e s T T SinglePhaseFluidProperties::p
inherited

Definition at line 196 of file SinglePhaseFluidProperties.h.

◆ p [4/10]

e e e e s T T T SinglePhaseFluidProperties::p
inherited

Definition at line 198 of file SinglePhaseFluidProperties.h.

◆ p [5/10]

e e e e s T T T T SinglePhaseFluidProperties::p
inherited

Definition at line 200 of file SinglePhaseFluidProperties.h.

◆ p [6/10]

e e e e s T T T T T SinglePhaseFluidProperties::p
inherited

Definition at line 202 of file SinglePhaseFluidProperties.h.

◆ p [7/10]

e e e e s T T T T T rho v v SinglePhaseFluidProperties::p
inherited

Definition at line 208 of file SinglePhaseFluidProperties.h.

◆ p [8/10]

e e e e s T T T T T rho v v T e p SinglePhaseFluidProperties::p
inherited

Definition at line 214 of file SinglePhaseFluidProperties.h.

◆ p [9/10]

e e e e s T T T T T rho v v T e p T SinglePhaseFluidProperties::p
inherited

Definition at line 216 of file SinglePhaseFluidProperties.h.

◆ p [10/10]

e e e e s T T T T T rho v v T e p T T SinglePhaseFluidProperties::p
inherited

Definition at line 218 of file SinglePhaseFluidProperties.h.

◆ rho

e e e e s T SinglePhaseFluidProperties::rho
inherited

Definition at line 194 of file SinglePhaseFluidProperties.h.

Referenced by HeliumFluidProperties::beta_from_p_T(), TemperaturePressureFunctionFluidProperties::beta_from_p_T(), FlinakFluidProperties::beta_from_p_T(), StiffenedGasFluidProperties::c2_from_p_rho(), HeliumFluidProperties::c_from_v_e(), TemperaturePressureFunctionFluidProperties::cp_from_p_T(), LeadFluidProperties::cv_from_p_T(), LeadLithiumFluidProperties::cv_from_p_T(), LeadBismuthFluidProperties::cv_from_p_T(), TemperaturePressureFunctionFluidProperties::cv_from_p_T(), TestSinglePhaseFluidProperties::e_from_p_rho(), LinearTestFluidProperties::e_from_p_rho(), LinearFluidProperties::e_from_p_rho(), TabulatedFluidProperties::e_from_p_rho(), LeadBismuthFluidProperties::e_from_p_rho(), LeadLithiumFluidProperties::e_from_p_rho(), IdealGasFluidProperties::e_from_p_rho(), LeadFluidProperties::e_from_p_rho(), Water97FluidProperties::e_from_p_rho(), SimpleFluidProperties::e_from_p_rho(), TemperaturePressureFunctionFluidProperties::e_from_p_rho(), FlibeFluidProperties::e_from_p_rho(), FlinakFluidProperties::e_from_p_rho(), HeliumFluidProperties::e_from_p_rho(), Water97FluidProperties::e_from_p_rho_template(), NaKFluidProperties::e_from_p_T(), LinearFluidProperties::e_from_p_T(), NaClFluidProperties::e_from_p_T(), SalineMoltenSaltFluidProperties::e_from_p_T(), LinearFluidProperties::h_from_p_T(), TemperaturePressureFunctionFluidProperties::h_from_p_T(), Water97FluidProperties::k_from_p_T_template(), CO2FluidProperties::mu_from_p_T(), NitrogenFluidProperties::mu_from_p_T(), NaKFluidProperties::mu_from_p_T(), HydrogenFluidProperties::mu_from_p_T(), Water97FluidProperties::mu_from_p_T(), Water97FluidProperties::mu_from_p_T_template(), Water97FluidProperties::mu_from_v_e(), Water97FluidProperties::p_from_v_e_template(), Water97FluidProperties::p_T_from_v_e(), SinglePhaseFluidProperties::rho_e_from_p_T(), StiffenedGasFluidProperties::rho_from_p_s(), TabulatedFluidProperties::rho_from_p_s(), IdealGasFluidProperties::rho_from_p_s(), TestSinglePhaseFluidProperties::rho_from_p_T(), LinearTestFluidProperties::rho_from_p_T(), SodiumSaturationFluidProperties::rho_from_p_T(), PBSodiumFluidProperties::rho_from_p_T(), HelmholtzFluidProperties::rho_from_p_T(), TabulatedFluidProperties::rho_from_p_T(), NaKFluidProperties::rho_from_p_T(), LinearFluidProperties::rho_from_p_T(), CO2FluidProperties::rho_from_p_T(), NaClFluidProperties::rho_from_p_T(), LeadBismuthFluidProperties::rho_from_p_T(), LeadLithiumFluidProperties::rho_from_p_T(), rho_from_p_T(), SalineMoltenSaltFluidProperties::rho_from_p_T(), LeadFluidProperties::rho_from_p_T(), IdealGasFluidProperties::rho_from_p_T(), Water97FluidProperties::rho_from_p_T(), SimpleFluidProperties::rho_from_p_T(), TemperaturePressureFunctionFluidProperties::rho_from_p_T(), FlibeFluidProperties::rho_from_p_T(), FlinakFluidProperties::rho_from_p_T(), HeliumFluidProperties::rho_from_p_T(), Water97FluidProperties::rho_from_p_T_template(), NitrogenFluidProperties::rho_mu_from_p_T(), HydrogenFluidProperties::rho_mu_from_p_T(), CO2FluidProperties::rho_mu_from_p_T(), Water97FluidProperties::rho_mu_from_p_T(), SinglePhaseFluidProperties::rho_mu_from_p_T(), Water97FluidProperties::rho_T_from_v_e(), Water97FluidProperties::T_drhodT_from_p_rho(), LeadLithiumFluidProperties::T_from_p_rho(), LeadBismuthFluidProperties::T_from_p_rho(), LeadFluidProperties::T_from_p_rho(), TemperaturePressureFunctionFluidProperties::T_from_p_rho(), FlibeFluidProperties::T_from_p_rho(), TabulatedFluidProperties::T_from_p_rho(), FlinakFluidProperties::T_from_p_rho(), SimpleFluidProperties::T_from_p_rho(), SinglePhaseFluidProperties::v_e_from_p_T(), TabulatedFluidProperties::v_from_p_T(), and TemperaturePressureFunctionFluidProperties::v_from_p_T().

◆ T [1/2]

e e e e s T T T T T rho SinglePhaseFluidProperties::T
inherited

Definition at line 204 of file SinglePhaseFluidProperties.h.

Referenced by LinearFluidProperties::beta_from_p_T(), IdealGasFluidProperties::beta_from_p_T(), LeadLithiumFluidProperties::bulk_modulus_from_p_T(), LeadBismuthFluidProperties::bulk_modulus_from_p_T(), LeadFluidProperties::bulk_modulus_from_p_T(), LeadLithiumFluidProperties::c_from_p_T(), c_from_p_T(), Water97FluidProperties::c_from_p_T(), IdealGasFluidProperties::c_from_p_T(), Water97FluidProperties::c_from_p_T_template(), IdealGasFluidProperties::c_from_v_e(), LeadBismuthFluidProperties::c_from_v_e(), LeadLithiumFluidProperties::c_from_v_e(), LeadFluidProperties::c_from_v_e(), c_from_v_e(), HeliumFluidProperties::c_from_v_e(), Water97FluidProperties::c_from_v_e(), TabulatedFluidProperties::c_from_v_e(), TabulatedFluidProperties::checkInputVariables(), TabulatedFluidProperties::checkInputVariablesVE(), LeadBismuthFluidProperties::cp_from_p_T(), LeadLithiumFluidProperties::cp_from_p_T(), LeadFluidProperties::cp_from_p_T(), cp_from_p_T(), IdealGasFluidProperties::cp_from_p_T(), TemperaturePressureFunctionFluidProperties::cp_from_p_T(), Water97FluidProperties::cp_from_p_T_template(), cp_from_T(), cp_from_v_e(), LeadLithiumFluidProperties::cp_from_v_e(), LeadBismuthFluidProperties::cp_from_v_e(), LeadFluidProperties::cp_from_v_e(), TemperaturePressureFunctionFluidProperties::cp_from_v_e(), TabulatedFluidProperties::cp_from_v_e(), Water97FluidProperties::cp_from_v_e(), LeadFluidProperties::cv_from_p_T(), LeadLithiumFluidProperties::cv_from_p_T(), LeadBismuthFluidProperties::cv_from_p_T(), cv_from_p_T(), IdealGasFluidProperties::cv_from_p_T(), Water97FluidProperties::cv_from_p_T_template(), cv_from_T(), cv_from_T_v(), cv_from_v_e(), LeadLithiumFluidProperties::cv_from_v_e(), LeadBismuthFluidProperties::cv_from_v_e(), LeadFluidProperties::cv_from_v_e(), TemperaturePressureFunctionFluidProperties::cv_from_v_e(), TabulatedFluidProperties::cv_from_v_e(), Water97FluidProperties::cv_from_v_e(), Water97FluidProperties::d2gamma1_dpi2(), Water97FluidProperties::d2gamma1_dpitau(), Water97FluidProperties::d2gamma1_dtau2(), Water97FluidProperties::d2gamma2_dpi2(), Water97FluidProperties::d2gamma2_dpitau(), Water97FluidProperties::d2gamma2_dtau2(), Water97FluidProperties::d2gamma5_dpi2(), Water97FluidProperties::d2gamma5_dpitau(), Water97FluidProperties::d2gamma5_dtau2(), Water97FluidProperties::d2phi3_ddelta2(), Water97FluidProperties::d2phi3_ddeltatau(), Water97FluidProperties::d2phi3_dtau2(), Water97FluidProperties::densityRegion3(), Water97FluidProperties::dgamma1_dpi(), Water97FluidProperties::dgamma1_dtau(), Water97FluidProperties::dgamma2_dpi(), Water97FluidProperties::dgamma2_dtau(), Water97FluidProperties::dgamma5_dpi(), Water97FluidProperties::dgamma5_dtau(), Water97FluidProperties::dphi3_ddelta(), Water97FluidProperties::dphi3_dtau(), TabulatedFluidProperties::e_from_p_rho(), LeadLithiumFluidProperties::e_from_p_rho(), LeadBismuthFluidProperties::e_from_p_rho(), LeadFluidProperties::e_from_p_rho(), SimpleFluidProperties::e_from_p_rho(), LinearFluidProperties::e_from_p_T(), StiffenedGasFluidProperties::e_from_p_T(), LeadLithiumFluidProperties::e_from_p_T(), LeadBismuthFluidProperties::e_from_p_T(), e_from_p_T(), LeadFluidProperties::e_from_p_T(), IdealGasFluidProperties::e_from_p_T(), Water97FluidProperties::e_from_p_T_template(), e_from_T(), StiffenedGasFluidProperties::e_from_T_v(), e_from_T_v(), IdealGasFluidProperties::e_from_T_v(), HeliumFluidProperties::e_from_T_v(), e_from_v_h(), Water97FluidProperties::e_from_v_h(), TabulatedFluidProperties::e_from_v_h(), SimpleFluidProperties::e_from_v_h(), StiffenedGasFluidProperties::g_from_v_e(), g_from_v_e(), IdealGasFluidProperties::g_from_v_e(), TabulatedFluidProperties::g_from_v_e(), Water97FluidProperties::gamma1(), Water97FluidProperties::gamma2(), Water97FluidProperties::gamma5(), gamma_from_p_T(), LinearFluidProperties::h_from_p_T(), StiffenedGasFluidProperties::h_from_p_T(), LeadLithiumFluidProperties::h_from_p_T(), LeadBismuthFluidProperties::h_from_p_T(), LeadFluidProperties::h_from_p_T(), h_from_p_T(), IdealGasFluidProperties::h_from_p_T(), Water97FluidProperties::h_from_p_T_template(), h_from_T(), StiffenedGasFluidProperties::h_from_T_v(), h_from_T_v(), IdealGasFluidProperties::h_from_T_v(), LeadLithiumFluidProperties::h_from_v_e(), LeadBismuthFluidProperties::h_from_v_e(), LeadFluidProperties::h_from_v_e(), Water97FluidProperties::henryConstant(), LeadBismuthFluidProperties::k_from_p_T(), LeadLithiumFluidProperties::k_from_p_T(), LeadFluidProperties::k_from_p_T(), k_from_p_T(), IdealGasFluidProperties::k_from_p_T(), Water97FluidProperties::k_from_p_T_template(), Water97FluidProperties::k_from_rho_T_template(), k_from_v_e(), LeadLithiumFluidProperties::k_from_v_e(), LeadBismuthFluidProperties::k_from_v_e(), LeadFluidProperties::k_from_v_e(), TemperaturePressureFunctionFluidProperties::k_from_v_e(), TabulatedFluidProperties::k_from_v_e(), HeliumFluidProperties::k_from_v_e(), SinglePhaseFluidProperties::makeZeroAndOne(), LeadBismuthFluidProperties::mu_from_p_T(), mu_from_p_T(), LeadLithiumFluidProperties::mu_from_p_T(), LeadFluidProperties::mu_from_p_T(), IdealGasFluidProperties::mu_from_p_T(), Water97FluidProperties::mu_from_p_T_template(), Water97FluidProperties::mu_from_rho_T_template(), mu_from_v_e(), LeadLithiumFluidProperties::mu_from_v_e(), LeadBismuthFluidProperties::mu_from_v_e(), LeadFluidProperties::mu_from_v_e(), TemperaturePressureFunctionFluidProperties::mu_from_v_e(), TabulatedFluidProperties::mu_from_v_e(), Water97FluidProperties::mu_from_v_e(), p_from_h_s(), StiffenedGasFluidProperties::p_from_T_v(), p_from_T_v(), IdealGasFluidProperties::p_from_T_v(), HeliumFluidProperties::p_from_T_v(), p_from_v_e(), HeliumFluidProperties::p_from_v_e(), FlibeFluidProperties::p_from_v_e(), FlinakFluidProperties::p_from_v_e(), TemperaturePressureFunctionFluidProperties::p_from_v_e(), Water97FluidProperties::p_from_v_e_template(), SimpleFluidProperties::p_from_v_h(), SinglePhaseFluidProperties::p_T_from_h_s(), SinglePhaseFluidProperties::p_T_from_v_e(), SinglePhaseFluidProperties::p_T_from_v_h(), Water97FluidProperties::p_T_from_v_h(), Water97FluidProperties::phi3(), SinglePhaseFluidProperties::rho_e_from_p_T(), StiffenedGasFluidProperties::rho_from_p_s(), TabulatedFluidProperties::rho_from_p_s(), rho_from_p_s(), IdealGasFluidProperties::rho_from_p_s(), TestSinglePhaseFluidProperties::rho_from_p_T(), LinearTestFluidProperties::rho_from_p_T(), TabulatedFluidProperties::rho_from_p_T(), LinearFluidProperties::rho_from_p_T(), rho_from_p_T(), LeadLithiumFluidProperties::rho_from_p_T(), LeadBismuthFluidProperties::rho_from_p_T(), LeadFluidProperties::rho_from_p_T(), IdealGasFluidProperties::rho_from_p_T(), Water97FluidProperties::rho_from_p_T_template(), SinglePhaseFluidProperties::rho_mu_from_p_T(), s_from_h_p(), TabulatedFluidProperties::s_from_h_p(), Water97FluidProperties::s_from_h_p(), s_from_p_T(), IdealGasFluidProperties::s_from_p_T(), TabulatedFluidProperties::s_from_p_T(), StiffenedGasFluidProperties::s_from_T_v(), s_from_T_v(), IdealGasFluidProperties::s_from_T_v(), s_from_v_e(), IdealGasFluidProperties::s_from_v_e(), TabulatedFluidProperties::s_from_v_e(), Water97FluidProperties::subregionVolume(), Water97FluidProperties::T_drhodT_from_p_rho(), TabulatedFluidProperties::T_from_h_s(), LeadLithiumFluidProperties::T_from_p_h(), LeadBismuthFluidProperties::T_from_p_h(), LeadFluidProperties::T_from_p_h(), HelmholtzFluidProperties::T_from_p_h(), TemperaturePressureFunctionFluidProperties::T_from_p_h(), T_from_p_h(), IdealGasFluidProperties::T_from_p_h(), TabulatedFluidProperties::T_from_p_h(), Water97FluidProperties::T_from_p_h(), NaKFluidProperties::T_from_p_rho(), LeadLithiumFluidProperties::T_from_p_rho(), LeadBismuthFluidProperties::T_from_p_rho(), LeadFluidProperties::T_from_p_rho(), TemperaturePressureFunctionFluidProperties::T_from_p_rho(), TabulatedFluidProperties::T_from_p_rho(), SimpleFluidProperties::T_from_p_rho(), TabulatedFluidProperties::T_from_p_s(), LinearFluidProperties::T_from_v_e(), LeadLithiumFluidProperties::T_from_v_e(), LeadBismuthFluidProperties::T_from_v_e(), LinearTestFluidProperties::T_from_v_e(), LeadFluidProperties::T_from_v_e(), T_from_v_e(), TemperaturePressureFunctionFluidProperties::T_from_v_e(), IdealGasFluidProperties::T_from_v_e(), FlibeFluidProperties::T_from_v_e(), FlinakFluidProperties::T_from_v_e(), HeliumFluidProperties::T_from_v_e(), SimpleFluidProperties::T_from_v_e(), TabulatedFluidProperties::T_from_v_e(), SimpleFluidProperties::T_from_v_h(), Water97FluidProperties::tempXY(), SinglePhaseFluidProperties::v_e_from_p_T(), LeadLithiumFluidProperties::v_from_p_T(), LeadBismuthFluidProperties::v_from_p_T(), LeadFluidProperties::v_from_p_T(), SinglePhaseFluidProperties::vaporPressure(), Water97FluidProperties::vaporPressureTemplate(), Water97FluidProperties::vaporTemperature(), SinglePhaseFluidProperties::vaporTemperature(), and Z_from_T().

◆ T [2/2]

e e e e s T T T T T rho v SinglePhaseFluidProperties::T
inherited

Definition at line 206 of file SinglePhaseFluidProperties.h.

◆ v [1/5]

SinglePhaseFluidProperties::v
inherited

Definition at line 182 of file SinglePhaseFluidProperties.h.

Referenced by StiffenedGasFluidProperties::c_from_v_e(), LinearFluidProperties::c_from_v_e(), TestSinglePhaseFluidProperties::c_from_v_e(), IdealGasFluidProperties::c_from_v_e(), LeadBismuthFluidProperties::c_from_v_e(), LeadLithiumFluidProperties::c_from_v_e(), LeadFluidProperties::c_from_v_e(), c_from_v_e(), HeliumFluidProperties::c_from_v_e(), Water97FluidProperties::c_from_v_e(), SimpleFluidProperties::c_from_v_e(), TabulatedFluidProperties::c_from_v_e(), TabulatedFluidProperties::checkInputVariablesVE(), LinearFluidProperties::cp_from_v_e(), StiffenedGasFluidProperties::cp_from_v_e(), cp_from_v_e(), TestSinglePhaseFluidProperties::cp_from_v_e(), LeadBismuthFluidProperties::cp_from_v_e(), LeadLithiumFluidProperties::cp_from_v_e(), LeadFluidProperties::cp_from_v_e(), IdealGasFluidProperties::cp_from_v_e(), SimpleFluidProperties::cp_from_v_e(), TemperaturePressureFunctionFluidProperties::cp_from_v_e(), FlibeFluidProperties::cp_from_v_e(), FlinakFluidProperties::cp_from_v_e(), HeliumFluidProperties::cp_from_v_e(), TabulatedFluidProperties::cp_from_v_e(), Water97FluidProperties::cp_from_v_e(), FlibeFluidProperties::cv_from_p_T(), FlinakFluidProperties::cv_from_p_T(), LinearFluidProperties::cv_from_v_e(), StiffenedGasFluidProperties::cv_from_v_e(), TestSinglePhaseFluidProperties::cv_from_v_e(), cv_from_v_e(), LeadBismuthFluidProperties::cv_from_v_e(), LeadLithiumFluidProperties::cv_from_v_e(), LeadFluidProperties::cv_from_v_e(), IdealGasFluidProperties::cv_from_v_e(), SimpleFluidProperties::cv_from_v_e(), TemperaturePressureFunctionFluidProperties::cv_from_v_e(), FlibeFluidProperties::cv_from_v_e(), FlinakFluidProperties::cv_from_v_e(), TabulatedFluidProperties::cv_from_v_e(), Water97FluidProperties::cv_from_v_e(), HeliumFluidProperties::cv_from_v_e(), HeliumFluidProperties::e_from_p_rho(), SodiumSaturationFluidProperties::e_from_p_T(), LeadBismuthFluidProperties::e_from_p_T(), LeadLithiumFluidProperties::e_from_p_T(), LeadFluidProperties::e_from_p_T(), FlibeFluidProperties::e_from_p_T(), FlinakFluidProperties::e_from_p_T(), StiffenedGasFluidProperties::e_from_T_v(), e_from_T_v(), HeliumFluidProperties::e_from_T_v(), LinearFluidProperties::e_from_v_h(), e_from_v_h(), StiffenedGasFluidProperties::e_from_v_h(), IdealGasFluidProperties::e_from_v_h(), Water97FluidProperties::e_from_v_h(), TabulatedFluidProperties::e_from_v_h(), SimpleFluidProperties::e_from_v_h(), StiffenedGasFluidProperties::g_from_v_e(), g_from_v_e(), IdealGasFluidProperties::g_from_v_e(), TabulatedFluidProperties::g_from_v_e(), gamma_from_v_e(), TabulatedFluidProperties::generateVETabulatedData(), LeadBismuthFluidProperties::h_from_v_e(), LeadLithiumFluidProperties::h_from_v_e(), LeadFluidProperties::h_from_v_e(), StiffenedGasFluidProperties::k_from_v_e(), k_from_v_e(), TestSinglePhaseFluidProperties::k_from_v_e(), LeadBismuthFluidProperties::k_from_v_e(), LeadLithiumFluidProperties::k_from_v_e(), LeadFluidProperties::k_from_v_e(), TemperaturePressureFunctionFluidProperties::k_from_v_e(), TabulatedFluidProperties::k_from_v_e(), FlibeFluidProperties::k_from_v_e(), FlinakFluidProperties::k_from_v_e(), HeliumFluidProperties::k_from_v_e(), Water97FluidProperties::k_from_v_e(), Water97FluidProperties::k_from_v_e_template(), LinearTestFluidProperties::mu_from_v_e(), TestSinglePhaseFluidProperties::mu_from_v_e(), mu_from_v_e(), LeadBismuthFluidProperties::mu_from_v_e(), LeadLithiumFluidProperties::mu_from_v_e(), LeadFluidProperties::mu_from_v_e(), TemperaturePressureFunctionFluidProperties::mu_from_v_e(), FlibeFluidProperties::mu_from_v_e(), TabulatedFluidProperties::mu_from_v_e(), FlinakFluidProperties::mu_from_v_e(), Water97FluidProperties::mu_from_v_e(), HeliumFluidProperties::mu_from_v_e(), p_from_h_s(), StiffenedGasFluidProperties::p_from_T_v(), p_from_T_v(), IdealGasFluidProperties::p_from_T_v(), HeliumFluidProperties::p_from_T_v(), TestConservedVarFluidProperties::p_from_v_e(), LinearFluidProperties::p_from_v_e(), LeadBismuthFluidProperties::p_from_v_e(), LeadFluidProperties::p_from_v_e(), LeadLithiumFluidProperties::p_from_v_e(), p_from_v_e(), LinearTestFluidProperties::p_from_v_e(), IdealGasFluidProperties::p_from_v_e(), HeliumFluidProperties::p_from_v_e(), FlinakFluidProperties::p_from_v_e(), FlibeFluidProperties::p_from_v_e(), SodiumSaturationFluidProperties::p_from_v_e(), TemperaturePressureFunctionFluidProperties::p_from_v_e(), Water97FluidProperties::p_from_v_e(), SimpleFluidProperties::p_from_v_e(), TabulatedFluidProperties::p_from_v_e(), Water97FluidProperties::p_from_v_e_template(), SimpleFluidProperties::p_from_v_h(), SinglePhaseFluidProperties::p_T_from_v_e(), Water97FluidProperties::p_T_from_v_e(), SinglePhaseFluidProperties::p_T_from_v_h(), Water97FluidProperties::p_T_from_v_h(), Water97FluidProperties::rho_T_from_v_e(), s_from_h_p(), s_from_p_T(), StiffenedGasFluidProperties::s_from_T_v(), s_from_T_v(), IdealGasFluidProperties::s_from_T_v(), TestSinglePhaseFluidProperties::s_from_v_e(), s_from_v_e(), IdealGasFluidProperties::s_from_v_e(), TabulatedFluidProperties::s_from_v_e(), LinearFluidProperties::T_from_v_e(), LinearTestFluidProperties::T_from_v_e(), LeadBismuthFluidProperties::T_from_v_e(), LeadLithiumFluidProperties::T_from_v_e(), LeadFluidProperties::T_from_v_e(), T_from_v_e(), TemperaturePressureFunctionFluidProperties::T_from_v_e(), SodiumSaturationFluidProperties::T_from_v_e(), IdealGasFluidProperties::T_from_v_e(), FlibeFluidProperties::T_from_v_e(), FlinakFluidProperties::T_from_v_e(), HeliumFluidProperties::T_from_v_e(), SimpleFluidProperties::T_from_v_e(), Water97FluidProperties::T_from_v_e(), TabulatedFluidProperties::T_from_v_e(), SimpleFluidProperties::T_from_v_h(), SinglePhaseFluidProperties::v_e_from_p_T(), StiffenedGasFluidProperties::v_e_spndl_from_T(), v_e_spndl_from_T(), IdealGasFluidProperties::v_e_spndl_from_T(), SodiumSaturationFluidProperties::v_from_p_T(), TabulatedFluidProperties::v_from_p_T(), Water97FluidProperties::v_from_p_T(), LeadLithiumFluidProperties::v_from_p_T(), LeadBismuthFluidProperties::v_from_p_T(), LeadFluidProperties::v_from_p_T(), TemperaturePressureFunctionFluidProperties::v_from_p_T(), FlibeFluidProperties::v_from_p_T(), FlinakFluidProperties::v_from_p_T(), Water97FluidProperties::v_from_p_T_template(), and TabulatedFluidProperties::writeTabulatedData().

◆ v [2/5]

e SinglePhaseFluidProperties::v
inherited

Definition at line 184 of file SinglePhaseFluidProperties.h.

◆ v [3/5]

e e SinglePhaseFluidProperties::v
inherited

Definition at line 186 of file SinglePhaseFluidProperties.h.

◆ v [4/5]

e e e SinglePhaseFluidProperties::v
inherited

Definition at line 188 of file SinglePhaseFluidProperties.h.

◆ v [5/5]

e e e e s T T T T T rho v v T SinglePhaseFluidProperties::v
inherited

Definition at line 210 of file SinglePhaseFluidProperties.h.


The documentation for this class was generated from the following files: