TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Pb_Euler.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Pb_Euler_included
17#define Pb_Euler_included
18
19#include <Correlation_base.h>
20#include <Fraction_Euler.h>
21#include <Pb_Fluide_base.h>
22#include <Momentum_Euler.h>
23#include <Density_Euler.h>
24#include <Energy_Euler.h>
25#include <TRUST_Deriv.h>
26#include <TRUST_List.h>
27#include <Interprete.h>
28#include <Verif_Cl.h>
29
31{
32 Declare_instanciable(Pb_Euler);
33public:
34 void associer_milieu_base(const Milieu_base& ) override;
35 void typer_lire_milieu(Entree& is) override;
36 Entree& lire_equations(Entree& is, Motcle& dernier_mot) override;
37 const Equation_base& equation(int) const override ;
38 Equation_base& equation(int) override;
39 void preparer_calcul() override;
40 void mettre_a_jour(double temps) override;
41
42 inline Momentum_Euler& equation_qdm() { return eq_qdm_; }
43 inline const Momentum_Euler& equation_qdm() const { return eq_qdm_; }
45 inline const Density_Euler& equation_masse() const { return eq_masse_; }
47 inline const Energy_Euler& equation_energie() const { return eq_energie_; }
49 inline const Fraction_Euler& equation_fraction() const { return eq_fraction_; }
50
51 inline int nb_phases() const { return noms_phases_->size(); }
52 inline const Nom& nom_phase(int i) const { return noms_phases_.valeur()[i]; }
53 inline const Noms& noms_phases() const { return noms_phases_.valeur(); }
54
55 inline int verifier() override { return 1; }
56 inline int nombre_d_equations() const override { return 4; }
57
58protected:
59 OBS_PTR(Noms) noms_phases_;
64};
65
66#endif /* Pb_Euler_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
An array of character strings (VECT(Nom)).
Definition Noms.h:26
void preparer_calcul() override
Prepares the computation: initializes the medium parameters and prepares the computation of each equa...
Definition Pb_Euler.cpp:134
Fraction_Euler eq_fraction_
Definition Pb_Euler.h:63
const Noms & noms_phases() const
Definition Pb_Euler.h:53
const Energy_Euler & equation_energie() const
Definition Pb_Euler.h:47
void mettre_a_jour(double temps) override
Performs a time update of the problem.
Definition Pb_Euler.cpp:140
const Nom & nom_phase(int i) const
Definition Pb_Euler.h:52
int nb_phases() const
Definition Pb_Euler.h:51
const Momentum_Euler & equation_qdm() const
Definition Pb_Euler.h:43
const Equation_base & equation(int) const override
Definition Pb_Euler.cpp:92
OBS_PTR(Noms) noms_phases_
Energy_Euler & equation_energie()
Definition Pb_Euler.h:46
int verifier() override
Verifies that the object is complete, coherent, .
Definition Pb_Euler.h:55
void associer_milieu_base(const Milieu_base &) override
Associates a physical medium with the problem equations.
Definition Pb_Euler.cpp:128
int nombre_d_equations() const override
Definition Pb_Euler.h:56
Fraction_Euler & equation_fraction()
Definition Pb_Euler.h:48
const Fraction_Euler & equation_fraction() const
Definition Pb_Euler.h:49
Momentum_Euler eq_qdm_
Definition Pb_Euler.h:61
Density_Euler & equation_masse()
Definition Pb_Euler.h:44
const Density_Euler & equation_masse() const
Definition Pb_Euler.h:45
Energy_Euler eq_energie_
Definition Pb_Euler.h:62
Density_Euler eq_masse_
Definition Pb_Euler.h:60
Momentum_Euler & equation_qdm()
Definition Pb_Euler.h:42
Entree & lire_equations(Entree &is, Motcle &dernier_mot) override
Reading of the equations of the problem.
Definition Pb_Euler.cpp:66
void typer_lire_milieu(Entree &is) override
Definition Pb_Euler.cpp:45
Pb_Fluide_base This class provides a base class for.