TrioCFD 1.9.8
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 */
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Classe Modele_turbulence_hyd_0_eq_base Classe de base des modeles a 0 equation.
int reprendre(Entree &) override
Reprend la loi de paroi.
virtual void imprimer(Sortie &) const
Effectue l'impression si cela est necessaire.
int reprendre(Entree &is) override
Reprise d'un Objet_U sur un flot d'entree Methode a surcharger.
void imprimer(Sortie &is) const override
Effectue l'impression si cela est necessaire.
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
classe Parser_U Version de la classe Parser, derivant de Objet_U.
Definition Parser_U.h:32