TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Operateur_Conv_base.cpp
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#include <Operateur_Conv_base.h>
17#include <Champ_base.h>
18
19Implemente_base_sans_constructeur(Operateur_Conv_base,"Operateur_Conv_base",Operateur_base);
20
21
22/*! @brief NE FAIT RIEN A surcharger dans les classes derivees
23 *
24 * @param (Sortie& os) un flot de sortie
25 * @return (Sortie&) le flot de sortie
26 */
28{
29 return os;
30}
31
32
33/*! @brief NE FAIT RIEN A surcharger dans les classes derivees
34 *
35 * @param (Entree& is) un flot d'entree
36 * @return (Entree&) le flot d'entree
37 */
39{
40 return is;
41}
42/*! @brief initialise dt_stab_conv a -123
43 *
44 */
45Operateur_Conv_base::Operateur_Conv_base():dt_stab_conv_(-123.) {}
46
48{
49 if (je_suis_maitre())
50 {
51 Cerr << "Operateur_Conv_base::associer_norme_vitesse\n";
52 Cerr << " field name : " << norme_vitesse.le_nom();
53 Cerr << " unit : " << norme_vitesse.unite() << finl;
54 }
55 la_norme_vitesse = norme_vitesse;
56}
58{
59 vitesse_pour_pas_de_temps_=vitesse;
60}
61
63{
64 if (flag == 0)
65 {
66 Cerr << "Compressible form of operator \"" << que_suis_je() << "\" not implemented!" << finl;
68 }
69 incompressible_ = flag;
70}
71
73{
74 Cerr << "Operateur_Conv_base::set_transporting_velocity_phase_index: "
75 << "not implemented for operator '" << que_suis_je()
76 << "'. Override in the derived class if needed." << finl;
78}
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
const Nom & le_nom() const override
Renvoie le nom du champ.
const Nom & unite() const
Renvoie l'unite d'un champ scalaire dont toutes les composantes ont la meme unite.
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
classe Operateur_Conv_base Cette classe est la base de la hierarchie des operateurs representant
virtual void set_transporting_velocity_phase_index(int idx)
virtual void set_incompressible(const int)
virtual void associer_norme_vitesse(const Champ_base &norme_vitesse)
virtual void associer_vitesse_pour_pas_de_temps(const Champ_base &vitesse)
classe Operateur_base Classe est la base de la hierarchie des objets representant un
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
static int je_suis_maitre()
renvoie 1 si on est sur le processeur maitre du groupe courant (c'est a dire me() == 0),...
Definition Process.cpp:86
Classe de base des flux de sortie.
Definition Sortie.h:52