TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Aire_interfaciale.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 Aire_interfaciale_included
17#define Aire_interfaciale_included
18
19#include <Convection_Diffusion_std.h>
20#include <Fluide_base.h>
21#include <TRUST_Ref.h>
22
23/*! @brief classe Aire_interfaciale Equation de transport de l'aire interfaciale
24 *
25 * @sa Conv_Diffusion_std Convection_Diffusion_Temperature
26 */
28{
29 Declare_instanciable_sans_constructeur(Aire_interfaciale);
30
31public :
32
34
35 void associer_fluide(const Fluide_base& );
36 inline const Champ_Inc_base& inconnue() const override { return l_inco_ch_; }
37 inline Champ_Inc_base& inconnue() override { return l_inco_ch_; }
38 void discretiser() override;
39 const Milieu_base& milieu() const override;
40 Milieu_base& milieu() override;
41 void associer_milieu_base(const Milieu_base& ) override;
42 int impr(Sortie& os) const override;
43 void mettre_a_jour(double temps) override;
44
45 bool positive_unkown() override { return true; }
46
47 int nombre_d_operateurs() const override { return has_diff_turb_ ? 2 : 1; }
48 const Operateur& operateur(int) const override;
49 Operateur& operateur(int) override;
50
51 const Motcle& domaine_application() const override;
52
53protected :
55 OWN_PTR(Champ_Fonc_base) diametre_bulles_;
56 OBS_PTR(Fluide_base) le_fluide_;
57
58 bool has_diff_turb_ = false;
59 int n_l=-1 ; // Number of the liquid phase (the one where no IA is stored)
60 int n_g1=-1 ;
61 int n_g2=-1 ;
62 const double g = 9.81 ;
63};
64
65#endif /* Aire_interfaciale_included */
66
int nombre_d_operateurs() const override
const Milieu_base & milieu() const override
void mettre_a_jour(double temps) override
La valeur de l'inconnue sur le pas de temps a ete calculee.
void associer_fluide(const Fluide_base &)
void associer_milieu_base(const Milieu_base &) override
void discretiser() override
Discretise l'equation.
int impr(Sortie &os) const override
Imprime les operateurs de l'equation sur un flot de sortie, de facon inconditionnelle.
OWN_PTR(Champ_Inc_base) l_inco_ch_
const Operateur & operateur(int) const override
OBS_PTR(Fluide_base) le_fluide_
const Champ_Inc_base & inconnue() const override
Champ_Inc_base & inconnue() override
bool positive_unkown() override
OWN_PTR(Champ_Fonc_base) diametre_bulles_
const Motcle & domaine_application() const override
Renvoie "indetermine" Navier_Stokes_standard par exemple surcharge cette methode.
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Classe Champ_Inc_base.
classe Convection_Diffusion_std Cette classe est la base des equations modelisant le transport
classe Fluide_base Cette classe represente un d'un fluide incompressible ainsi que
Definition Fluide_base.h:38
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
classe Operateur Classe generique de la hierarchie des operateurs.
Definition Operateur.h:39
Classe de base des flux de sortie.
Definition Sortie.h:52