TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Eq_rayo_semi_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 Eq_rayo_semi_transp_included
17#define Eq_rayo_semi_transp_included
18
19#include <Rayo_semi_transp_solver_base.h>
20#include <Operateur_Diff.h>
21#include <Matrice_Morse.h>
22#include <TRUST_Ref.h>
23
25class Milieu_base;
26class Fluide_base;
27class Motcle;
28
30{
31 Declare_instanciable(Eq_rayo_semi_transp);
32public:
33
34 void set_param(Param& titi) const override;
35 int lire_motcle_non_standard(const Motcle&, Entree&) override;
36 bool initTimeStep(double dt) override;
37 void discretiser() override;
38 void completer() override;
39 void get_noms_champs_postraitables(Noms& nom,Option opt=NONE) const override;
41
42 bool resoudre();
43 void resoudre(double temps);
44
45 void associer_pb_base(const Probleme_base& pb) override;
46 void associer_milieu_base(const Milieu_base&) override;
47 Milieu_base& milieu() override;
48 const Milieu_base& milieu() const override;
49
50 const Operateur& operateur(int) const override;
51 Operateur& operateur(int) override;
52
53 inline const Pb_rayo_semi_transp& pb_rayo_semi_transp() const { return pb_rayo_semi_transp_.valeur(); }
54 inline Pb_rayo_semi_transp& pb_rayo_semi_transp() { return pb_rayo_semi_transp_.valeur(); }
55 inline const Champ_Inc_base& inconnue() const override { return irradiance_.valeur(); }
56 inline Champ_Inc_base& inconnue() override { return irradiance_.valeur(); }
57 inline void associer_fluide(const Fluide_base& un_fluide) { le_fluide_ = un_fluide; }
58 inline Fluide_base& fluide() { return le_fluide_.valeur(); }
59 inline const Fluide_base& fluide() const { return le_fluide_.valeur(); }
60 inline int nombre_d_operateurs() const override { return 1; }
61
62 // pas de flux calcule correctement par les operateurs...
63 inline int impr(Sortie& os) const override { return 1; }
64
65 void Mat_Morse_to_Mat_Bloc(Matrice& matrice_tmp);
67
69 inline const Operateur_Diff& terme_diffusif_rayo() const { return terme_diffusif_; }
70
72 inline const Matrice_Morse& matrice_rayo() const { return la_matrice_; }
73
74 inline SolveurSys& solveur_rayo() { return solveur_; }
75 inline const SolveurSys& solveur_rayo() const { return solveur_; }
76
77protected:
78 OBS_PTR(Fluide_base) le_fluide_;
79 OBS_PTR(Pb_rayo_semi_transp) pb_rayo_semi_transp_;
80 OWN_PTR(Champ_Inc_base) irradiance_;
82
86};
87
88#endif /* Eq_rayo_semi_transp_included */
Classe Champ_Inc_base.
classe Discretisation_base Cette classe represente un schema de discretisation en espace,...
Milieu_base & milieu() override
Renvoie le milieu physique de l'equation (le Fluide_base upcaste en Milieu_base).
OBS_PTR(Fluide_base) le_fluide_
void associer_milieu_base(const Milieu_base &) override
Associe un milieu physique a l'equation.
void set_param(Param &titi) const override
const Pb_rayo_semi_transp & pb_rayo_semi_transp() const
OBS_PTR(Pb_rayo_semi_transp) pb_rayo_semi_transp_
Matrice_Morse & matrice_rayo()
const SolveurSys & solveur_rayo() const
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
void associer_pb_base(const Probleme_base &pb) override
S'associe au Probleme passe en parametre.
Pb_rayo_semi_transp & pb_rayo_semi_transp()
OWN_PTR(Rayo_semi_transp_solver_base) rayo_solv_
void dimensionner_Mat_Bloc_Morse_Sym(Matrice &matrice_tmp)
int impr(Sortie &os) const override
Imprime les operateurs de l'equation sur un flot de sortie, de facon inconditionnelle.
const Matrice_Morse & matrice_rayo() const
void completer() override
Complete la construction (initialisation) des objets associes a l'equation.
void discretiser() override
Discretise l'equation.
bool initTimeStep(double dt) override
Allocation et initialisation de l'inconnue et des CLs jusqu'a present+dt.
void associer_fluide(const Fluide_base &un_fluide)
const Fluide_base & fluide() const
void Mat_Morse_to_Mat_Bloc(Matrice &matrice_tmp)
SolveurSys & solveur_rayo()
OWN_PTR(Champ_Inc_base) irradiance_
Champ_Inc_base & inconnue() override
Operateur_Diff & terme_diffusif_rayo()
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
const Operateur & operateur(int) const override
Renvoie l'operateur specifie par son index: renvoie terme_diffusif si i = 0.
Operateur_Diff terme_diffusif_
const Champ_Inc_base & inconnue() const override
const Operateur_Diff & terme_diffusif_rayo() const
const Discretisation_base & discretisation() const
Renvoie la discretisation associee a l'equation.
int nombre_d_operateurs() const override
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
classe Fluide_base Cette classe represente un d'un fluide incompressible ainsi que
Definition Fluide_base.h:38
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
Classe Matrice Classe generique de la hierarchie des matrices.
Definition Matrice.h:34
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
classe Operateur_Diff Classe generique de la hierarchie des operateurs representant un terme
classe Operateur Classe generique de la hierarchie des operateurs.
Definition Operateur.h:39
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Le Pb_rayo_semi_transp est un Probleme_base qui a 4 particularites : * Son equation doit etre typee e...
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
class SolveurSys Un SolveurSys represente n'importe qu'elle classe
Definition SolveurSys.h:32