TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_hyd_LES_base.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Modele_turbulence_hyd_LES_base_included
17#define Modele_turbulence_hyd_LES_base_included
18
19#include <Modele_turbulence_hyd_0_eq_base.h>
20
21/*! @brief Classe Modele_turbulence_hyd_LES_base Class representing the subgrid-scale turbulence model for the
22 *
23 * Navier-Stokes equations.
24 *
25 * @sa Modele_turbulence_hyd_0_eq_base
26 */
28{
29 Declare_base_sans_constructeur(Modele_turbulence_hyd_LES_base);
30public:
32 void set_param(Param& param) const override;
34 int preparer_calcul() override;
35 void completer() override;
37 void calculer_energie_cinetique_turb() override;
38
39 // skip the parent class
40 int reprendre(Entree& is) override { return Modele_turbulence_hyd_base::reprendre(is); }
41 void imprimer(Sortie& is) const override { return Modele_turbulence_hyd_base::imprimer(is); }
42
43protected:
44 DoubleVect l_;
46
47 static constexpr double CSM1 = 0.063, CSMS1 = 0.112; // turbulent viscosity constant for subgrid-scale model, selective subgrid-scale
48 static constexpr double CSM2 = 0.37; // turbulent kinetic energy constant for subgrid-scale model
49};
50
51#endif /* Modele_turbulence_hyd_LES_base_included */
Base class for zero-equation (algebraic) hydraulic turbulence models.
virtual void calculer_longueurs_caracteristiques()=0
int reprendre(Entree &is) override
Restores an Objet_U from an input stream. Virtual method to override.
int preparer_calcul() override
Prepares the computation.
void set_param(Param &param) const override
void imprimer(Sortie &is) const override
Performs printing if necessary.
int reprendre(Entree &) override
Restores the wall law from a checkpoint.
virtual void imprimer(Sortie &) const
Performs printing if necessary.
A character string (Nom) in uppercase.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:71
friend class Sortie
Definition Objet_U.h:70
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112