TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Conservation_Euler_base.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 Conservation_Euler_base_included
17#define Conservation_Euler_base_included
18
19#include <Convection_Diffusion_std.h>
20#include <Operateur_NConserv.h>
21#include <Fluide_base.h>
22
24{
25 Declare_base(Conservation_Euler_base);
26public:
27 int nombre_d_operateurs() const override
28 {
29 Process::exit("Conservation_Euler_base::nombre_d_operateurs !!!\n");
30 return 1;
31 }
32
33 const Operateur& operateur(int) const override
34 {
35 Process::exit("Conservation_Euler_base::operateur !!! \n");
36 return terme_convectif;
37 }
38
39 Operateur& operateur(int) override
40 {
41 Process::exit("Conservation_Euler_base::operateur !!! \n");
42 return terme_convectif;
43 }
44
45 int lire_motcle_non_standard(const Motcle&, Entree&) override;
46 void completer() override { Equation_base::completer(); }
47
48 inline const Champ_Inc_base& inconnue() const override { return l_inco_ch_; }
49 inline Champ_Inc_base& inconnue() override { return l_inco_ch_; }
50 inline double calculer_pas_de_temps() const override { return 1e10; }
51
52 void associer_milieu_base(const Milieu_base&) override;
53 void associer_fluide(const Fluide_base&);
54 inline const Milieu_base& milieu() const override { return fluide(); }
55 inline Milieu_base& milieu() override { return fluide(); }
56 const Fluide_base& fluide() const
57 {
58 assert(le_fluide_);
59 return le_fluide_.valeur();
60 }
61
63 {
64 assert(le_fluide_);
65 return le_fluide_.valeur();
66 }
67
68 virtual double flux_bord(const double inco_bord, const double vit_n_bord, const double p_bord) const
69 {
70 Process::exit("Conservation_Euler_base::flux_bord !!! \n");
71 return 0;
72 }
73
74 virtual double termes_NonConservatif(const double alpha_bord, const double vitesse_n_inter, const double p_bord) const
75 {
76 Process::exit("Conservation_Euler_base::termes_NonConservatif !!! \n");
77 return 0;
78 }
79
81 {
82 Process::exit("Conservation_Euler_base::dimensionner_matrice_sans_mem !!! \n");
83 }
84
85 int has_interface_blocs() const override
86 {
87 Process::exit("Conservation_Euler_base::has_interface_blocs !!! \n");
88 return -1;
89 }
90
91 void dimensionner_blocs(matrices_t matrices, const tabs_t& semi_impl = { }) const override
92 {
93 Process::exit("Conservation_Euler_base::dimensionner_blocs !!! \n");
94 }
95
96 void assembler_blocs_avec_inertie(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl = { }) override
97 {
98 Process::exit("Conservation_Euler_base::assembler_blocs_avec_inertie !!! \n");
99 }
100
101protected :
105 OBS_PTR(Fluide_base) le_fluide_;
106};
107
108#endif /* Conservation_Euler_base_included */
Class Champ_Inc_base.
const Milieu_base & milieu() const override
int nombre_d_operateurs() const override
void dimensionner_matrice_sans_mem(Matrice_Morse &matrice) override
void dimensionner_blocs(matrices_t matrices, const tabs_t &semi_impl={ }) const override
void assembler_blocs_avec_inertie(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl={ }) override
virtual double termes_NonConservatif(const double alpha_bord, const double vitesse_n_inter, const double p_bord) const
int has_interface_blocs() const override
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
virtual double flux_bord(const double inco_bord, const double vit_n_bord, const double p_bord) const
Operateur & operateur(int) override
const Operateur & operateur(int) const override
const Champ_Inc_base & inconnue() const override
Champ_Inc_base & inconnue() override
void associer_milieu_base(const Milieu_base &) override
double calculer_pas_de_temps() const override
Calculation of the next time step.
OBS_PTR(Fluide_base) le_fluide_
void completer() override
Completes the construction (initialization) of objects associated with the equation.
Milieu_base & milieu() override
void associer_fluide(const Fluide_base &)
OWN_PTR(Champ_Inc_base) l_inco_ch_
const Fluide_base & fluide() const
Convection_Diffusion_std This class is the base for equations modelling the transport.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual void completer()
Completes the construction (initialization) of objects associated with the equation.
Base class for an incompressible fluid and its properties:
Definition Fluide_base.h:36
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
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
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466