TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Pb_Fluide_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 Pb_Fluide_base_included
17#define Pb_Fluide_base_included
18
19#include <Modele_rayo_transp.h>
20#include <Probleme_base.h>
21
22/*! @brief classe Pb_Fluide_base Cette classe a pour but de disposer d une classe amont pour
23 *
24 * la hierarchie des problemes portant une equation de Navier_Stokes
25 *
26 * @sa Probleme_base
27 */
29{
30 Declare_base(Pb_Fluide_base);
31public:
32 int expression_predefini(const Motcle& motlu, Nom& expression) override;
33
34 /* Transparent radiation model */
35 void completer() override;
36 int postraiter(int force = 1) override;
37 void validateTimeStep() override;
38
39 Entree& lire_radiation_models(Entree& is, Motcle& mot) override final;
40 inline bool has_mod_rayo_transp() const override final { return bool(mod_rayo_transp_); }
41
43 {
44 if(!mod_rayo_transp_)
45 Process::exit("Pb_Fluide_base::get_mod_rayo_transp() -- No transparent radiation model is associated for your problem !!! ");
46
47 return mod_rayo_transp_.valeur();
48 }
49
51 {
52 if(!mod_rayo_transp_)
53 Process::exit("Pb_Fluide_base::get_mod_rayo_transp() -- No transparent radiation model is associated for your problem !!! ");
54
55 return mod_rayo_transp_.valeur();
56 }
57
58protected:
59 OWN_PTR(Modele_rayo_transp) mod_rayo_transp_;
60};
61
62#endif /* Pb_Fluide_base_included */
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76
classe Pb_Fluide_base Cette classe a pour but de disposer d une classe amont pour
bool has_mod_rayo_transp() const override final
void validateTimeStep() override
Validates the calculated unknown by moving the present time at the end of the time step.
int postraiter(int force=1) override
Demande au probleme de postraiter ses champs, sondes,.
int expression_predefini(const Motcle &motlu, Nom &expression) override
void completer() override
Complete les equations associees au probleme.
const Modele_rayo_transp & get_mod_rayo_transp() const
OWN_PTR(Modele_rayo_transp) mod_rayo_transp_
Entree & lire_radiation_models(Entree &is, Motcle &mot) override final
Modele_rayo_transp & get_mod_rayo_transp()
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455