teqp 0.23.1
Loading...
Searching...
No Matches
model_factory_pcsaft.cpp
Go to the documentation of this file.
3
4#include "model_flags.hpp" // Contains (optionally) macros to disable various models
5
6#ifndef DISABLE_PCSAFT
8#endif
9
10namespace teqp{
11 namespace cppinterface{
12#ifndef DISABLE_PCSAFT
13 std::unique_ptr<teqp::cppinterface::AbstractModel> make_PCSAFT(const nlohmann::json &spec){
15 }
16 std::unique_ptr<teqp::cppinterface::AbstractModel> make_PCSAFTPureGrossSadowski2001(const nlohmann::json &spec){
18 }
19#else
20 std::unique_ptr<teqp::cppinterface::AbstractModel> make_PCSAFT(const nlohmann::json &){
21 throw teqp::NotImplementedError("The PC-SAFT model has been disabled");
22 }
23 std::unique_ptr<teqp::cppinterface::AbstractModel> make_PCSAFTPureGrossSadowski2001(const nlohmann::json &){
24 throw teqp::NotImplementedError("The PC-SAFT model for pure fluids has been disabled");
25 }
26#endif
27 }
28}
auto make_owned(const TemplatedModel &tmodel)
std::unique_ptr< teqp::cppinterface::AbstractModel > make_PCSAFTPureGrossSadowski2001(const nlohmann::json &spec)
std::unique_ptr< teqp::cppinterface::AbstractModel > make_PCSAFT(const nlohmann::json &spec)
auto PCSAFTfactory(const nlohmann::json &spec)
A JSON-based factory function for the PC-SAFT model.
Definition pcsaft.hpp:455