16#include <EOS_to_TRUST.h>
25 handler.set_exit_on_error(NEPTUNE::EOS_Std_Error_Handler::disable_feature);
26 handler.set_throw_on_error(NEPTUNE::EOS_Std_Error_Handler::disable_feature);
27 handler.set_dump_on_error(NEPTUNE::EOS_Std_Error_Handler::disable_feature);
33 handler.set_exit_on_error(NEPTUNE::ok);
34 handler.set_throw_on_error(NEPTUNE::ok);
35 handler.set_dump_on_error(NEPTUNE::ok);
38 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
46 const char *
const pp_ = is_T ?
"Temperature" :
"Pressure";
47 const char *
const tt_ = is_T ?
"T" :
"P";
48 NEPTUNE::EOS_Field P_fld(pp_, tt_, (
int)P_ou_T.size(), (
double*)P_ou_T.begin());
49 NEPTUNE::EOS_Field z_fld(property_title,property_name, (
int)res.size(), (
double*)res.begin());
50 NEPTUNE::ArrOfInt tmp((
int)P_ou_T.size());
51 NEPTUNE::EOS_Error_Field ferr(tmp);
52 NEPTUNE::EOS_Error cr = fluide->compute(P_fld, z_fld, ferr);
55 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
63 NEPTUNE::EOS_Field T_fld(
"Temperature",
"T", (
int)T.size(),(
double*)T.begin()), P_fld(
"Pressure",
"P", (
int)P.size(), (
double*)P.begin());
64 NEPTUNE::EOS_Field z_fld(property_title,property_name, (
int)res.size(), (
double*)res.begin());
65 NEPTUNE::ArrOfInt tmp((
int)P.size());
66 NEPTUNE::EOS_Error_Field ferr(tmp);
67 NEPTUNE::EOS_Error cr = fluide->compute(P_fld, T_fld, z_fld, ferr);
70 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
78 NEPTUNE::EOS_Field H_fld(
"Enthalpy",
"h", (
int)H.size(),(
double*)H.begin()), P_fld(
"Pressure",
"P", (
int)P.size(), (
double*)P.begin());
79 NEPTUNE::EOS_Field z_fld(property_title,property_name, (
int)res.size(), (
double*)res.begin());
80 NEPTUNE::ArrOfInt tmp((
int)P.size());
81 NEPTUNE::EOS_Error_Field ferr(tmp);
82 NEPTUNE::EOS_Error cr = fluide->compute(P_fld, H_fld, z_fld, ferr);
85 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
105 return { {
"temperature", { tmin_, tmax_}}, {
"pression", { pmin_, pmax_}},
106 {
"enthalpie", { hmin_, hmax_}}, {
"rho", { rhomin_, rhomax_}}
109 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
118 fluide->get_p_min(tmp_);
121 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
130 fluide->get_p_max(tmp_);
133 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
142 fluide->get_h_min(tmp_);
145 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
154 fluide->get_h_max(tmp_);
157 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
166 fluide->get_T_min(tmp_);
169 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
178 fluide->get_T_max(tmp_);
181 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
190 fluide->get_rho_min(tmp_);
193 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
202 fluide->get_rho_max(tmp_);
205 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
214 fluide->get_p_crit(tmp_);
217 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
226 fluide->get_h_crit(tmp_);
229 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
238 fluide->get_T_crit(tmp_);
241 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
250 fluide->get_rho_crit(tmp_);
253 Cerr <<
"EOS_to_TRUST::" << __func__ <<
" should not be called since TRUST is not compiled with the EOS library !!! " << finl;
double tppi_get_T_min() const override final
double tppi_get_h_crit() const override final
double tppi_get_p_min() const override final
double tppi_get_h_min() const override final
double tppi_get_h_max() const override final
double tppi_get_T_crit() const override final
double tppi_get_p_crit() const override final
double tppi_get_rho_max() const override final
MRange all_unknowns_range() override final
int compute_eos_field(const SpanD P, SpanD res, const char *const pt, const char *const pn, bool is_T=false) const
void desactivate_handler(bool op=true) override
double tppi_get_rho_min() const override final
double tppi_get_rho_crit() const override final
int compute_eos_field_h(const SpanD P, const SpanD H, SpanD res, const char *const pt, const char *const pn) const
double tppi_get_T_max() const override final
double tppi_get_p_max() const override final