TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Energie_cinetique_turbulente.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_included
17#define Energie_cinetique_turbulente_included
18
19#include <Convection_diffusion_turbulence_multiphase.h>
20#include <Operateur_Grad.h>
21#include <Fluide_base.h>
22#include <TRUST_Ref.h>
23
24/*! @brief classe Energie_cinetique_turbulente Equation de transport d'une energie cinetique turbulente (modeles k-{eps,omega,tau})
25 *
26 * @sa Conv_Diffusion_std Convection_Diffusion_Temperature Convection_diffusion_turbulence_multiphase
27 */
29{
30 Declare_instanciable(Energie_cinetique_turbulente);
31public :
32
33 void set_param(Param& titi) const override;
34 void discretiser() override;
35 void mettre_a_jour(double) override;
36
37 const Champ_Don_base& diffusivite_pour_transport() const override;
38 const Champ_base& diffusivite_pour_pas_de_temps() const override;
39
40 /* champ convecte : alpha (si Pb_Multiphase) * rho * k */
41 static void calculer_alpha_rho_k(const Objet_U& obj, DoubleTab& val, DoubleTab& bval, tabs_t& deriv);
42 std::pair<std::string, fonc_calc_t> get_fonc_champ_conserve() const override
43 {
44 return { "k", calculer_alpha_rho_k };
45 }
46
47protected:
48 double coef_limit_ = -1;
49 bool limit_k_ = false;
50};
51
52#endif
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Convection_diffusion_turbulence_multiphase Equation de transport des quantites turbulentes (k,...
classe Energie_cinetique_turbulente Equation de transport d'une energie cinetique turbulente (modeles...
const Champ_Don_base & diffusivite_pour_transport() const override
void discretiser() override
Discretise l'equation.
const Champ_base & diffusivite_pour_pas_de_temps() const override
void mettre_a_jour(double) override
La valeur de l'inconnue sur le pas de temps a ete calculee.
static void calculer_alpha_rho_k(const Objet_U &obj, DoubleTab &val, DoubleTab &bval, tabs_t &deriv)
std::pair< std::string, fonc_calc_t > get_fonc_champ_conserve() const override
void set_param(Param &titi) const override
classe Objet_U Cette classe est la classe de base des Objets de TRUST
Definition Objet_U.h:73
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112