TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Traitement_particulier_NS_temperature.cpp
1/****************************************************************************
2* Copyright (c) 2023, 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_temperature.h>
17
18Implemente_base_sans_constructeur_ni_destructeur(Traitement_particulier_NS_temperature,"Traitement_particulier_NS_temperature",Traitement_particulier_NS_base);
19// XD temperature traitement_particulier_base temperature INHERITS_BRACE not_set
20// XD attr bord chaine bord REQ not_set
21// XD attr direction entier direction REQ not_set
22
23
24/*! @brief
25 *
26 * @param (Sortie& is) un flot de sortie
27 * @return (Sortie&) le flot de sortie modifie
28 */
30{
31 return is;
32}
33
34
35/*! @brief
36 *
37 * @param (Entree& is) un flot d'entree
38 * @return (Entree&) le flot d'entree modifie
39 */
41{
42 return is;
43}
44
46{
47 Motcle accouverte = "{" , accfermee = "}" ;
48 Motcle motbidon, motlu;
49 is >> motbidon ;
50 if (motbidon == accouverte)
51 {
52 Motcles les_mots(2);
53 les_mots[0] = "Bord";
54 les_mots[1] = "Direction";
55
56 is >> motlu;
57 while(motlu != accfermee)
58 {
59 int rang=les_mots.search(motlu);
60 switch(rang)
61 {
62 case 0 :
63 {
64 is >> nom_cl;
65 break;
66 }
67 case 1 :
68 {
69 is >> dir; // intervalle de temps de sorties des moyennes temporelles
70 break;
71 }
72 default :
73 {
74 Cerr << motlu << " is not a keyword for Traitement_particulier_NS_canal." << finl;
75 Cerr << "The keywords are: " << les_mots << finl;
76 exit();
77 }
78 }
79 is >> motlu;
80 }
81 is >> motlu;
82 if (motlu != accfermee)
83 {
84 Cerr << "Error while reading in Traitement_particulier_NS_temperature" << finl;;
85 Cerr << "We were expecting a }" << finl;
86 exit();
87 }
88 }
89 else
90 {
91 Cerr << "Error while reading in Traitement_particulier_NS_temperature" << finl;
92 Cerr << "We were expecting a {" << finl;
93 exit();
94 }
95
96 return is;
97}
98
99
104
109
110
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau d'objets de la classe Motcle.
Definition Motcle.h:63
int search(const Motcle &t) const
Definition Motcle.cpp:321
friend class Entree
Definition Objet_U.h:76
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
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
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
classe Traitement_particulier_NS_temperature Cette classe permet de faire les traitements particulier...