TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_hyd_RANS_K_Eps_base.h
1/****************************************************************************
2* Copyright (c) 2017, 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
17#ifndef Modele_turbulence_hyd_RANS_K_Eps_base_included
18#define Modele_turbulence_hyd_RANS_K_Eps_base_included
19
20#include <Modele_turbulence_hyd_2_eq_base.h>
21#include <Modele_turbulence_hyd_RANS_Gen.h>
22#include <Modele_Fonc_Bas_Reynolds_Base.h>
23#include <TRUST_Deriv.h>
24
26
27/*! @brief Classe Modele_turbulence_hyd_RANS_K_Eps_base Classe de base des modeles de type RANS_keps
28 *
29 * @sa Modele_turbulence_hyd_base
30 */
32{
34public:
35 void set_param(Param& param) const override;
36 void completer() override;
37 int sauvegarder(Sortie& os) const override;
38 int reprendre(Entree& is) override;
39 std::vector<YAML_data> data_a_sauvegarder() const override;
40
41 const Champ_base& get_champ(const Motcle& nom) const override;
42 bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const override;
43 bool has_champ(const Motcle& nom) const override;
44 void get_noms_champs_postraitables(Noms& nom,Option opt=NONE) const override;
45 inline OWN_PTR(Modele_Fonc_Bas_Reynolds_Base)& associe_modele_fonction() { return mon_modele_fonc_; }
46 inline const OWN_PTR(Modele_Fonc_Bas_Reynolds_Base)& associe_modele_fonction() const { return mon_modele_fonc_; }
47
48 bool calcul_tenseur_Re(const DoubleTab& nu_turb, const DoubleTab& grad, DoubleTab& Re) const override
49 {
50 if (associe_modele_fonction() && associe_modele_fonction()->Calcul_is_Reynolds_stress_isotrope()==0)
51 return associe_modele_fonction()->calcul_tenseur_Re(nu_turb, grad, Re);
52 else
53 return false;
54 }
55
56protected:
58};
59
60#endif /* Modele_turbulence_hyd_RANS_K_Eps_base_included */
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Classe Modele_turbulence_hyd_2_eq_base Classe de base des modeles de type RANS a deux equations.
Classe Modele_turbulence_hyd_RANS_K_Eps_base Classe de base des modeles de type RANS_keps.
OWN_PTR(Modele_Fonc_Bas_Reynolds_Base) &associe_modele_fonction()
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
std::vector< YAML_data > data_a_sauvegarder() const override
for PDI IO: retrieve name, type and dimensions of the fields to save/restore
int reprendre(Entree &is) override
Reprise du modele a partir d'un flot d'entree.
const OWN_PTR(Modele_Fonc_Bas_Reynolds_Base) &associe_modele_fonction() const
const Champ_base & get_champ(const Motcle &nom) const override
bool calcul_tenseur_Re(const DoubleTab &nu_turb, const DoubleTab &grad, DoubleTab &Re) const override
int sauvegarder(Sortie &os) const override
Sauvegarde le modele de turbulence sur un flot de sortie.
OWN_PTR(Modele_Fonc_Bas_Reynolds_Base) mon_modele_fonc_
OBS_PTR(Equation_base) mon_equation_
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe Transport_K_Eps_base Classe de base pour les equations.