TrioCFD 1.9.9_beta
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 // no flux correctly computed by the operators...
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 */
Class Champ_Inc_base.
class Discretisation_base This class represents a spatial discretization scheme, which
Milieu_base & milieu() override
Returns the physical medium of the equation (the Fluide_base upcast to Milieu_base).
OBS_PTR(Fluide_base) le_fluide_
void associer_milieu_base(const Milieu_base &) override
Associates a physical medium with the 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
Reads non-simple-type parameters of an Objet_U from an input stream.
void associer_pb_base(const Probleme_base &pb) override
Associates with the Problem passed as parameter.
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
Prints the equation operators to an output stream, unconditionally.
const Matrice_Morse & matrice_rayo() const
void completer() override
Completes the construction (initialization) of objects associated with the equation.
void discretiser() override
Discretizes the equation.
bool initTimeStep(double dt) override
Allocation and initialization of the unknown and boundary conditions until 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
Returns the operator at the specified index: returns terme_diffusif if i = 0, exits if 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
Returns the discretisation associated with the equation.
int nombre_d_operateurs() const override
class Equation_base The role of an equation is the calculation of one or more fields....
Base class for an incompressible fluid and its properties:
Definition Fluide_base.h:36
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
Matrice class - Generic class in the matrix hierarchy.
Definition Matrice.h:34
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
friend class Entree
Definition Objet_U.h:71
friend class Sortie
Definition Objet_U.h:70
Operateur_Diff Generic class of the hierarchy of operators representing a diffusion.
class Operateur Generic class of the operator hierarchy.
Definition Operateur.h:39
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Semi-transparent radiation problem. Pb_rayo_semi_transp is a Probleme_base with 4 specific features:
class Probleme_base It is a Probleme_U that is not a coupling.
class SolveurSys A SolveurSys represents any class
Definition SolveurSys.h:32