TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Fluide_Diphasique_IJK.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 Fluide_Diphasique_IJK_included
17#define Fluide_Diphasique_IJK_included
18
19#include <Fluide_Diphasique.h>
20
22{
23 Declare_instanciable(Fluide_Diphasique_IJK);
24public:
25
26 /*
27 * ATTENTION : phase0_ => VAPEUR, phase1_ => LIQUIDE
28 */
29
30 /*
31 * mu
32 */
33 double get_mu_liquid() const
34 {
35 return ref_cast(Fluide_Incompressible, phase1_.valeur()).viscosite_dynamique().valeurs()(0,0);
36 }
37 double get_mu_vapour() const
38 {
39 return ref_cast(Fluide_Incompressible, phase0_.valeur()).viscosite_dynamique().valeurs()(0,0);;
40 }
41
42 /*
43 * rho
44 */
45 double get_delta_rho() const
46 {
47 /* rho_l - rho_v */
48 return (ref_cast(Fluide_Incompressible, phase1_.valeur()).masse_volumique().valeurs()(0,0) -
49 ref_cast(Fluide_Incompressible, phase0_.valeur()).masse_volumique().valeurs()(0,0));
50 }
51 double get_rho_liquid() const
52 {
53 return ref_cast(Fluide_Incompressible, phase1_.valeur()).masse_volumique().valeurs()(0,0);
54 }
55 double get_rho_vapour() const
56 {
57 return ref_cast(Fluide_Incompressible, phase0_.valeur()).masse_volumique().valeurs()(0,0);
58 }
59
60 /*
61 * cp
62 */
64 {
65 return ref_cast(Fluide_Incompressible, phase1_.valeur()).capacite_calorifique().valeurs().size();
66 }
68 {
69 return ref_cast(Fluide_Incompressible, phase0_.valeur()).capacite_calorifique().valeurs().size();
70 }
71
72 double get_cp_liquid(int i) const
73 {
74 return ref_cast(Fluide_Incompressible, phase1_.valeur()).capacite_calorifique().valeurs()(0,i);
75 }
76 double get_cp_vapour(int i) const
77 {
78 return ref_cast(Fluide_Incompressible, phase0_.valeur()).capacite_calorifique().valeurs()(0,i);
79 }
80 double& get_set_cp_vapour(int i)
81 {
82 return ref_cast(Fluide_Incompressible, phase0_.valeur()).capacite_calorifique().valeurs()(0,i);
83 }
84
85 /*
86 * lambda
87 */
89 {
90 return ref_cast(Fluide_Incompressible, phase1_.valeur()).conductivite().valeurs().size();
91 }
93 {
94 return ref_cast(Fluide_Incompressible, phase0_.valeur()).conductivite().valeurs().size();
95 }
96
97 double get_lambda_liquid(int i) const
98 {
99 return ref_cast(Fluide_Incompressible, phase1_.valeur()).conductivite().valeurs()(0,i);
100 }
101 double get_lambda_vapour(int i) const
102 {
103 return ref_cast(Fluide_Incompressible, phase0_.valeur()).conductivite().valeurs()(0,i);
104 }
106 {
107 return ref_cast(Fluide_Incompressible, phase0_.valeur()).conductivite().valeurs()(0,i);
108 }
109
110 double get_gravite_norm() const;
111
114
115protected:
117};
118
119#endif /* Fluide_Diphasique_IJK_included */
double get_cp_vapour(int i) const
double get_lambda_vapour(int i) const
double get_lambda_liquid(int i) const
double & get_set_cp_vapour(int i)
double get_cp_liquid(int i) const
double & get_set_lambda_vapour(int i)
classe Fluide_Incompressible Cette classe represente un d'un fluide incompressible ainsi que