TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_hyd_combinaison.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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_combinaison_included
17#define Modele_turbulence_hyd_combinaison_included
18
19#include <Modele_turbulence_hyd_0_eq_base.h>
20#include <TRUSTTabs_forward.h>
21#include <TRUST_Vector.h>
22#include <Parser_U.h>
23
24/*! @brief Classe Modele_turbulence_hyd_combinaison Classe representant un modele de turbulence exprime a partir d'une combinaison de champs
25 *
26 * et (ou) des variables d espace et de temps pour l equation de Navier Stokes
27 * La syntaxe a respecter est la suivante :
28 * Modele_turbulence combinaison
29 * {
30 * nb_var nb_sources_a_specif
31 * fonction ...
32 * turbulence_paroi ...
33 * }
34 * -Mot cle nb_var :
35 * nb_sources_a_specif est a preciser par l utilisateur : correspond aux nombre
36 * de champs sources qui interviendront dans l expression du modele (0 par defaut)
37 * -Mot cle fonction :
38 * Une expression doit etre specifiee par l utilisateur f(x,y,z,t,nom_champs_sources)
39 * -Mot cle turbulence_paroi :
40 * Choix d une loi de paroi (eventuellement negligeable) a preciser par l utilisateur
41 *
42 *
43 * @sa Modele_turbulence_hyd_0_eq_base
44 */
46{
47 Declare_instanciable_sans_constructeur(Modele_turbulence_hyd_combinaison);
48public:
50
51 void set_param(Param& param) const override;
52 void completer() override;
53 void mettre_a_jour(double) override;
54 int preparer_calcul() override;
56 void calculer_energie_cinetique_turb() override { /* Do nothing */ }
57 inline int nombre_sources() { return nb_var_; }
58
59 // sauter la classe mere
60 int reprendre(Entree& is) override { return Modele_turbulence_hyd_base::reprendre(is); }
61 void imprimer(Sortie& is) const override { return Modele_turbulence_hyd_base::imprimer(is); }
62
63protected:
64 Nom la_fct_; //Contient l expression de la combinaison
65 int nb_var_ = 0;
67 mutable VECT(Parser_U) fxyz_; //Parser utilise pour evaluer la valeur prise par la combinaison
68};
69
70#endif /* Modele_turbulence_hyd_combinaison_included */
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Base class for zero-equation (algebraic) hydraulic turbulence models.
int reprendre(Entree &) override
Restores the wall law from a checkpoint.
virtual void imprimer(Sortie &) const
Performs printing if necessary.
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 imprimer(Sortie &is) const override
Performs printing if necessary.
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
An array of character strings (VECT(Nom)).
Definition Noms.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
class Parser_U Version of the Parser class, deriving from Objet_U.
Definition Parser_U.h:32