TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_scal_Prandtl.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_scal_Prandtl_included
17#define Modele_turbulence_scal_Prandtl_included
18
19#include <Modele_turbulence_scal_diffturb_base.h>
20#include <Parser_U.h>
21
22/*! @brief Scalar turbulence model using the turbulent Prandtl number to compute turbulent diffusivity:
23 *
24 * alpha_turb = visco_turb / Prdt_turb
25 *
26 * @sa Mod_Turb_scal_diffuturb_base
27 */
29{
30 Declare_instanciable(Modele_turbulence_scal_Prandtl);
31public:
32 void mettre_a_jour(double) override;
33 void set_param(Param&) const override;
34
35protected:
36 double LePrdt_ = 0.9;
37 Nom LePrdt_fct_; // string storing the Prandtl expression from the data file
38 Nom definition_fonction_; // string storing the function definition from the data file
39 Parser_U fonction_; // function to compute alpha_t
40 Parser_U fonction1_; // function to compute spatially varying Prandtl number
41 public_for_cuda
43};
44
45#endif /* Modele_turbulence_scal_Prandtl_included */
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Scalar turbulence model using the turbulent Prandtl number to compute turbulent diffusivity:
virtual public_for_cuda Champ_Fonc_base & calculer_diffusivite_turbulente()
Computes the turbulent diffusivity.
void mettre_a_jour(double) override
Computes the turbulent diffusivity and applies the wall law.
Base class for scalar turbulence models that compute turbulent diffusivity as:
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
class Parser_U Version of the Parser class, deriving from Objet_U.
Definition Parser_U.h:32