TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Probleme_FT_Disc_gen.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 Probleme_FT_Disc_gen_included
17#define Probleme_FT_Disc_gen_included
18
19#include <Triple_Line_Model_FT_Disc.h>
20#include <Pb_Fluide_base.h>
21#include <Equation_base.h>
22#include <TRUST_Vector.h>
23#include <TRUST_List.h>
24#include <TRUST_Ref.h>
25
26class Chimie;
27class Equation_base;
28class Milieu_base;
31
33{
34 Declare_instanciable(Probleme_FT_Disc_gen);
35public:
36 int nombre_d_equations() const override { return equations_.size(); }
37 const Equation_base& equation(int i) const override { return equations_[i].valeur(); }
38 Equation_base& equation(int i) override { return equations_[i].valeur(); }
39
40 void typer_lire_milieu(Entree& is) override;
41 void lire_solved_equations(Entree& is) override;
42 Entree& lire_equations(Entree& is, Motcle& dernier_mot) override;
43 void preparer_calcul() override;
44
45 const Equation_base& get_equation_by_name(const Nom& le_nom) const override;
47 void associer_milieu_base(const Milieu_base& milieu) override;
48 int associer_(Objet_U& ob) override;
49 void completer() override;
50 double calculer_pas_de_temps() const override;
51 void mettre_a_jour(double temps) override;
52 void update_composite_variables(double temps);
53 void update_geometrical_quantities(double temps);
54 virtual bool updateGivenFields() override;
55
56 // Raccourcis pour le Front_Tracking
57 virtual const Navier_Stokes_FT_Disc& equation_hydraulique(const Motcle& nom) const;
58 virtual const Transport_Interfaces_FT_Disc& equation_interfaces(const Motcle& nom) const;
59
60 const Triple_Line_Model_FT_Disc& tcl() const { return tcl_; }
61 Triple_Line_Model_FT_Disc& tcl() { return tcl_; }
62
63 inline const LIST(OWN_PTR(Equation_base))& get_list_equations() const { return equations_; }
64
65protected:
66 void add_FT_equation(const Nom& , const Nom& );
67 LIST(OWN_PTR(Equation_base)) equations_; // Par convention : dans le vecteur, N.S. en premier, puis Transport_Interfaces, puis ConvDiff.
68
69private:
70 OBS_PTR(Chimie) la_chimie_;
72};
73
74#endif /* Probleme_FT_Disc_gen_included */
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Equation_base The role of an equation is the calculation of one or more fields....
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 Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Base class for TRUST objects (Objet_U).
Definition Objet_U.h:68
Pb_Fluide_base This class provides a base class for.
OWN_PTR(Modele_rayo_transp) mod_rayo_transp_
virtual const Transport_Interfaces_FT_Disc & equation_interfaces(const Motcle &nom) const
virtual bool updateGivenFields() override
WARNING:
void mettre_a_jour(double temps) override
Performs a time update of the problem.
Equation_base & getset_equation_by_name(const Nom &le_nom) override
(B. Math): Virtual method added for problems having several equations of the same type (Probleme_FT_D...
const LIST(OWN_PTR(Equation_base)) &get_list_equations() const
int nombre_d_equations() const override
void update_geometrical_quantities(double temps)
virtual const Navier_Stokes_FT_Disc & equation_hydraulique(const Motcle &nom) const
void preparer_calcul() override
Prepares the computation: initializes the medium parameters and prepares the computation of each equa...
void lire_solved_equations(Entree &is) override
void typer_lire_milieu(Entree &is) override
void associer_milieu_base(const Milieu_base &milieu) override
Verifie que le milieu est de type Fluide_Diphasique et associe le milieu aux equations.
double calculer_pas_de_temps() const override
Computes the value of the next time step for the problem.
Entree & lire_equations(Entree &is, Motcle &dernier_mot) override
Reading of the equations of the problem.
void update_composite_variables(double temps)
Equation_base & equation(int i) override
void add_FT_equation(const Nom &, const Nom &)
const Equation_base & equation(int i) const override
const Equation_base & get_equation_by_name(const Nom &le_nom) const override
(B. Math): Virtual method added for problems having several equations of the same type (Probleme_FT_D...
LIST(OWN_PTR(Equation_base)) equations_
int associer_(Objet_U &ob) override
override Objet_U::associer_(Objet_U& ob) Associates different objects with the problem by checking
void completer() override
Completes the equations associated with the problem.
Triple_Line_Model_FT_Disc & tcl()
const Triple_Line_Model_FT_Disc & tcl() const
const Nom & le_nom() const override
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
Definition Probleme_U.h:109
virtual const Milieu_base & milieu() const
Returns the physical medium associated with the problem (const version).