TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Transport_K_ou_Eps_base.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 Transport_K_ou_Eps_base_included
18#define Transport_K_ou_Eps_base_included
19
20#include <Transport_2eq_base.h>
21#include <Modele_turbulence_hyd_RANS_Bicephale_base.h>
22#include <TRUST_Ref.h>
23
24
25class Milieu_base;
26class Champ_Inc_base;
27
28/*! @brief Classe de base pour l'equation de transport des modeles k_Epsilon
29 * dans une approche ou K et Epsilon sont traites par deux equations differentes.
30 *
31 * Defaults to an equation on k (transporte_K_=false).
32 * Must call set_K_equation() from the outside to change the class to an equation on epsilon.
33 */
35{
36
37 Declare_base(Transport_K_ou_Eps_base);
38
39public:
40
41 void discretiser() override;
42 void set_param(Param& param) const override;
43 virtual int controler_variable();
44 void valider_iteration() override;
45 inline const Champ_Inc_base& inconnue() const override;
46 inline Champ_Inc_base& inconnue() override;
47
48 const Champ_base& get_champ( const Motcle& nom ) const override;
49 bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const override;
50 bool has_champ(const Motcle& nom) const override;
51
52 bool transporte_t_il_K() const { return transporte_K_; };
54
55protected:
56
59
60 bool transporte_K_=false;
61};
62/*! @brief Renvoie le champ inconnue de l'equation.
63 *
64 * Un champ vecteur contenant K ou epsilon.
65 *
66 * @return (Champ_Inc_base&) le champ inconnue de l'equation
67 */
69{
70 return le_champ_;
71}
72
73
74/*! @brief Renvoie le champ inconnue de l'equation.
75 *
76 * Un champ vecteur contenant K ou epsilon.
77 * (version const)
78 *
79 * @return (Champ_Inc_base&) le champ inconnue de l'equation
80 */
82{
83 return le_champ_;
84}
85
86
87#endif
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe Transport_2eq_base Classe de base pour les equations.
OBS_PTR(Milieu_base) le_fluide
Classe de base pour l'equation de transport des modeles k_Epsilon dans une approche ou K et Epsilon s...
void discretiser() override
Discretise l'equation.
void valider_iteration() override
on remet eps et K positifs
const Champ_base & get_champ(const Motcle &nom) const override
void set_param(Param &param) const override
const Champ_Inc_base & inconnue() const override
Renvoie le champ inconnue de l'equation.
virtual int controler_variable()
Controle le champ inconnue K-epsilon en forcant a zero les valeurs du champ.
OWN_PTR(Champ_Fonc_base) residu_
OWN_PTR(Champ_Inc_base) le_champ_
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override