TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Ch_front_Vortex.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 Ch_front_Vortex_included
17#define Ch_front_Vortex_included
18
19#include <Champ_front_var_instationnaire.h>
20#include <TRUST_Ref.h>
21
22#include <Domaine_forward.h>
23
24/*! @brief classe Ch_fr_Vortex Classe derivee de Champ_front_var qui represente les
25 *
26 * champs aux frontieres calcules suivant la methode des vortex
27 * nval
28 * xi yi zi val_i
29 *
30 * @sa Champ_front_base Champ_front_var
31 */
33{
34 Declare_instanciable_sans_destructeur(Ch_front_Vortex);
35
36public:
37
38 ~Ch_front_Vortex() override;
39 Champ_front_base& affecter_(const Champ_front_base& ch) override;
40 int my_rand();
41 void sauvegarder_vortex();
42 void reprendre_vortex();
43 int initialiser(double temps, const Champ_Inc_base& inco) override;
44 void deplacement_vortex(double ,double ,double ,double ,double ,double& ,double& );
45 void mettre_a_jour(double ) override;
46
47protected :
48
49 int init = 1;
50 int first_rand = 1;
51 OBS_PTR(Domaine) mon_domaine;
53 double nu = -100., utau = -100.;
54 double R = -100., Ox = -100., Oy = -100., Oz = -100., surf = -100.;
55 int nb_vortex = -1;
56 double temps = -100.;
57
58 double nx = -100., ny = -100., nz = -100.; // composantes normales du repere associe a la frontiere
59 double t1x = -100., t1y = -100., t1z = -100.; // composantes tangentielles : n.t1 = 0
60 double t2x = -100., t2y = -100., t2z = -100.; // composantes tangentielles : t2 = n ^ t1 = 0
61
62 DoubleVect xvort; // coordonnees x des vortex
63 DoubleVect yvort; // coordonnees y des vortex
64 DoubleVect zvort; // coordonnees z des vortex
65 DoubleVect tvort; // durees de vie des vortex
66 DoubleVect svort; // signes de la vorticite des vortex
67 ArrOfInt fvort; // numero faces contenant le centre du vortex
68 DoubleVect gamma; // intensite du vortex
69 DoubleVect sigma; // longeur caracteristique du vortex
70
71 DoubleVect u, v, w, u_moy, dudy, k, eps;
72
73 DoubleVect Wk; // processus de Wiener
74};
75
76#endif
77
classe Ch_fr_Vortex Classe derivee de Champ_front_var qui represente les
~Ch_front_Vortex() override
void deplacement_vortex(double, double, double, double, double, double &, double &)
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialisation en debut de calcul.
void mettre_a_jour(double) override
NE FAIT RIEN, a surcharger.
OBS_PTR(Domaine) mon_domaine
Champ_front_base & affecter_(const Champ_front_base &ch) override
Renvoie l'objet upcaste en Champ_front_base&.
Classe Champ_Inc_base.
classe Champ_front_var_instationnaire Classe derivee de Champ_front_var qui represente les champs aux
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31