TransportFactory.h Source File#
TransportFactory.h
Go to the documentation of this file.
File contains the FactoryBase class declarations.
Headers for the Transport object, which is the virtual base class for all transport property evaluato...
Factory class that supports registering functions to create objects.
Definition FactoryBase.h:69
Base class for a phase with thermodynamic properties.
Definition ThermoPhase.h:390
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
shared_ptr< Transport > newTransport(shared_ptr< ThermoPhase > thermo, const string &model)
Create a new Transport instance.
Definition TransportFactory.cpp:109
Generated by