TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
EOS_to_TRUST_Sat_generique.h
1/****************************************************************************
2* Copyright (c) 2025, 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 EOS_to_TRUST_Sat_generique_included
17#define EOS_to_TRUST_Sat_generique_included
18
19#include <EOS_to_TRUST.h>
20
21/*! @brief classe EOS_to_TRUST_Sat_generique
22 *
23 * Interface commune pour TRUST et ses baltiks qui permet appeler les methodes de la lib EOS
24 * Methods disponibles pour la saturation en temperature et enthalpie
25 *
26 * @sa EOS_to_TRUST
27 */
29{
30public :
31 void set_saturation_generique(const char *const model_name, const char *const fluid_name) override;
32
33 int tppi_get_p_sat_T(const SpanD T, SpanD res, int ncomp = 1, int ind = 0) const override;
34 int tppi_get_p_sat_d_T_T(const SpanD T, SpanD res, int ncomp = 1, int ind = 0) const override;
35
36 int tppi_get_lvap_p(const SpanD P, SpanD res, int ncomp = 1, int ind = 0) const override;
37 int tppi_get_lvap_d_p_p(const SpanD P, SpanD res, int ncomp = 1, int ind = 0) const override;
38
39 // pour les gens qui cherchent sigma de l'objet saturation
40 int tppi_get_sigma_pT(const SpanD P, const SpanD T, SpanD R, int ncomp = 1, int id = 0) const override;
41 int tppi_get_sigma_ph(const SpanD P, const SpanD H, SpanD R, int ncomp = 1, int id = 0) const override;
42
43 // methodes particulieres par application pour gagner en performance : utilisees dans Pb_Multiphase et F5 (pour le moment !)
44 int tppi_get_all_flux_interfacial_pb_multiphase(const SpanD P, MSatSpanD sats, int ncomp = 1, int id = 0) const override;
45 int tppi_get_all_sat_loi_F5(const MSpanD input, MSatSpanD sats, int ncomp = 1, int id = 0) const override;
46 void set_user_uniform_sigma(const double sigma) override { user_uniform_sigma_ = sigma ; }
47
48private:
49 int tppi_get_single_sat_p_(SAT , const SpanD , SpanD , int , int , bool is_liq = true) const override;
50 double user_uniform_sigma_ = -1;
51};
52
53#endif /* EOS_to_TRUST_Sat_generique_included */
classe EOS_to_TRUST_Sat_generique
void set_user_uniform_sigma(const double sigma) override
int tppi_get_lvap_d_p_p(const SpanD P, SpanD res, int ncomp=1, int ind=0) const override
void set_saturation_generique(const char *const model_name, const char *const fluid_name) override
int tppi_get_all_flux_interfacial_pb_multiphase(const SpanD P, MSatSpanD sats, int ncomp=1, int id=0) const override
int tppi_get_p_sat_T(const SpanD T, SpanD res, int ncomp=1, int ind=0) const override
int tppi_get_lvap_p(const SpanD P, SpanD res, int ncomp=1, int ind=0) const override
int tppi_get_sigma_ph(const SpanD P, const SpanD H, SpanD R, int ncomp=1, int id=0) const override
int tppi_get_sigma_pT(const SpanD P, const SpanD T, SpanD R, int ncomp=1, int id=0) const override
int tppi_get_p_sat_d_T_T(const SpanD T, SpanD res, int ncomp=1, int ind=0) const override
int tppi_get_all_sat_loi_F5(const MSpanD input, MSatSpanD sats, int ncomp=1, int id=0) const override
classe EOS_to_TRUST