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
IdealGasMixtureFluidProperties Class Reference

Class for fluid properties of an ideal gas mixture. More...

#include <IdealGasMixtureFluidProperties.h>

Inheritance diagram for IdealGasMixtureFluidProperties:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 IdealGasMixtureFluidProperties (const InputParameters &parameters)
 
virtual unsigned int numberOfComponents () const override
 Returns the number of components in the mixture. More...
 
virtual const SinglePhaseFluidPropertiesgetPrimaryFluidProperties () const override
 Gets the primary component single-phase fluid properties. More...
 
virtual const SinglePhaseFluidPropertiesgetSecondaryFluidProperties (unsigned int i=0) const override
 Gets a secondary component single-phase fluid properties. More...
 
template<typename CppType >
std::vector< CppType > secondaryToAllMassFractions_templ (const std::vector< CppType > &x_secondary) const
 Computes all mass fractions. More...
 
std::vector< ADRealsecondaryToAllMassFractions (const std::vector< ADReal > &x_secondary) const
 
std::vector< RealsecondaryToAllMassFractions (const std::vector< Real > &x_secondary) const
 
template<typename CppType >
CppType mixtureSpecificHeatRatio_templ (const std::vector< CppType > &x) const
 Computes the mixture specific heat ratio. More...
 
ADReal mixtureSpecificHeatRatio (const std::vector< ADReal > &x) const
 
Real mixtureSpecificHeatRatio (const std::vector< Real > &x) const
 
template<typename CppType >
CppType mixtureMolarMass_templ (const std::vector< CppType > &x) const
 Computes the mixture molar mass. More...
 
ADReal mixtureMolarMass (const std::vector< ADReal > &x) const
 
Real mixtureMolarMass (const std::vector< Real > &x) const
 
template<typename CppType >
std::vector< CppType > molarFractionsFromMassFractions_templ (const std::vector< CppType > &x) const
 Computes molar fractions. More...
 
std::vector< ADRealmolarFractionsFromMassFractions (const std::vector< ADReal > &x) const
 
std::vector< RealmolarFractionsFromMassFractions (const std::vector< Real > &x) const
 
 override_property (p, v, e)
 
 override_property (T, v, e)
 
 override_property (v, p, T)
 
 override_property (rho, p, T)
 
 override_property (e, p, T)
 
 override_property (s, p, T)
 
 override_property (c, p, T)
 
 override_property (cp, p, T)
 
 override_property (cv, p, T)
 
 override_property (mu, p, T)
 
 override_property (k, p, T)
 
 override_property (e, p, rho)
 
Real primaryMassFraction (const std::vector< Real > &x) const
 Computes the mass fraction of the primary vapor given mass fractions of the secondary vapors. More...
 
Real mixtureMolarMass (const std::vector< Real > &molar_fractions, const std::vector< Real > &molar_masses) const
 Computes the mixture molar mass for given molar fractions and molar masses. More...
 
std::vector< RealmassFractionsFromMolarFractions (const std::vector< Real > &molar_fractions, const std::vector< Real > &molar_masses) const
 Computes the mass fractions for given molar fractions and molar masses. More...
 
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 T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
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 initialSetup ()
 
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 T & getUserObject (const std::string &param_name, bool is_dependency=true) const
 
