TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Terme_Source_inc_th.cpp
1/****************************************************************************
2* Copyright (c) 2022, 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 <Terme_Source_inc_th.h>
17#include <Motcle.h>
18//
19
21{
22 eq_hydraulique_ = eq_hyd;
23}
24
26{
27 eq_thermique_ = eq_thm;
28}
29
30
32{
33 Cerr << "Source_inc_th::lire_donnees" << finl;
34 // Initialisation
35 // u_etoile = 1.;
36 // h = 1.;
37 // coeff = 1;
38 // dir_source = 1;
39 impr = 0;
40 // Fin Init
41 Motcle motlu, accolade_fermee="}", accolade_ouverte="{", mot="impr";
42 is >> motlu;
43 if(motlu != accolade_ouverte)
44 {
45 Cerr << "On attendait { a la place de " << motlu
46 << " lors de la lecture de inc " << finl;
47 }
48 is >> motlu;
49 while (motlu != accolade_fermee)
50 {
51 if (motlu==mot)
52 {
53 impr = 1;
54 is >> motlu;
55 }
56 else
57 {
58 Cerr << "Le mot lu : " << motlu << " n'est pas compris dans Source_inc_th" << finl;
59 Cerr << "Le mot compris est : impr " << finl;
61 }
62 }
63 return is;
64}
classe Convection_Diffusion_Temperature Cas particulier de Convection_Diffusion_std
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
classe Navier_Stokes_std Cette classe porte les termes de l'equation de la dynamique
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Entree & lire_donnees(Entree &)
void associer_eqn(const Navier_Stokes_std &)