Cantera  2.4.0
PDSSFactory.cpp
Go to the documentation of this file.
1 //! @file PDSSFactory.cpp
2 
3 // This file is part of Cantera. See License.txt in the top-level directory or
4 // at http://www.cantera.org/license.txt for license and copyright information.
5 
13 
14 namespace Cantera
15 {
16 
17 PDSSFactory* PDSSFactory::s_factory = 0;
18 std::mutex PDSSFactory::thermo_mutex;
19 
20 PDSSFactory::PDSSFactory()
21 {
22  reg("ideal-gas", []() { return new PDSS_IdealGas(); });
23  reg("constant-incompressible", []() { return new PDSS_ConstVol(); });
24  m_synonyms["constant_incompressible"] = "constant-incompressible";
25  reg("water", []() { return new PDSS_Water(); });
26  m_synonyms["waterPDSS"] = m_synonyms["waterIAPWS"] = "water";
27  reg("ions-from-neutral", []() { return new PDSS_IonsFromNeutral(); });
28  m_synonyms["IonFromNeutral"] = "ions-from-neutral";
29  reg("temperature_polynomial", []() { return new PDSS_SSVol(); });
30  m_synonyms["temperature-polynomial"] = "temperature_polynomial";
31  m_synonyms["density_temperature_polynomial"] = "temperature_polynomial";
32  m_synonyms["density-temperature-polynomial"] = "temperature_polynomial";
33  reg("HKFT", []() { return new PDSS_HKFT(); });
34 }
35 
36 PDSS* PDSSFactory::newPDSS(const std::string& model)
37 {
38  return create(model);
39 }
40 
41 PDSS* newPDSS(const std::string& model)
42 {
43  return PDSSFactory::factory()->newPDSS(model);
44 }
45 
46 }
Implementation of a pressure dependent standard state virtual function for a Pure Water Phase (see Sp...
Declarations for the class PDSS_IdealGas (pressure dependent standard state) which handles calculatio...
Declarations for the class PDSS_SSVol (pressure dependent standard state) which handles calculations ...
Declarations for the class PDSS_ConstVol (pressure dependent standard state) which handles calculatio...
Namespace for the Cantera kernel.
Definition: AnyMap.cpp:8
Declarations for the class PDSS_IonsFromNeutral ( which handles calculations for a single ion in a fl...
Declarations for the class PDSS_HKFT (pressure dependent standard state) which handles calculations f...