const T & getUserObjectByName (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
 
T & getSampler (const std::string &name)
 
SamplergetSampler (const std::string &name)
 
T & getSamplerByName (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 T & getDistribution (const std::string &name) const
 
const DistributiongetDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (const std::string &name) const
 
const DistributiongetDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (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

 usingVaporMixtureFluidPropertiesMembers
 
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

template<typename... Args>
void imperfectJacobianMessage (Args... args) const
 
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
 
T & declareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< T > declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const T & getRestartableData (const std::string &data_name) const
 
T & declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
T & declareRecoverableData (const std::string &data_name, Args &&... args)
 
T & declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
T & declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
const T & getMeshProperty (const std::string &data_name, const std::string &prefix)
 
const T & getMeshProperty (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 T & getReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const T & getReporterValueByName (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...
 

Static Protected Member Functions

static std::string meshPropertyName (const std::string &data_name, const std::string &prefix)
 

Protected Attributes

const std::vector< UserObjectName > _component_fp_names
 Names of component fluid properties. More...
 
const unsigned int _n_components
 Number of components. More...
 
const unsigned int _n_secondary_components
 Number of secondary components. More...
 
std::vector< const IdealGasFluidProperties * > _component_fps
 Component fluid properties objects. 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...
 

Static Protected Attributes

static const std::string _interpolated_old
 
static const std::string _interpolated_older
 
 v
 
p
 
e T p
 
e T T p
 
e T T T p
 
e T T T T p
 
e T T T T T propfunc (e, p, rho)
 
 propfunc (p, v, e) propfunc(T
 
propfunc (c, v, e) propfunc(v
 
e T propfunc (rho, p, T) propfunc(e
 
e T T propfunc (s, p, T) propfunc(c
 
e T T T propfunc (cp, p, T) propfunc(cv
 
e T T T T propfunc (mu, p, T) propfunc(k
 

Detailed Description

Class for fluid properties of an ideal gas mixture.

Definition at line 33 of file IdealGasMixtureFluidProperties.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

◆ IdealGasMixtureFluidProperties()

IdealGasMixtureFluidProperties::IdealGasMixtureFluidProperties ( const InputParameters parameters)

Definition at line 104 of file IdealGasMixtureFluidProperties.C.

106  NaNInterface(this),
107  _component_fp_names(getParam<std::vector<UserObjectName>>("component_fluid_properties")),
110 {
111  if (_n_components == 0)
112  mooseError("There must be at least one entry in 'component_fluid_properties'.");
113 
115  for (const auto i : make_range(_n_components))
116  {
117  const auto & single_phase_fp =
118  getUserObjectByName<SinglePhaseFluidProperties>(_component_fp_names[i]);
119  _component_fps[i] = dynamic_cast<const IdealGasFluidProperties *>(&single_phase_fp);
120  if (!_component_fps[i])
121  mooseError(
122  "Each entry in 'component_fluid_properties' must have type 'IdealGasFluidProperties'.");
123  }
124 }
NaNInterface(const MooseObject *moose_object)
Definition: NaNInterface.C:35
VaporMixtureFluidProperties(const InputParameters &parameters)
const unsigned int _n_secondary_components
Number of secondary components.
const T & getParam(const std::string &name) const
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.
const std::vector< UserObjectName > _component_fp_names
Names of component fluid properties.
IntRange< T > make_range(T beg, T end)
void mooseError(Args &&... args) const
const InputParameters & parameters() const
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature...
const unsigned int _n_components
Number of components.

Member Function Documentation

◆ 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 {}

◆ 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

◆ getPrimaryFluidProperties()

const SinglePhaseFluidProperties & IdealGasMixtureFluidProperties::getPrimaryFluidProperties ( ) const
overridevirtual

Gets the primary component single-phase fluid properties.

Implements VaporMixtureFluidProperties.

Definition at line 127 of file IdealGasMixtureFluidProperties.C.

128 {
129  return *_component_fps[0];
130 }
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.

◆ getSecondaryFluidProperties()

const SinglePhaseFluidProperties & IdealGasMixtureFluidProperties::getSecondaryFluidProperties ( unsigned int  i = 0) const
overridevirtual

Gets a secondary component single-phase fluid properties.

Parameters
[in]iIndex of the secondary fluid properties (0 is first secondary)

Implements VaporMixtureFluidProperties.

Definition at line 133 of file IdealGasMixtureFluidProperties.C.

134 {
135  mooseAssert(i < getNumberOfSecondaryVapors(), "Requested secondary index too high.");
136  return *_component_fps[i + 1];
137 }
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.

◆ imperfectJacobianMessage()

template<typename... Args>
void VaporMixtureFluidProperties::imperfectJacobianMessage ( Args...  args) const
inlineprotectedinherited

Definition at line 194 of file VaporMixtureFluidProperties.h.

195  {
197  mooseDoOnce(mooseWarning(std::forward<Args>(args)...));
198  else
199  mooseError(std::forward<Args>(args)...);
200  }
const bool _allow_imperfect_jacobians
Flag to set unimplemented Jacobian entries to zero.
void mooseWarning(Args &&... args) const
void mooseError(Args &&... args) const

◆ initialize()

virtual void FluidProperties::initialize ( )
inlinefinalvirtualinherited

Implements ThreadedGeneralUserObject.

Definition at line 34 of file FluidProperties.h.

34 {}

◆ massFractionsFromMolarFractions()

std::vector< Real > VaporMixtureFluidProperties::massFractionsFromMolarFractions ( const std::vector< Real > &  molar_fractions,
const std::vector< Real > &  molar_masses 
) const
inherited

Computes the mass fractions for given molar fractions and molar masses.

Parameters
[in]molar_fractionsMolar fractions for all vapors
[in]molar_massesMolar masses for all vapors

Definition at line 49 of file VaporMixtureFluidProperties.C.

Referenced by TwoPhaseNCGPartialPressureFluidProperties::x_sat_ncg_from_p_T().

51 {
52  mooseAssert(molar_fractions.size() == molar_masses.size(), "Must have same size");
53 
54  const auto molar_mass_mix = mixtureMolarMass(molar_fractions, molar_masses);
55 
56  std::vector<Real> mass_fractions(molar_fractions.size(), 0.0);
57  for (const auto i : index_range(molar_fractions))
58  mass_fractions[i] = molar_masses[i] / molar_mass_mix * molar_fractions[i];
59  return mass_fractions;
60 }
Real mixtureMolarMass(const std::vector< Real > &molar_fractions, const std::vector< Real > &molar_masses) const
Computes the mixture molar mass for given molar fractions and molar masses.
auto index_range(const T &sizable)

◆ mixtureMolarMass() [1/3]

ADReal IdealGasMixtureFluidProperties::mixtureMolarMass ( const std::vector< ADReal > &  x) const

Definition at line 187 of file IdealGasMixtureFluidProperties.C.

Referenced by molarFractionsFromMassFractions_templ().

188 {
189  return mixtureMolarMass_templ(x);
190 }
const std::vector< double > x
CppType mixtureMolarMass_templ(const std::vector< CppType > &x) const
Computes the mixture molar mass.

◆ mixtureMolarMass() [2/3]

Real IdealGasMixtureFluidProperties::mixtureMolarMass ( const std::vector< Real > &  x) const

Definition at line 193 of file IdealGasMixtureFluidProperties.C.

194 {
195  return mixtureMolarMass_templ(x);
196 }
const std::vector< double > x
CppType mixtureMolarMass_templ(const std::vector< CppType > &x) const
Computes the mixture molar mass.

◆ mixtureMolarMass() [3/3]

Real VaporMixtureFluidProperties::mixtureMolarMass ( const std::vector< Real > &  molar_fractions,
const std::vector< Real > &  molar_masses 
) const
inherited

Computes the mixture molar mass for given molar fractions and molar masses.

Parameters
[in]molar_fractionsMolar fractions for all vapors
[in]molar_massesMolar masses for all vapors

Definition at line 37 of file VaporMixtureFluidProperties.C.

Referenced by VaporMixtureFluidProperties::massFractionsFromMolarFractions().

39 {
40  mooseAssert(molar_fractions.size() == molar_masses.size(), "Must have same size");
41 
42  Real molar_mass_mix = 0;
43  for (const auto i : index_range(molar_fractions))
44  molar_mass_mix += molar_fractions[i] * molar_masses[i];
45  return molar_mass_mix;
46 }
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
auto index_range(const T &sizable)

◆ mixtureMolarMass_templ()

template<typename CppType >
CppType IdealGasMixtureFluidProperties::mixtureMolarMass_templ ( const std::vector< CppType > &  x) const

Computes the mixture molar mass.

Parameters
[in]xAll mass fractions

Definition at line 175 of file IdealGasMixtureFluidProperties.C.

Referenced by mixtureMolarMass().

176 {
177  mooseAssert(x.size() == _n_components, "Size mismatch");
178 
179  CppType sum = 0;
180  for (const auto i : make_range(_n_components))
181  sum += x[i] / _component_fps[i]->molarMass();
182 
183  return 1.0 / sum;
184 }
const std::vector< double > x
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.
IntRange< T > make_range(T beg, T end)
const unsigned int _n_components
Number of components.

◆ mixtureSpecificHeatRatio() [1/2]

ADReal IdealGasMixtureFluidProperties::mixtureSpecificHeatRatio ( const std::vector< ADReal > &  x) const

Definition at line 216 of file IdealGasMixtureFluidProperties.C.

217 {
219 }
const std::vector< double > x
CppType mixtureSpecificHeatRatio_templ(const std::vector< CppType > &x) const
Computes the mixture specific heat ratio.

◆ mixtureSpecificHeatRatio() [2/2]

Real IdealGasMixtureFluidProperties::mixtureSpecificHeatRatio ( const std::vector< Real > &  x) const

Definition at line 222 of file IdealGasMixtureFluidProperties.C.

223 {
225 }
const std::vector< double > x
CppType mixtureSpecificHeatRatio_templ(const std::vector< CppType > &x) const
Computes the mixture specific heat ratio.

◆ mixtureSpecificHeatRatio_templ()

template<typename CppType >
CppType IdealGasMixtureFluidProperties::mixtureSpecificHeatRatio_templ ( const std::vector< CppType > &  x) const

Computes the mixture specific heat ratio.

Parameters
[in]xAll mass fractions

Definition at line 200 of file IdealGasMixtureFluidProperties.C.

Referenced by mixtureSpecificHeatRatio().

201 {
202  mooseAssert(x.size() == _n_components, "Size mismatch");
203 
204  CppType cp_mix = 0, cv_mix = 0;
205  for (const auto i : make_range(_n_components))
206  {
207  // cp and cv are constant due to ideal gas assumption; any (p, T) is fine:
208  cp_mix += x[i] * _component_fps[i]->cp_from_p_T(0, 0);
209  cv_mix += x[i] * _component_fps[i]->cv_from_p_T(0, 0);
210  }
211 
212  return cp_mix / cv_mix;
213 }
const std::vector< double > x
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.
IntRange< T > make_range(T beg, T end)
const unsigned int _n_components
Number of components.

◆ molarFractionsFromMassFractions() [1/2]

std::vector< ADReal > IdealGasMixtureFluidProperties::molarFractionsFromMassFractions ( const std::vector< ADReal > &  x) const

Definition at line 243 of file IdealGasMixtureFluidProperties.C.

244 {
246 }
const std::vector< double > x
std::vector< CppType > molarFractionsFromMassFractions_templ(const std::vector< CppType > &x) const
Computes molar fractions.

◆ molarFractionsFromMassFractions() [2/2]

std::vector< Real > IdealGasMixtureFluidProperties::molarFractionsFromMassFractions ( const std::vector< Real > &  x) const

Definition at line 249 of file IdealGasMixtureFluidProperties.C.

250 {
252 }
const std::vector< double > x
std::vector< CppType > molarFractionsFromMassFractions_templ(const std::vector< CppType > &x) const
Computes molar fractions.

◆ molarFractionsFromMassFractions_templ()

template<typename CppType >
std::vector< CppType > IdealGasMixtureFluidProperties::molarFractionsFromMassFractions_templ ( const std::vector< CppType > &  x) const

Computes molar fractions.

Parameters
[in]xAll mass fractions

Definition at line 229 of file IdealGasMixtureFluidProperties.C.

Referenced by molarFractionsFromMassFractions().

231 {
232  mooseAssert(x.size() == _n_components, "Size mismatch");
233 
234  const auto M = mixtureMolarMass(x);
235  std::vector<CppType> psi(_n_components);
236  for (const auto i : make_range(_n_components))
237  psi[i] = x[i] * M / _component_fps[i]->molarMass();
238 
239  return psi;
240 }
const std::vector< double > x
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.
IntRange< T > make_range(T beg, T end)
ADReal mixtureMolarMass(const std::vector< ADReal > &x) const
const unsigned int _n_components
Number of components.

◆ numberOfComponents()

virtual unsigned int IdealGasMixtureFluidProperties::numberOfComponents ( ) const
inlineoverridevirtual

Returns the number of components in the mixture.

Implements VaporMixtureFluidProperties.

Definition at line 42 of file IdealGasMixtureFluidProperties.h.

42 { return _n_components; }
const unsigned int _n_components
Number of components.

◆ override_property() [1/12]

IdealGasMixtureFluidProperties::override_property ( p  ,
v  ,
 
)

◆ override_property() [2/12]

IdealGasMixtureFluidProperties::override_property ( ,
v  ,
 
)

◆ override_property() [3/12]

IdealGasMixtureFluidProperties::override_property ( v  ,
p  ,
 
)

◆ override_property() [4/12]

IdealGasMixtureFluidProperties::override_property ( rho  ,
p  ,
 
)

◆ override_property() [5/12]

IdealGasMixtureFluidProperties::override_property ( ,
p  ,
 
)

◆ override_property() [6/12]

IdealGasMixtureFluidProperties::override_property ( ,
p  ,
 
)

◆ override_property() [7/12]

IdealGasMixtureFluidProperties::override_property ( c  ,
p  ,
 
)

◆ override_property() [8/12]

IdealGasMixtureFluidProperties::override_property ( cp  ,
p  ,
 
)

◆ override_property() [9/12]

IdealGasMixtureFluidProperties::override_property ( cv  ,
p  ,
 
)

◆ override_property() [10/12]

IdealGasMixtureFluidProperties::override_property ( mu  ,
p  ,
 
)

◆ override_property() [11/12]

IdealGasMixtureFluidProperties::override_property ( ,
p  ,
 
)

◆ override_property() [12/12]

IdealGasMixtureFluidProperties::override_property ( ,
p  ,
rho   
)

◆ primaryMassFraction()

Real VaporMixtureFluidProperties::primaryMassFraction ( const std::vector< Real > &  x) const
inherited

Computes the mass fraction of the primary vapor given mass fractions of the secondary vapors.

This uses the relation

\[ \sum\limits_i^N x_i = 1 , \]

where the mass fractions \(x_i, i=2\ldots N\) correspond to the secondary vapors.

Definition at line 31 of file VaporMixtureFluidProperties.C.

Referenced by IdealRealGasMixtureFluidProperties::xs_prim_from_p_T().

32 {
33  return 1 - std::accumulate(x.begin(), x.end(), 0.0);
34 }
const std::vector< double > x

◆ propfunc() [1/6]

VaporMixtureFluidProperties::propfunc ( p  ,
v  ,
 
)
inherited

◆ propfunc() [2/6]

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

◆ propfunc() [3/6]

e T VaporMixtureFluidProperties::propfunc ( rho  ,
p  ,
 
)
inherited

◆ propfunc() [4/6]

e T T VaporMixtureFluidProperties::propfunc ( ,
p  ,
 
)
inherited

◆ propfunc() [5/6]

e T T T VaporMixtureFluidProperties::propfunc ( cp  ,
p  ,
 
)
inherited

◆ propfunc() [6/6]

e T T T T VaporMixtureFluidProperties::propfunc ( mu  ,
p  ,
 
)
inherited

◆ secondaryToAllMassFractions() [1/2]

std::vector< ADReal > IdealGasMixtureFluidProperties::secondaryToAllMassFractions ( const std::vector< ADReal > &  x_secondary) const

Definition at line 160 of file IdealGasMixtureFluidProperties.C.

162 {
163  return secondaryToAllMassFractions_templ(x_secondary);
164 }
std::vector< CppType > secondaryToAllMassFractions_templ(const std::vector< CppType > &x_secondary) const
Computes all mass fractions.

◆ secondaryToAllMassFractions() [2/2]

std::vector< Real > IdealGasMixtureFluidProperties::secondaryToAllMassFractions ( const std::vector< Real > &  x_secondary) const

Definition at line 167 of file IdealGasMixtureFluidProperties.C.

169 {
170  return secondaryToAllMassFractions_templ(x_secondary);
171 }
std::vector< CppType > secondaryToAllMassFractions_templ(const std::vector< CppType > &x_secondary) const
Computes all mass fractions.

◆ secondaryToAllMassFractions_templ()

template<typename CppType >
std::vector< CppType > IdealGasMixtureFluidProperties::secondaryToAllMassFractions_templ ( const std::vector< CppType > &  x_secondary) const

Computes all mass fractions.

Parameters
[in]x_secondarySecondary mass fractions

Definition at line 141 of file IdealGasMixtureFluidProperties.C.

Referenced by secondaryToAllMassFractions().

143 {
144  mooseAssert(x_secondary.size() == _n_secondary_components, "Size mismatch");
145 
146  CppType sum = 0;
147  for (const auto i : make_range(_n_secondary_components))
148  sum += x_secondary[i];
149 
150  const CppType x_primary = 1.0 - sum;
151 
152  std::vector<CppType> x;
153  x.push_back(x_primary);
154  x.insert(x.end(), x_secondary.begin(), x_secondary.end());
155 
156  return x;
157 }
const unsigned int _n_secondary_components
Number of secondary components.
const std::vector< double > x
IntRange< T > make_range(T beg, T end)

◆ subdomainSetup()

virtual void FluidProperties::subdomainSetup ( )
inlinefinalvirtualinherited

Reimplemented from ThreadedGeneralUserObject.

Definition at line 38 of file FluidProperties.h.

38 {}

◆ threadJoin()

virtual void FluidProperties::threadJoin ( const UserObject )
inlinefinalvirtualinherited

Reimplemented from ThreadedGeneralUserObject.

Definition at line 37 of file FluidProperties.h.

37 {}

◆ validParams()

static InputParameters IdealGasMixtureFluidProperties::validParams ( )
static

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().

◆ _component_fp_names

const std::vector<UserObjectName> IdealGasMixtureFluidProperties::_component_fp_names
protected

Names of component fluid properties.

Definition at line 106 of file IdealGasMixtureFluidProperties.h.

Referenced by IdealGasMixtureFluidProperties().

◆ _component_fps

std::vector<const IdealGasFluidProperties *> IdealGasMixtureFluidProperties::_component_fps
protected

◆ _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().

◆ _moose_object

const MooseObject* const NaNInterface::_moose_object
protectedinherited

Definition at line 38 of file NaNInterface.h.

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

◆ _n_components

const unsigned int IdealGasMixtureFluidProperties::_n_components
protected

◆ _n_secondary_components

const unsigned int IdealGasMixtureFluidProperties::_n_secondary_components
protected

Number of secondary components.

Definition at line 110 of file IdealGasMixtureFluidProperties.h.

Referenced by secondaryToAllMassFractions_templ().

◆ _R

const Real FluidProperties::_R = 8.3144598
staticinherited

◆ _T_c2k

const Real FluidProperties::_T_c2k
protectedinherited

◆ p [1/5]

e VaporMixtureFluidProperties::p
inherited

◆ p [2/5]

e T VaporMixtureFluidProperties::p
inherited

Definition at line 133 of file VaporMixtureFluidProperties.h.

◆ p [3/5]

e T T VaporMixtureFluidProperties::p
inherited

Definition at line 135 of file VaporMixtureFluidProperties.h.

◆ p [4/5]

e T T T VaporMixtureFluidProperties::p
inherited

Definition at line 137 of file VaporMixtureFluidProperties.h.

◆ p [5/5]

e T T T T VaporMixtureFluidProperties::p
inherited

Definition at line 139 of file VaporMixtureFluidProperties.h.

◆ propfunc

e T T T T T VaporMixtureFluidProperties::propfunc(e, p, rho)
inherited

Definition at line 140 of file VaporMixtureFluidProperties.h.

◆ usingVaporMixtureFluidPropertiesMembers

IdealGasMixtureFluidProperties::usingVaporMixtureFluidPropertiesMembers

Definition at line 40 of file IdealGasMixtureFluidProperties.h.

◆ v

VaporMixtureFluidProperties::v
inherited

Definition at line 129 of file VaporMixtureFluidProperties.h.


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