TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
init_forcage_THI.h
1/****************************************************************************
2* Copyright (c) 2019, 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 init_forcage_THI_included
17#define init_forcage_THI_included
18
19#include <IJK_Field_vector.h>
20#include <IJK_Field.h>
21#include <Objet_U.h>
22#include <init_forcage_THI.h>
23#include <string>
24#include <iostream>
25#include <math.h>
26#include <fftw3.h>
27
28#include <Force_ph.h>
29#include <Force_sp.h>
30#include <Random_process.h>
31
32
34{
35
36 Declare_instanciable( init_forcage_THI ) ;
37
38public :
39
40 void compute_initial_chouippe(int nproc_tot,
41 const Domaine_IJK& my_geom,
42 int my_ni, int my_nj, int my_nk,
43 const Domaine_IJK& my_splitting,
44 Nom nom_sauvegarde);
45 // IJK_Field_vector3_double v_);
46
47 void compute_THI_force(const int time_iteration,
48 const double tstep,
49 const double current_time,
50 const Domaine_IJK& my_splitting
51 );
52
53 int get_type_forcage();
56 int activate_forcage(const int current_time_step, const double current_time);
57 int get_semi_gen();
58 ArrOfDouble get_b_flt();
59 IJK_Field_vector3_double get_force_ph();
60 IJK_Field_vector3_double& get_force_ph2();
61
62 void update_advection_velocity(ArrOfDouble& value);
63 void update_advection_length(double dt);
64
65protected :
66 int type_forcage = 0;
69 // GAB : sarebbe più logico in vector3 ma non so come dare un vector3 in un jdd...
71 ArrOfDouble advection_length_;
72 double time_to_be_del_ = 0.;
74 double forcage_t_stop = -1;
75 int mode_min = 0;
76 int mode_max = 0;
77 double amplitude = 1.;
78 double eps_etoile = 0.1;
79 double tL = 0.02;
80
81 int i_offset = 0;
82 int j_offset = 0;
83 int k_offset = 0;
84
85// int random_fixed_;
89
90};
91
92
93
94#endif /* Init_spectral_included */
This class encapsulates all the information related to the eulerian mesh for TrioIJK.
Definition Domaine_IJK.h:47
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55
ArrOfDouble advection_length_
ArrOfDouble get_b_flt()
void update_advection_length(double dt)
void compute_initial_chouippe(int nproc_tot, const Domaine_IJK &my_geom, int my_ni, int my_nj, int my_nk, const Domaine_IJK &my_splitting, Nom nom_sauvegarde)
ArrOfDouble advection_velocity_
Random_process random_
void update_advection_velocity(ArrOfDouble &value)
void compute_THI_force(const int time_iteration, const double tstep, const double current_time, const Domaine_IJK &my_splitting)
IJK_Field_vector3_double & get_force_ph2()
int activate_forcage(const int current_time_step, const double current_time)
IJK_Field_vector3_double get_force_ph()