TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Energie_cinetique_turbulente_WIT.h
1/****************************************************************************
2* Copyright (c) 2021, 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 Energie_cinetique_turbulente_WIT_included
17#define Energie_cinetique_turbulente_WIT_included
18
19#include <Convection_Diffusion_std.h>
20#include <Fluide_base.h>
21#include <TRUST_Ref.h>
22
23/*! @brief classe Energie_cinetique_turbulente_WIT Equation de transport d'une energie cinetique turbulente WIT pour la turbulence avec bulles
24 *
25 * @sa Conv_Diffusion_std Convection_Diffusion_Temperature
26 */
28{
29 Declare_instanciable_sans_constructeur(Energie_cinetique_turbulente_WIT);
30
31public :
32
34
35 void associer_fluide(const Fluide_base& );
36 inline const Champ_Inc_base& inconnue() const override;
37 inline Champ_Inc_base& inconnue() override;
38 void discretiser() override;
39 const Milieu_base& milieu() const override;
40 Milieu_base& milieu() override;
41 void associer_milieu_base(const Milieu_base& ) override;
42 int impr(Sortie& os) const override;
43 const Champ_Don_base& diffusivite_pour_transport() const override;
44 const Champ_base& diffusivite_pour_pas_de_temps() const override;
45
46 const Motcle& domaine_application() const override;
47
48 /* champ convecte : alpha (si Pb_Multiphase) * rho * k */
49 static void calculer_alpha_rho_k_WIT(const Objet_U& obj, DoubleTab& val, DoubleTab& bval, tabs_t& deriv);
50 virtual std::pair<std::string, fonc_calc_t> get_fonc_champ_conserve() const override
51 {
52 return { "alpha_rho_k_WIT", calculer_alpha_rho_k_WIT };
53 }
54
55 virtual bool positive_unkown() override {return true;};
56
57protected :
58
60 OBS_PTR(Fluide_base) le_fluide;
61};
62
63
64
65
66/*! @brief Renvoie le champ inconnue representant l'inconnue (T ou H) (version const)
67 *
68 * @return (Champ_Inc_base&) le champ inconnue representant la temperature (GP) ou l'enthalpie (GR)
69 */
71{
72 return l_inco_ch;
73}
74
75
76/*! @brief Renvoie le champ inconnue representant l'inconnue (T ou H)
77 *
78 * @return (Champ_Inc_base&) le champ inconnue representant la temperature (GP) ou l'enthalpie (GR)
79 */
81{
82 return l_inco_ch;
83}
84
85#endif
class Champ_Don_base base class of Given Fields (not calculated)
Class Champ_Inc_base.
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
Convection_Diffusion_std This class is the base for equations modelling the transport.
void associer_milieu_base(const Milieu_base &) override
Associe un milieu physique a l'equation, le milieu est en fait caste en Fluide_base ou en Fluide_Ostw...
const Milieu_base & milieu() const override
Renvoie le milieu physique de l'equation.
int impr(Sortie &os) const override
Impression des flux sur les bords sur un flot de sortie.
static void calculer_alpha_rho_k_WIT(const Objet_U &obj, DoubleTab &val, DoubleTab &bval, tabs_t &deriv)
OWN_PTR(Champ_Inc_base) l_inco_ch
void discretiser() override
Discretise l'equation.
virtual std::pair< std::string, fonc_calc_t > get_fonc_champ_conserve() const override
void associer_fluide(const Fluide_base &)
Associe un fluide incompressible a l'equation.
const Champ_base & diffusivite_pour_pas_de_temps() const override
const Champ_Don_base & diffusivite_pour_transport() const override
const Champ_Inc_base & inconnue() const override
Renvoie le champ inconnue representant l'inconnue (T ou H) (version const).
const Motcle & domaine_application() const override
Renvoie le nom du domaine d'application de l'equation.
OBS_PTR(Fluide_base) le_fluide
Base class for an incompressible fluid and its properties:
Definition Fluide_base.h:36
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
friend class Sortie
Definition Objet_U.h:70
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54