TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Op_Conv_Muscl3_VEF_Face.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 <Op_Conv_Muscl3_VEF_Face.h>
17#include <Convection_tools.h>
18
19Implemente_instanciable_sans_constructeur(Op_Conv_Muscl3_VEF_Face,"Op_Conv_Muscl3_VEF_P1NC",Op_Conv_VEF_Face);
20// XD convection_muscl3 convection_deriv muscl3 BRACE Keyword for a scheme using a ponderation between muscl and center
21// XD_CONT schemes in VEF.
22// XD attr alpha floattant alpha OPT To weight the scheme centering with the factor double (between 0 (full centered)
23// XD_CONT and 1 (muscl), by default 1).
24
26{
27 return s << que_suis_je() ;
28}
29
31{
32
34 LIMITEUR=&vanleer;
36 ordre_=3;
37 alpha_=1;
38 // Lecture eventuelle de alpha_
39 Motcle motlu, accouverte = "{" , accfermee = "}" ;
40 Motcles les_mots(6);
41 {
42 les_mots[0] = "alpha";
43 les_mots[1] = "minmod";
44 les_mots[2] = "vanleer";
45 les_mots[3] = "vanalbada";
46 les_mots[4] = "chakravarthy";
47 les_mots[5] = "superbee";
48 }
49 s >> motlu;
50 if (motlu!=accouverte)
51 {
52 Cerr << "We wait for a { after reading muscl3 keyword." << finl;
54 }
55 s >> motlu;
56 while(motlu!=accfermee)
57 {
58 int rang=les_mots.search(motlu);
59
60 switch(rang)
61 {
62 case 0 :
63 s >> alpha_;
64 break;
65 case 1 :
66 LIMITEUR=&minmod;
68 break;
69 case 2 :
70 LIMITEUR=&vanleer;
72 break;
73 case 3 :
74 LIMITEUR=&vanalbada;
76 break;
77 case 4 :
78 LIMITEUR=&chakravarthy;
80 break;
81 case 5 :
82 LIMITEUR=&superbee;
84 break;
85 default:
86 Cerr << "Keyword " << motlu << " not recognized. List of keywords available:" << finl;
87 Cerr << les_mots << finl;
88 exit();
89 break;
90 }
91 s >> motlu;
92 }
93 return s ;
94}
95
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
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
class Op_Conv_Muscl3_VEF_Face
class Op_Conv_VEF_Face
type_lim_type type_lim_int
double(* LIMITEUR)(double, double)
type_operateur type_op
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