ThermoFactory.cpp Source File#
ThermoFactory.cpp
Go to the documentation of this file.
Header file for an binary solution model with tabulated standard state thermodynamic data (see Thermo...
Header for a thermodynamics model of a coverage-dependent surface phase derived from SurfPhase,...
Headers for the DebyeHuckel ThermoPhase object, which models dilute electrolyte solutions (see Thermo...
Declarations for the EdgePhase ThermoPhase object, which models the interface between two surfaces (s...
#define ENTROPY298_UNKNOWN
Number indicating we don't know the entropy of the element in its most stable state at 298....
Definition Elements.h:85
Headers for the HMWSoln ThermoPhase object, which models concentrated electrolyte solutions (see Ther...
ThermoPhase object for the ideal gas equation of state - workhorse for Cantera (see Thermodynamic Pro...
ThermoPhase object for the ideal molal equation of state (see Thermodynamic Properties and class Idea...
Header file for an ideal solid solution model with incompressible thermodynamics (see Thermodynamic P...
Definition file for a derived class of ThermoPhase that assumes an ideal solution approximation and h...
Header for a simple thermodynamics model of a bulk phase derived from ThermoPhase,...
Header for a simple thermodynamics model of a bulk solid phase derived from ThermoPhase,...
(see Thermodynamic Properties and class MargulesVPSSTP).
Header for a general species thermodynamic property manager for a phase (see MultiSpeciesThermo).
Header file for class PlasmaPhase.
Header for a ThermoPhase class for a pure fluid phase consisting of gas, liquid, mixed-gas-liquid and...
(see Thermodynamic Properties and class RedlichKisterVPSSTP).
Header for factory functions to build instances of classes that manage the standard-state thermodynam...
Declaration for class Cantera::Species.
Header file for the StoichSubstance class, which represents a fixed-composition incompressible substa...
Header for a simple thermodynamics model of a surface phase derived from ThermoPhase,...
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
Declares a ThermoPhase class consisting of pure water (see Thermodynamic Properties and class WaterSS...
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:427
bool hasKey(const string &key) const
Returns true if the map contains an item named key.
Definition AnyMap.cpp:1423
bool getBool(const string &key, bool default_) const
If key exists, return it as a bool, otherwise return default_.
Definition AnyMap.cpp:1515
const string & getString(const string &key, const string &default_) const
If key exists, return it as a string, otherwise return default_.
Definition AnyMap.cpp:1530
static AnyMap fromYamlFile(const string &name, const string &parent_name="")
Create an AnyMap from a YAML file.
Definition AnyMap.cpp:1771
const AnyValue & at(const string &key) const
Get the value of the item stored in key.
Definition AnyMap.cpp:1408
A wrapper for a variable whose type is determined at runtime.
Definition AnyMap.h:86
Overloads the virtual methods of class IdealSolidSolnPhase to implement tabulated standard state ther...
Definition BinarySolutionTabulatedThermo.h:162
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
A thermodynamic model for a coverage-dependent surface phase, applying surface species lateral intera...
Definition CoverageDependentSurfPhase.h:127
Class DebyeHuckel represents a dilute liquid electrolyte phase which obeys the Debye Huckel formulati...
Definition DebyeHuckel.h:415
A thermodynamic phase representing a one dimensional edge between two surfaces.
Definition EdgePhase.h:31
void reg(const string &name, function< ThermoPhase *(Args...)> f)
Register a new object construction function.
Definition FactoryBase.h:80
void addDeprecatedAlias(const string &original, const string &alias)
Add a deprecated alias for an existing registered type.
Definition FactoryBase.h:116
Class HMWSoln represents a dilute or concentrated liquid electrolyte phase which obeys the Pitzer for...
Definition HMWSoln.h:778
Class IdealGasPhase represents low-density gases that obey the ideal gas equation of state.
Definition IdealGasPhase.h:250
This phase is based upon the mixing-rule assumption that all molality-based activity coefficients are...
Definition IdealMolalSoln.h:68
Class IdealSolidSolnPhase represents a condensed phase ideal solution compound.
Definition IdealSolidSolnPhase.h:40
An ideal solution approximation of a phase.
Definition IdealSolnGasVPSS.h:28
Error thrown for problems processing information contained in an AnyMap or AnyValue.
Definition AnyMap.h:738
A simple thermodynamic model for a bulk phase, assuming a lattice of solid atoms.
Definition LatticePhase.h:184
A phase that is comprised of a fixed additive combination of other lattice phases.
Definition LatticeSolidPhase.h:105
MargulesVPSSTP is a derived class of GibbsExcessVPSSTP that employs the Margules approximation for th...
Definition MargulesVPSSTP.h:215
Implementation of a multi-species Peng-Robinson equation of state.
Definition PengRobinson.h:20
void ignoreUndefinedElements()
Set behavior when adding a species containing undefined elements to just skip the species.
Definition Phase.cpp:873
void addUndefinedElements()
Set behavior when adding a species containing undefined elements to add those elements to the phase.
Definition Phase.cpp:877
shared_ptr< Species > species(const string &name) const
Return the Species object for the named species.
Definition Phase.cpp:856
void throwUndefinedElements()
Set the behavior when adding a species containing undefined elements to throw an exception.
Definition Phase.cpp:881
This phase object consists of a single component that can be a gas, a liquid, a mixed gas-liquid flui...
Definition PureFluidPhase.h:31
RedlichKisterVPSSTP is a derived class of GibbsExcessVPSSTP that employs the Redlich-Kister approxima...
Definition RedlichKisterVPSSTP.h:233
Implementation of a multi-species Redlich-Kwong equation of state.
Definition RedlichKwongMFTP.h:20
Class StoichSubstance represents a stoichiometric (fixed composition) incompressible substance.
Definition StoichSubstance.h:89
A simple thermodynamic model for a surface phase, assuming an ideal solution model.
Definition SurfPhase.h:98
Factory class for thermodynamic property managers.
Definition ThermoFactory.h:31
void deleteFactory() override
delete the static instance of this factory
Definition ThermoFactory.cpp:112
static ThermoFactory * factory()
Static function that creates a static instance of the factory.
Definition ThermoFactory.cpp:103
static std::mutex thermo_mutex
Decl for locking mutex for thermo factory singleton.
Definition ThermoFactory.h:47
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
virtual void setParameters(const AnyMap &phaseNode, const AnyMap &rootNode=AnyMap())
Set equation of state parameters from an AnyMap phase description.
Definition ThermoPhase.cpp:1084
virtual void setState_TP(double t, double p)
Set the temperature (K) and pressure (Pa)
Definition ThermoPhase.cpp:121
virtual void setState(const AnyMap &state)
Set the state using an AnyMap containing any combination of properties supported by the thermodynamic...
Definition ThermoPhase.cpp:145
string type() const override
String indicating the thermodynamic model implemented.
Definition ThermoPhase.h:399
virtual void initThermo()
Initialize the ThermoPhase object after all species have been set up.
Definition ThermoPhase.cpp:1016
This is a filter class for ThermoPhase that implements some preparatory steps for efficiently handlin...
Definition VPStandardStateTP.h:44
double dot(InputIter x_begin, InputIter x_end, InputIter2 y_begin)
Function that calculates a templated inner product.
Definition utilities.h:82
shared_ptr< ThermoPhase > newThermo(const AnyMap &phaseNode, const AnyMap &rootNode)
Create a new ThermoPhase object and initialize it.
Definition ThermoFactory.cpp:125
void setupPhase(ThermoPhase &thermo, const AnyMap &phaseNode, const AnyMap &rootNode)
Initialize a ThermoPhase object.
Definition ThermoFactory.cpp:207
shared_ptr< ThermoPhase > newThermoModel(const string &model)
Create a new ThermoPhase instance.
Definition ThermoFactory.cpp:119
unique_ptr< Species > newSpecies(const AnyMap &node)
Create a new Species object from an AnyMap specification.
Definition Species.cpp:105
void warn_deprecated(const string &source, const AnyBase &node, const string &message)
A deprecation warning for syntax in an input file.
Definition AnyMap.cpp:1926
Contains const definitions for types of species reference-state thermodynamics managers (see Species ...
Contains declarations for string manipulation functions within Cantera.
Generated by 1.9.7