TrioCFD 1.9.9_beta
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 Pb_Fluide_base This class provides a base class for
23 *
24 * the hierarchy of problems carrying a Navier-Stokes equation.
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 */
A character string (Nom) in uppercase.
Definition Motcle.h:26
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:71
Pb_Fluide_base This class provides a base class for.
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
Asks the problem to post-process its fields, probes, etc.
int expression_predefini(const Motcle &motlu, Nom &expression) override
void completer() override
Completes the equations associated with the problem.
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()
class Probleme_base It is a Probleme_U that is not a coupling.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466