15 PDSSFactory* PDSSFactory::s_factory = 0;
16 std::mutex PDSSFactory::thermo_mutex;
18 PDSSFactory::PDSSFactory()
20 reg(
"constant-volume", []() {
return new PDSS_ConstVol(); });
21 addDeprecatedAlias(
"constant-volume",
"constant_incompressible");
22 addDeprecatedAlias(
"constant-volume",
"constant-incompressible");
23 reg(
"liquid-water-IAPWS95", []() {
return new PDSS_Water(); });
24 addDeprecatedAlias(
"liquid-water-IAPWS95",
"waterPDSS");
25 addDeprecatedAlias(
"liquid-water-IAPWS95",
"waterIAPWS");
26 addDeprecatedAlias(
"liquid-water-IAPWS95",
"water");
27 reg(
"molar-volume-temperature-polynomial", []() {
return new PDSS_SSVol(); });
28 addDeprecatedAlias(
"molar-volume-temperature-polynomial",
"temperature_polynomial");
29 reg(
"density-temperature-polynomial", []() {
return new PDSS_SSVol(); });
30 addDeprecatedAlias(
"density-temperature-polynomial",
"density_temperature_polynomial");
31 reg(
"HKFT", []() {
return new PDSS_HKFT(); });
34 PDSSFactory* PDSSFactory::factory() {
35 std::unique_lock<std::mutex> lock(thermo_mutex);
37 s_factory =
new PDSSFactory;
42 void PDSSFactory::deleteFactory() {
43 std::unique_lock<std::mutex> lock(thermo_mutex);
48 PDSS* PDSSFactory::newPDSS(
const string& model)
53 PDSS* newPDSS(
const string& model)
55 return PDSSFactory::factory()->newPDSS(model);
Declarations for the class PDSS_ConstVol (pressure dependent standard state) which handles calculatio...
Declarations for the class PDSS_HKFT (pressure dependent standard state) which handles calculations f...
Declarations for the class PDSS_SSVol (pressure dependent standard state) which handles calculations ...
Implementation of a pressure dependent standard state virtual function for a Pure Water Phase (see Sp...
Namespace for the Cantera kernel.