TrioCFD 1.9.9_beta
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 DOES NOTHING To be overridden in derived classes.
23 *
24 * @param (Sortie& os) an output stream
25 * @return (Sortie&) the output stream
26 */
28{
29 return os;
30}
31
32
33/*! @brief DOES NOTHING To be overridden in derived classes.
34 *
35 * @param (Entree& is) an input stream
36 * @return (Entree&) the input stream
37 */
39{
40 return is;
41}
42/*! @brief Initializes dt_stab_conv to -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}
class Champ_base This class is the base of the fields hierarchy.
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
Returns the name of the field.
const Nom & unite() const
Returns the unit of a scalar field whose all components have the same unit.
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
Operateur_Conv_base This class is the base of the hierarchy of operators representing.
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)
class Operateur_base This class is the base of the hierarchy of objects representing an
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
Definition Process.cpp:82
Base class for output streams.
Definition Sortie.h:52