Skip to content

Commit

Permalink
And add to generic SAFT
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jul 21, 2024
1 parent 69a4c63 commit 091884c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/teqp/models/saft/genericsaft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
#include "teqp/models/saftvrmie.hpp"
#include "teqp/models/association/association.hpp"
#include "teqp/models/saft/softsaft.hpp"
#include "teqp/models/model_potentials/2center_ljf.hpp"

namespace teqp::saft::genericsaft{

struct GenericSAFT{

public:
using NonPolarTerms = std::variant<saft::pcsaft::PCSAFTMixture, SAFTVRMie::SAFTVRMieNonpolarMixture, saft::softsaft::SoftSAFT>;
using TwoCLJ = twocenterljf::Twocenterljf<twocenterljf::DipolarContribution>;
using NonPolarTerms = std::variant<saft::pcsaft::PCSAFTMixture, SAFTVRMie::SAFTVRMieNonpolarMixture, saft::softsaft::SoftSAFT, TwoCLJ>;
// using PolarTerms = EOSTermContainer<>;
using AssociationTerms = std::variant<association::Association>;

Expand All @@ -26,7 +28,9 @@ struct GenericSAFT{
else if (kind == "Johnson+Johnson" || kind == "softSAFT"){
return saft::softsaft::SoftSAFT(j.at("model"));
}
// TODO: 2CLJ
else if (kind == "2CLJF"){
return twocenterljf::build_two_center_model(j.at("author"), j.at("L^*"));
}
else{
throw std::invalid_argument("Not valid nonpolar kind:" + kind);
}
Expand Down

0 comments on commit 091884c

Please sign in to comment.