TrioCFD 1.9.9_beta
TrioCFD documentation
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 class Ch_fr_Vortex Derived class of Champ_front_var that represents
25 *
26 * boundary fields computed according to the vortex method
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.; // normal components of the frame associated with the boundary
59 double t1x = -100., t1y = -100., t1z = -100.; // tangential components: n.t1 = 0
60 double t2x = -100., t2y = -100., t2z = -100.; // tangential components: t2 = n ^ t1 = 0
61
62 DoubleVect xvort; // x coordinates of the vortices
63 DoubleVect yvort; // y coordinates of the vortices
64 DoubleVect zvort; // z coordinates of the vortices
65 DoubleVect tvort; // lifetimes of the vortices
66 DoubleVect svort; // signs of the vorticity of the vortices
67 ArrOfInt fvort; // face numbers containing the center of the vortex
68 DoubleVect gamma; // intensity of the vortex
69 DoubleVect sigma; // characteristic length of the vortex
70
71 DoubleVect u, v, w, u_moy, dudy, k, eps;
72
73 DoubleVect Wk; // Wiener process
74};
75
76#endif
77
class Ch_fr_Vortex Derived class of Champ_front_var that represents
~Ch_front_Vortex() override
void deplacement_vortex(double, double, double, double, double, double &, double &)
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialization at the beginning of calculation.
void mettre_a_jour(double) override
DOES NOTHING, to override.
OBS_PTR(Domaine) mon_domaine
Champ_front_base & affecter_(const Champ_front_base &ch) override
Returns the object upcast to Champ_front_base&.
Class Champ_Inc_base.
class Champ_front_var_instationnaire Derived class from Champ_front_var that represents fields on
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31