TRUST 1.9.8
HPC thermohydraulic platform
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 Impression de l'equation sur un flot de sortie.
29 *
30 * Simple appel a Equation_base::printOn(Sortie&).
31 *
32 * @param (Sortie& is) un flot de sortie
33 * @return (Sortie&) le flot de sortie modifie
34 */
36{
37 return is;
38}
39
40
41/*! @brief Lit les specifications de l'equation de Navier Stokes a partir d'un flot d'entree.
42 *
43 * Simple appel a Navier_Stokes_std::readOn(Entree&)
44 *
45 * @param (Entree& is) un flot d'entree
46 * @return (Entree&) le flot d'entree modifie
47 * @throws pas de modele de turbulence speficie
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}
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
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
classe Navier_Stokes_std Cette classe porte les termes de l'equation de la dynamique
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
classe Objet_U Cette classe est la classe de base des Objets de TRUST
Definition Objet_U.h:73
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 de base des flux de sortie.
Definition Sortie.h:52
classe Traitement_particulier_NS_base Derive de Support_Champ_Masse_Volumique: utilisation de 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