TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_rayo_transp.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Modele_rayo_transp_included
17#define Modele_rayo_transp_included
18
19#include <Face_rayo_transp.h>
20#include <TRUST_Vector.h>
21
22class Pb_Fluide_base;
23
25{
26 Declare_instanciable(Modele_rayo_transp);
27public:
29 void mettre_a_jour(double temps);
30 void completer();
34 int postraiter();
35 double flux_radiatif(int num_face_global) const; // 0 < face < nb_faces_de_bord
36
37 inline void associer_processeur_rayonnant(int proc) { processeur_rayonnant_ = proc; }
38 inline Face_rayo_transp& face_rayonnante(int j) { return les_faces_rayonnantes_[j]; }
39 inline const Face_rayo_transp& face_rayonnante(int j) const { return les_faces_rayonnantes_[j]; }
40 inline const Nom& nom_pb_rayonnant() const { return nom_pb_rayonnant_; }
41 inline double relaxation() const { return relaxation_; }
42 inline int processeur_rayonnant() { return processeur_rayonnant_; }
43 inline int processeur_rayonnant() const { return processeur_rayonnant_; }
44 inline int nb_faces_rayonnantes() const { return nb_faces_rayonnantes_; }
45 inline int nb_faces_totales() const { return nb_faces_totales_; }
46 inline int ordre_matrice_fac_forme() const { return ordre_mat_forme_; }
47
48private:
49 void lire_fichiers(Nom& nom1, Nom& nom2);
50 void lire_fichiers(Nom& nom1, Nom& nom2, Nom& nom3);
51 void init_matrice_rayo();
52
53 OBS_PTR(Pb_Fluide_base) pb_fluide_rayo_;
54 VECT(Face_rayo_transp) les_faces_rayonnantes_;
55 int nb_faces_rayonnantes_ = -123, nb_faces_totales_ = -123, ordre_mat_forme_ = -123;
56 double temps_ = -123.; // on garde le temps pour les impressions
57 mutable int deja_imprime_ = 0;
58
59 DoubleTab les_facteurs_de_forme_, matrice_rayo_, les_flux_radiatifs_;
60 mutable IntVect corres_;
61
62 static constexpr double sigma_ = 5.67e-8;
63 double relaxation_ = 1.;
64
65 // Par defaut, on suppose qu'il faut inverser la matrice de rayonnement
66 bool lire_matrice_inv_ = false, fic_mat_ray_inv_bin_ = false;
67 Nom nom_fic_mat_ray_inv_, nom_pb_rayonnant_;
68 int processeur_rayonnant_ = -123;
69};
70
71#endif /* Modele_rayo_transp_included */
void associer_processeur_rayonnant(int proc)
double relaxation() const
Face_rayo_transp & face_rayonnante(int j)
double flux_radiatif(int num_face_global) const
int ordre_matrice_fac_forme() const
int processeur_rayonnant() const
const Nom & nom_pb_rayonnant() const
int nb_faces_rayonnantes() const
void mettre_a_jour(double temps)
void imprimer_flux_radiatifs(Sortie &) const
void associer_pb_fluide_rayo(const Pb_Fluide_base &)
const Face_rayo_transp & face_rayonnante(int j) const
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Sortie
Definition Objet_U.h:75
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55
classe Pb_Fluide_base Cette classe a pour but de disposer d une classe amont pour