TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Interpolation_IBM_thermal_wall_law.cpp
1/****************************************************************************
2* Copyright (c) 2026, 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 <Interpolation_IBM_thermal_wall_law.h>
17
18Implemente_instanciable( Interpolation_IBM_thermal_wall_law, "Interpolation_IBM_thermal_wall_law|IBM_thermal_wall_law", Interpolation_IBM_elem_fluid ) ;
19// XD interpolation_ibm_thermal_wall_law interpolation_ibm_elem_fluid ibm_thermal_wall_law BRACE Immersed Boundary
20// XD_CONT Method (IBM): Interpolation thermal wall law.
21
23{
25}
26
28{
29 Param param(que_suis_je());
30 set_param(param);
31 param.lire_avec_accolades_depuis(is);
32 return is;
33}
34
36{
38 param.ajouter("formulation_Tplus",&formulation_Tp_,Param::OPTIONAL); // XD_ADD_P entier
39 // XD_CONT Choix formulation calcul T+ (Kader si rien)
40 param.ajouter("boundary_type",&boundary_type_,Param::REQUIRED); // XD_ADD_P entier
41 // XD_CONT Choix type de cond limite
42 param.ajouter("T_inlet",&T_inlet_,Param::REQUIRED); // XD_ADD_P double
43 // XD_CONT Demande la température d'écoulement d'entrée moyenne
44 param.ajouter("Prandlt_mol",&Prandlt_mol_,Param::REQUIRED); // XD_ADD_P double
45 // XD_CONT Demande le Prandlt du fluide
46}
47
48double Interpolation_IBM_thermal_wall_law::Kader(double yplus, double Prandlt)
49{
50// Calcul de Beta
51 double a = 3.85*pow(Prandlt,1/3) -1.3;
52 double b = 2.12 * log(Prandlt);
53 double Beta = pow(a,2) + b;
54// Calcul de Gamma
55 a = 0.01*pow(yplus*Prandlt,4);
56 b = 1 + 5*yplus + pow(Prandlt,3);
57 double Gamma = a/b;
58// Calcul de theta+
59 a = yplus * exp(- Gamma) * Prandlt;
60 b = 2.12 * log(1 + yplus) + Beta;
61 double c = exp (- 1 / Gamma);
62 double thetaplus = a + b*c;
63
64 return thetaplus;
65}
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
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
void ajouter(const char *keyword, const int *value, Param::Nature nat=Param::OPTIONAL)
Register an integer parameter.
Definition Param.cpp:364
@ OPTIONAL
Definition Param.h:115
@ REQUIRED
Definition Param.h:115
Classe de base des flux de sortie.
Definition Sortie.h:52