TransportFactory.cpp Source File#
TransportFactory.cpp
Go to the documentation of this file.
Headers for the DustyGasTransport object, which models transport properties in porous media using the...
Interface for class HighPressureGasTransport.
Headers for the MixTransport object, which models transport properties in ideal gas solutions using a...
Interface for class MultiTransport.
Header file defining class TransportFactory (see TransportFactory)
Headers for the UnityLewisTransport object, which models transport properties in ideal gas solutions ...
Header file defining class WaterTransport.
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
Base class for exceptions thrown by Cantera classes.
Definition ctexceptions.h:66
Class DustyGasTransport implements the Dusty Gas model for transport in porous media.
Definition DustyGasTransport.h:53
void initialize(ThermoPhase *phase, Transport *gastr)
Initialization routine called by TransportFactory.
Definition DustyGasTransport.cpp:17
Transport * create(const string &name, Args... args)
Create an object using the object construction function corresponding to "name" and the provided cons...
Definition FactoryBase.h:75
void reg(const string &name, function< Transport *(Args...)> f)
Register a new object construction function.
Definition FactoryBase.h:80
string canonicalize(const string &name)
Get the canonical name registered for a type.
Definition FactoryBase.h:94
void addDeprecatedAlias(const string &original, const string &alias)
Add a deprecated alias for an existing registered type.
Definition FactoryBase.h:116
Class MultiTransport implements transport properties for high pressure gas mixtures.
Definition HighPressureGasTransport.h:41
Class IonGasTransport implements Stockmayer-(n,6,4) model for transport of ions.
Definition IonGasTransport.h:35
Class MixTransport implements mixture-averaged transport properties for ideal gas mixtures.
Definition MixTransport.h:55
Class MultiTransport implements multicomponent transport properties for ideal gas mixtures.
Definition MultiTransport.h:26
void restoreState(const vector< double > &state)
Restore a state saved on a previous call to saveState.
Definition Phase.cpp:260
void saveState(vector< double > &state) const
Save the current internal state of the phase.
Definition Phase.cpp:236
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
const AnyMap & input() const
Access input data associated with the phase description.
Definition ThermoPhase.cpp:1152
Factory class for creating new instances of classes derived from Transport.
Definition TransportFactory.h:31
static TransportFactory * s_factory
Static instance of the factor -> This is the only instance of this object allowed.
Definition TransportFactory.h:71
void deleteFactory() override
Deletes the statically allocated factory instance.
Definition TransportFactory.cpp:61
static TransportFactory * factory()
Return a pointer to a TransportFactory instance.
Definition TransportFactory.cpp:53
static std::mutex transport_mutex
Static instance of the mutex used to ensure the proper reading of the transport database.
Definition TransportFactory.h:75
map< string, bool > m_CK_mode
Models included in this map are initialized in CK compatibility mode.
Definition TransportFactory.h:86
TransportFactory()
The constructor is private; use static method factory() to get a pointer to a factory instance.
Definition TransportFactory.cpp:27
Transport * newTransport(const string &model, ThermoPhase *thermo, int log_level=0)
Build a new transport manager using a transport manager that may not be the same as in the phase desc...
Definition TransportFactory.cpp:68
virtual void init(ThermoPhase *thermo, int mode=0, int log_level=0)
Initialize a transport manager.
Definition Transport.h:407
Class UnityLewisTransport implements the unity Lewis number approximation for the mixture-averaged sp...
Definition UnityLewisTransport.h:26
shared_ptr< Transport > newTransport(shared_ptr< ThermoPhase > thermo, const string &model)
Create a new Transport instance.
Definition TransportFactory.cpp:109
Contains declarations for string manipulation functions within Cantera.
Various templated functions that carry out common vector and polynomial operations (see Templated Arr...
Generated by 1.9.7