TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Flux_2groupes_base.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 Flux_2groupes_base_included
17#define Flux_2groupes_base_included
18
19#include <Correlation_base.h>
20#include <TRUSTTabs.h>
21#include <Saturation_base.h>
22
23/*! @brief classe Flux_2groupes_base correlations de flux entre 2 groupes
24 *
25 *
26 */
28{
29 Declare_base(Flux_2groupes_base);
30public:
31 /* parametres d'entree coeffs */
33 {
34 double dh ; // diametre hyd
35 DoubleTab alpha ; // alpha[n] : taux de vide de la phase n
36 DoubleTab p ; // pression
37 DoubleTab nv ; // nv : norme de ||v_k - v_l||
38 DoubleTab mu ; // mu[n] : viscosite dynamique de la phase n
39 DoubleTab rho ; // rho[n] : masse volumique de la phase n
40 DoubleTab k_turb ; // k_turb : energie cinetique turbulente de la phase n
41 DoubleTab epsilon ; // nut[n] : viscosite turbulente de bulles de la phase n
42 DoubleTab sigma ; //sigma[ind_trav]:tension superficielle sigma(ind_trav), ind_trav = (n*(N-1)-(n-1)*(n)/2) + (m-n-1)
43 DoubleTab d_bulles ;//d_bulles[n] : diametre de bulles de la phase n
44 DoubleTab a_i ;
45 int e; // indice d'element
46 int n_l ;
47 int n_g1 ;
48 int n_g2 ;
49 };
50 /* valeurs de sortie coeffs */
52 {
53 DoubleTab gamma ;
54 DoubleTab da_gamma;
55 DoubleTab dai_gamma;
56 double inter2g1 ;
57 double inter3g1 ;
58 double inter2g2 ;
59 double inter3g2 ;
60 double da_inter2g1 ;
61 double da_inter3g1 ;
62 double da_inter2g2 ;
63 double da_inter3g2 ;
64
65 };
66 /* parametres d'entree therms */
68 {
69 int n_l;
70 int n_g1;
71 int n_g2;
72 double dh;
73 DoubleTab alpha;
74 DoubleTab T;
75 DoubleTab p;
76 DoubleTab d_bulles;
77 DoubleTab lambda;
78 DoubleTab mu;
79 DoubleTab rho;
80 DoubleTab Cp;
81 DoubleTab sigma ;
82 double Lvap;
83 double qp ;
84 double hl;
85 double hlsat ;
86 double Tsatg1 ;
87 double Tsatg2 ;
88 double dp_Tsat1 ;
89 double dp_Tsat2 ;
90 };
91 /* valeurs de sortie therms */
93 {
94 DoubleTab dT_G1;
95 DoubleTab dT_G2;
96 DoubleTab da_G1;
97 DoubleTab da_G2;
98 double dp_G1;
99 double dp_G2;
100 double G1;
101 double G2;
102 DoubleTab dT_etaph1;
103 DoubleTab dT_etaph2;
104 DoubleTab da_etaph1;
105 DoubleTab da_etaph2;
106 double dp_etaph1;
107 double dp_etaph2;
108 double etaph1;
109 double etaph2;
110
111 };
112
113 virtual void coeffs(const input_coeffs& input, output_coeffs& output) const = 0;
114 virtual void therm(const input_therms& input, output_therms& output) const = 0;
115
116};
117
118#endif
classe Flux_2groupes_base correlations de flux entre 2 groupes
virtual void coeffs(const input_coeffs &input, output_coeffs &output) const =0
virtual void therm(const input_therms &input, output_therms &output) const =0