TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Traitement_particulier_NS_base.cpp
1/****************************************************************************
2* Copyright (c) 2024, 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 <Traitement_particulier_NS_base.h>
17#include <Navier_Stokes_std.h>
18
19Implemente_base(Traitement_particulier_NS_base,"Traitement_particulier_NS_base",Objet_U);
20
21// XD traitement_particulier_base objet_lecture traitement_particulier_base BRACE Basic class to post-process particular
22// XD_CONT values.
23// XD traitement_particulier objet_lecture nul NO_BRACE Auxiliary class to post-process particular values.
24// XD attr aco chaine(into=["{"]) aco REQ Opening curly bracket.
25// XD attr trait_part traitement_particulier_base trait_part REQ Type of traitement_particulier.
26// XD attr acof chaine(into=["}"]) acof REQ Closing curly bracket.
27
28/*! @brief Prints the equation to an output stream.
29 *
30 * Simple call to Equation_base::printOn(Sortie&).
31 *
32 * @param is an output stream
33 * @return the modified output stream
34 */
36{
37 return is;
38}
39
40
41/*! @brief Reads the Navier-Stokes equation specifications from an input stream.
42 *
43 * Simple call to Navier_Stokes_std::readOn(Entree&).
44 *
45 * @param is an input stream
46 * @return the modified input stream
47 * @throws no turbulence model specified
48 */
50{
51 return is;
52}
53
55{
56 mon_equation = ref_cast(Navier_Stokes_std,eqn);
57}
58
60{
61 return champs_compris_.get_champ(nom);
62}
63
65{
66 if (opt == DESCRIPTION)
67 Cerr << que_suis_je() << " : " << champs_compris_.liste_noms_compris() << finl;
68 else
69 nom.add(champs_compris_.liste_noms_compris());
70}
71
73{
74 return champs_compris_.has_champ(nom, ref_champ);
75}
76
78{
79 return champs_compris_.has_champ(nom);
80}
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
class Equation_base The role of an equation is the calculation of one or more fields....
A character string (Nom) in uppercase.
Definition Motcle.h:26
Navier_Stokes_std This class carries the terms of the momentum equation.
An array of character strings (VECT(Nom)).
Definition Noms.h:26
Base class for TRUST objects (Objet_U).
Definition Objet_U.h:68
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
Base class for output streams.
Definition Sortie.h:52
Traitement_particulier_NS_base Derives from Support_Champ_Masse_Volumique: use of rho.
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
OBS_PTR(Navier_Stokes_std) mon_equation
virtual void associer_eqn(const Equation_base &)
const Champ_base & get_champ(const Motcle &nom) const override
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override