TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
IJK_switch_FT.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 IJK_switch_FT_included
17#define IJK_switch_FT_included
18
19#include <IJK_switch.h>
20#include <IJK_Interfaces.h>
21#include <TRUST_List.h>
22#include <init_forcage_THI.h>
23#include <Force_sp.h>
24#include <corrections_qdm.h>
25#include <IJK_Thermals.h>
26
28{
29 Declare_instanciable(Switch_FT_double);
30 friend class IJK_Thermals;
31public:
32 // Copy ctor is forbidden:
34 {
35 Cerr << "Erreur Switch_double(Switch_double&) interdit a cause du membre IJK_Interfaces" << finl;
37 }
39 {
40 Cerr << "Erreur Switch_double=() interdit a cause du membre IJK_Interfaces" << finl;
42 return *this;
43 }
44
45protected:
46 // Override from base class:
47 void initialise() override;
48 void init_thermals() override;
49 void prepare_run() override;
50 void set_param(Param& param) const override;
51 void ecrire_fichier_reprise(const char *fichier_sauvegarde, const bool and_lata=true) override;
52 void set_param_reprise(Param& param) override;
53 void prepare_thermals(const Nom lata_name) override;
54 void ecrire_header_lata(const Nom lata_name) override; // const;
55 void compute_and_write_extra_fields(const Nom& lata_name, DoubleTab& coeff_i, IntTab Indice_i,
56 DoubleTab& coeff_j, IntTab Indice_j,
57 DoubleTab& coeff_k, IntTab Indice_k) override;
59 DoubleTab& coeff_i, IntTab Indice_i,
60 DoubleTab& coeff_j, IntTab Indice_j,
61 DoubleTab& coeff_k, IntTab Indice_k) override;
62
63 // Le maillage des interfaces:
66
67 // GAB : gabriel.ramirez@cea.fr
72 double vap_velocity_tmoy_ = 0.;
73 double liq_velocity_tmoy_ = 0.;
74 double qdm_source_ = 0.;
80 ArrOfDouble liste_instants_;
81 ArrOfDouble liste_vap_dl_; // liste des v_v * dt
82 ArrOfDouble liste_liq_dl_; // liste des v_l * dt
83 double reprise_v_target_ = 0.;
84 int list_index_ = 0.;
86};
87
88#endif
: class IJK_Interfaces
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Cette classe est a la classe C++ ofstream ce que la classe Sortie est a la classe C++ ostream Elle re...
Definition SFichier.h:27
corrections_qdm old_qdm_corrections_
friend class IJK_Thermals
ArrOfDouble liste_instants_
init_forcage_THI old_forcage_
void set_param_reprise(Param &param) override
init_forcage_THI new_forcage_
Switch_FT_double(const Switch_FT_double &x)
void initialise() override
IJK_Interfaces interfaces_
double vap_velocity_tmoy_
int old_ijk_splitting_ft_extension_
void compute_and_write_extra_fields_direct(SFichier &file, DoubleTab &coeff_i, IntTab Indice_i, DoubleTab &coeff_j, IntTab Indice_j, DoubleTab &coeff_k, IntTab Indice_k) override
double liq_velocity_tmoy_
void prepare_run() override
ArrOfDouble liste_liq_dl_
double vitesse_upstream_reprise_
double velocity_bubble_old_
corrections_qdm new_qdm_corrections_
void ecrire_header_lata(const Nom lata_name) override
const Switch_FT_double & operator=(const Switch_FT_double &)
ArrOfDouble liste_vap_dl_
void set_param(Param &param) const override
void prepare_thermals(const Nom lata_name) override
void init_thermals() override
void ecrire_fichier_reprise(const char *fichier_sauvegarde, const bool and_lata=true) override
IJK_Thermals thermals_
void compute_and_write_extra_fields(const Nom &lata_name, DoubleTab &coeff_i, IntTab Indice_i, DoubleTab &coeff_j, IntTab Indice_j, DoubleTab &coeff_k, IntTab Indice_k) override
double last_source_qdm_update_time_
: class corrections_qdm