TrioCFD 1.9.9_beta
TrioCFD documentation
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 Prints the object to an output stream.
25 *
26 * @param is an output stream
27 * @return the modified output stream
28 */
30{
31 return is;
32}
33
34
35/*! @brief Reads the object from an input stream.
36 *
37 * @param is an input stream
38 * @return the modified input stream
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; // time interval for printing temporal averages
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
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of Motcle objects.
Definition Motcle.h:63
int search(const Motcle &t) const
Definition Motcle.cpp:319
friend class Entree
Definition Objet_U.h:71
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
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466
Base class for output streams.
Definition Sortie.h:52
Traitement_particulier_NS_base Derives from Support_Champ_Masse_Volumique: use of rho.
Traitement_particulier_NS_temperature This class performs specific post-processing treatments.