TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
CoolProp_to_TRUST_generique.h
1/****************************************************************************
2* Copyright (c) 2024, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef CoolProp_to_TRUST_generique_included
17#define CoolProp_to_TRUST_generique_included
18
19#include <CoolProp_to_TRUST.h>
20
21/*! @brief classe CoolProp_to_TRUST_generique
22 *
23 * Interface commune pour TRUST et ses baltiks qui permet appeler les methodes de la lib CoolProp
24 * Methods disponibles pour les fluids en temperature et enthalpie
25 *
26 * @sa CoolProp_to_TRUST CoolProp_Supported_Models_Fluids
27 */
29{
30public:
31 void set_fluide_generique(const char *const model_name, const char *const fluid_name) override;
32
33 // methodes particulieres par application pour gagner en performance : utilisees dans Pb_Multiphase (pour le moment !)
34 int tppi_get_CPMLB_pb_multiphase_pT(const MSpanD, MLoiSpanD, int ncomp = 1, int id = 0) const override;
35 int tppi_get_all_pb_multiphase_pT(const MSpanD, MLoiSpanD, MLoiSpanD, int ncomp = 1, int id = 0) const override;
36
37 // methode particuliere par application pour gagner en performance : utilisee dans F5 (pour le moment !)
38 int tppi_get_all_prop_loi_F5(const MSpanD, MLoiSpanD_h, int ncomp = 1, int id = 0, bool is_liq = true) const override;
39
40private:
41 int tppi_get_single_property_T_(Loi_en_T, const SpanD, const SpanD, SpanD, int, int) const override;
42 int tppi_get_single_property_T__(Loi_en_T, const SpanD, const SpanD, SpanD) const;
43 int tppi_get_all_properties_T__(const MSpanD input, MLoiSpanD prop) const;
44 int tppi_get_all_properties_T_IF97__(const MSpanD input, MLoiSpanD prop) const;
45 int FD_derivative_pT__(Loi_en_T, const SpanD, const SpanD, SpanD, bool wrt_p = true) const;
46
47 int tppi_get_single_property_h_(Loi_en_h, const SpanD, const SpanD, SpanD, int, int) const override;
48 int tppi_get_single_property_h__(Loi_en_h, const SpanD, const SpanD, SpanD) const;
49 int tppi_get_all_properties_h__(const MSpanD input, MLoiSpanD_h prop) const;
50 int tppi_get_all_properties_h_IF97__(const MSpanD input, MLoiSpanD_h prop) const;
51 int FD_derivative_ph__(Loi_en_h, const SpanD, const SpanD, SpanD, bool wrt_p = true) const;
52};
53
54#endif /* CoolProp_to_TRUST_generique_included */
classe CoolProp_to_TRUST_generique
void set_fluide_generique(const char *const model_name, const char *const fluid_name) override
int tppi_get_all_prop_loi_F5(const MSpanD, MLoiSpanD_h, int ncomp=1, int id=0, bool is_liq=true) const override
int tppi_get_all_pb_multiphase_pT(const MSpanD, MLoiSpanD, MLoiSpanD, int ncomp=1, int id=0) const override
int tppi_get_CPMLB_pb_multiphase_pT(const MSpanD, MLoiSpanD, int ncomp=1, int id=0) const override
classe CoolProp_to_TRUST