TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Transport_K_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#ifndef Transport_K_Eps_base_included
17#define Transport_K_Eps_base_included
18
19#include <Modele_turbulence_hyd_RANS_K_Eps_base.h>
20#include <Transport_2eq_base.h>
21
22#include <TRUST_Ref.h>
23
24class Milieu_base;
25class Champ_Inc_base;
26
27/*! @brief Classe Transport_K_Eps_base Classe de base pour les equations
28 *
29 * de transport des modeles k_Epsilon.
30 *
31 */
33{
34
35 Declare_base(Transport_K_Eps_base);
36
37public:
38
39 void discretiser() override;
40
41 int controler_K_Eps();
42 void valider_iteration() override;
43 inline const Champ_Inc_base& inconnue() const override;
44 inline Champ_Inc_base& inconnue() override;
45
46protected:
47
48 virtual void set_param(Param& ) const override;
49
50 OWN_PTR(Champ_Inc_base) le_champ_K_Eps;
51
52private:
53 bool exit_on_negative_k_eps_ = false;
54 bool exit_on_big_eps_ = false;
55
56};
57
58/*! @brief Renvoie le champ inconnue de l'equation.
59 *
60 * Un champ vecteur contenant K et epsilon.
61 *
62 * @return (Champ_Inc_base&) le champ inconnue de l'equation
63 */
64inline Champ_Inc_base& Transport_K_Eps_base::inconnue() { return le_champ_K_Eps; }
65
66
67/*! @brief Renvoie le champ inconnue de l'equation.
68 *
69 * Un champ vecteur contenant K et epsilon.
70 * (version const)
71 *
72 * @return (Champ_Inc_base&) le champ inconnue de l'equation
73 */
74inline const Champ_Inc_base& Transport_K_Eps_base::inconnue() const { return le_champ_K_Eps; }
75
76
77#endif
Classe Champ_Inc_base.
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
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.
Classe Transport_K_Eps_base Classe de base pour les equations.
void discretiser() override
Discretise l'equation.
const Champ_Inc_base & inconnue() const override
Renvoie le champ inconnue de l'equation.
virtual void set_param(Param &) const override
int controler_K_Eps()
Controle le champ inconnue K-epsilon en forcant a zero les valeurs du champ.
void valider_iteration() override
Method to correct the field K_Eps after an iteration.
OWN_PTR(Champ_Inc_base) le_champ_K_Eps