TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Interpolation_IBM_power_law_tbl_proto.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Interpolation_IBM_power_law_tbl_proto_included
17#define Interpolation_IBM_power_law_tbl_proto_included
18
19/*! @brief : class Interpolation_IBM_power_law_tbl_proto
20 *
21 * Pure C++ class to allow multiple inheritance in Interpolation_IBM_power_law_tbl
22 *
23 *
24 */
25
27{
28
29public :
30// Constantes
31 inline double get_A_pwl(int a)
32 {
33 if (a == 1)
34 return A_pwl_WJSP_;
35 else
36 return A_pwl_;
37 };
38
39 inline double get_C_pwl_WJSP() { return C_pwl_WJSP_; }
40 inline double get_D_pwl_WJSP() { return D_pwl_WJSP_; }
41
42
43// Puissances
44 inline double get_B_pwl() { return B_pwl_; }
45 inline double get_p_pwl_WJSP() { return p_pwl_WJSP_; }
46
47// Limites
48 inline double get_y_c_p_pwl() { return y_c_p_pwl_; }
49 inline double get_y_c1_p_pwl_WJSP() { return y_c1_p_pwl_WJSP_; }
50 inline double get_y_c2_p_pwl_WJSP() { return y_c2_p_pwl_WJSP_; }
51
52protected :
53 double A_pwl_ = 8.3;
54 double A_pwl_WJSP_ = 8.438565669851982;
55 double C_pwl_WJSP_ = 20.197802756630782;
56 double D_pwl_WJSP_ = -34.3779384724374;
57 double B_pwl_ = 1./7.;
58 double p_pwl_WJSP_ = 0.49570985985551774;
59 double y_c_p_pwl_ = 11.81;
60 double y_c1_p_pwl_WJSP_ = 6.549332667516647;
61 double y_c2_p_pwl_WJSP_ = 54.75271424217823;
62 friend class Source_PDF_base;
63};
64
65#endif /* Interpolation_IBM_power_law_tbl_proto_included */
: class Interpolation_IBM_power_law_tbl_proto