TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Paroi_flux_impose_rayo_transp_VEF.cpp
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#include <Modele_rayo_transp.h>
17#include <Paroi_flux_impose_rayo_transp_VEF.h>
18#include <Schema_Temps_base.h>
19#include <Champ_Uniforme.h>
20#include <Probleme_base.h>
21#include <Equation_base.h>
22#include <Milieu_base.h>
23#include <Domaine_VF.h>
24
25Implemente_instanciable(Paroi_flux_impose_rayo_transp_VEF, "Paroi_flux_impose_rayo_transp_VEF", Paroi_flux_impose_rayo_transp);
26
28
30
32{
34
35 const DoubleTab& T_p = mon_dom_cl_dis->equation().inconnue().valeurs();
36 const Front_VF& la_frontiere_VF = ref_cast(Front_VF, frontiere_dis());
37 int ndeb = la_frontiere_VF.num_premiere_face();
38 int nb_faces_bord = la_frontiere_VF.nb_faces();
39
40 for (int numfa = 0; numfa < nb_faces_bord; numfa++)
41 teta_i_[numfa] = T_p(numfa + ndeb);
42}
43
45{
46 const DoubleTab& T_p = mon_dom_cl_dis->equation().inconnue().valeurs();
47 double Temp;
48 const Front_VF& la_frontiere_VF = ref_cast(Front_VF, frontiere_dis());
49 int ndeb = la_frontiere_VF.num_premiere_face();
50 int nb_faces_bord = la_frontiere_VF.nb_faces();
51 int is_relax = 1;
52 if (le_modele_rayo_->relaxation() == 0)
53 is_relax = 0;
54 for (int numfa = 0; numfa < nb_faces_bord; numfa++)
55 {
56 Temp = T_p(numfa + ndeb);
57 double omega = 0.8;
58 if (is_relax == 0)
59 omega = 1.;
60 teta_i_[numfa] = omega * (Temp) + (1. - omega) * teta_i_[numfa];
61 }
62}
virtual Frontiere_dis_base & frontiere_dis()
Renvoie la frontiere discretisee a laquelle les conditions aux limites s'appliquent.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Front_VF
Definition Front_VF.h:36
int nb_faces() const
Definition Front_VF.h:53
int num_premiere_face() const
Definition Front_VF.h:63
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Classe de base des flux de sortie.
Definition Sortie.h:52