TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_scal_diffturb_base.cpp
1/****************************************************************************
2* Copyright (c) 2024, 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#include <Modele_turbulence_scal_diffturb_base.h>
17#include <Modele_turbulence_hyd_base.h>
18#include <Convection_Diffusion_std.h>
19
20Implemente_base(Modele_turbulence_scal_diffturb_base, "Modele_turbulence_scal_diffturb_base", Modele_turbulence_scal_base);
21
23
25
26/*! @brief Associates a turbulent viscosity to the turbulence model.
27 *
28 * @param visc_turb The functional field representing the turbulent viscosity to associate.
29 */
31{
32 la_viscosite_turbulente_ = visc_turb;
33}
34
35/*! @brief Completes the turbulence model: calls Modele_turbulence_scal_base::completer()
36 *
37 * and associates the problem's turbulent viscosity to the turbulence model.
38 *
39 */
41{
43 const Probleme_base& mon_pb = equation().probleme();
44 const RefObjU& modele_turbulence = mon_pb.equation(0).get_modele(TURBULENCE);
45 const Modele_turbulence_hyd_base& mod_turb_hydr = ref_cast(Modele_turbulence_hyd_base, modele_turbulence.valeur());
46 const Champ_Fonc_base& visc_turb = mod_turb_hydr.viscosite_turbulente();
48}
49
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual const RefObjU & get_modele(Type_modele type) const
Probleme_base & probleme()
Returns the problem associated with the equation.
Base class for the turbulence model hierarchy for Navier-Stokes equations.
const Champ_Fonc_base & viscosite_turbulente() const
Base class for scalar turbulence models coupled to a Navier-Stokes convection-diffusion equation.
virtual void completer()
Completes the turbulence model: updates object references.
Convection_Diffusion_std & equation()
Base class for scalar turbulence models that compute turbulent diffusivity as:
void associer_viscosite_turbulente(const Champ_Fonc_base &)
Associates a turbulent viscosity to the turbulence model.
void completer() override
Completes the turbulence model: calls Modele_turbulence_scal_base::completer().
friend class Entree
Definition Objet_U.h:71
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual const Nom & le_nom() const
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
Definition Objet_U.cpp:317
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
class Probleme_base It is a Probleme_U that is not a coupling.
virtual const Equation_base & equation(int) const =0
Base class for output streams.
Definition Sortie.h:52
const Objet_U & valeur() const
Definition TRUST_Ref.h:134