TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_front_synt.h
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#ifndef Champ_front_synt_included
17#define Champ_front_synt_included
18
19#include <Ch_front_var_instationnaire_dep.h>
20#include <TRUST_Ref.h>
21
22class Champ_Inc_base;
23
24/*! @brief classe Champ_front_synt Classe derivee de Champ_front_base
25 *
26 * @sa Champ_front_base
27 */
28
29
31{
32 Declare_instanciable(Champ_front_synt);
33
34 const double amp = 1.452762113;
35 const double pi=2.*acos(0.);
36 const double Cmu=0.09;
37
38public:
39
40 int initialiser(double temps, const Champ_Inc_base& inco) override;
41 Champ_front_base& affecter_(const Champ_front_base& ch) override;
42 void mettre_a_jour(double temps) override;
43
44protected :
46
47 DoubleVect moyenne;
48 DoubleVect dir_fluct;
49
50 int nbModes = -10;
51 double lenghtScale= 0.; // echelle integrale en espace
52 double timeScale= 0.; // echelle integrale en temps
53 double turbKinEn= 0.; // energie cinetique turbulente (k)
54 double turbDissRate= 0.; // taux de dissipation turbulente (epsilon)
55 double KeOverKmin= 0.;
56 double ratioCutoffWavenumber= 0.; // au lieu de prendre kappa_mesh comme plus grand nombre d'onde, on prend kappa_mesh/ratioCutoffWavenumber (ratioCutoffWavenumber>1 permet de mieux discretiser les fluctuations => aspect plus lisse)
57 double temps_d_avant_= 0.;
58};
59
60#endif
61
classe Ch_front_var_instationnaire_dep Cette classe abstraite represente un champ sur une frontiere,
Classe Champ_Inc_base.
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
classe Champ_front_synt Classe derivee de Champ_front_base
void mettre_a_jour(double temps) override
NE FAIT RIEN, a surcharger.
Champ_front_base & affecter_(const Champ_front_base &ch) override
Pas code !!
int initialiser(double temps, const Champ_Inc_base &inco) override
Mise a jour du temps.
OBS_PTR(Champ_Inc_base) ref_inco_