TrioCFD 1.9.9_beta
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 Transport equation for the interfacial area.
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
The value of the unknown at the time step has been calculated.
void associer_fluide(const Fluide_base &)
void associer_milieu_base(const Milieu_base &) override
void discretiser() override
Discretizes the equation.
int impr(Sortie &os) const override
Prints the equation operators to an output stream, unconditionally.
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
Returns "indeterminate" Navier_Stokes_standard for example overrides this method.
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Class Champ_Inc_base.
Convection_Diffusion_std This class is the base for equations modelling the transport.
Base class for an incompressible fluid and its properties:
Definition Fluide_base.h:36
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
class Operateur Generic class of the operator hierarchy.
Definition Operateur.h:39
Base class for output streams.
Definition Sortie.h:52