TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Source_PDF_EF.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Source_PDF_EF_included
17#define Source_PDF_EF_included
18
19#include <Navier_Stokes_std.h>
20#include <Source_PDF_base.h>
21
22#include <TRUST_Ref.h>
23#include <Matrice.h>
24
25class Probleme_base;
26class Domaine_Cl_EF;
27class Domaine_EF;
28
30{
31
32 Declare_instanciable(Source_PDF_EF);
33
34public:
35 void associer_pb(const Probleme_base& ) override;
36 DoubleTab& ajouter_(const DoubleTab&, DoubleTab&) const override;
37 DoubleTab& ajouter_(const DoubleTab&, DoubleTab&, const int) const override ;
38 void contribuer_a_avec(const DoubleTab&, Matrice_Morse&) const override;
39 void verif_ajouter_contrib(const DoubleTab& variable, Matrice_Morse& matrice) const ;
40 void multiply_coeff_volume(DoubleTab&) const override;
41 void test(Matrice&) const;
43 void volume_source_term_PDF(DoubleTab&) override;
44
45 void correct_pressure(const DoubleTab&,DoubleTab&,const DoubleTab&) const override ;
46 void correct_incr_pressure(const DoubleTab&,DoubleTab&) const override ;
47
48 int impr(Sortie&) const override;
49 // void ouvrir_fichier_partage(EcrFicPartage&, const Nom&, const Nom&) const;
50 // void imprimer_ustar_yplus__mean_only(Sortie&, const Nom& ) const override;
51
52 // Methodes de l interface des champs postraitables
53 void creer_champ(const Motcle& motlu) override;
54 const Champ_base& get_champ(const Motcle& nom) const override;
55 bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const override;
56 bool has_champ(const Motcle& nom) const override;
57 void get_noms_champs_postraitables(Noms& nom,Option opt=NONE) const override;
58 void filtre_CLD(DoubleTab&) const override;
59
60protected:
66 OBS_PTR(Domaine_EF) le_dom_EF;
67 OBS_PTR(Domaine_Cl_EF) le_dom_Cl_EF;
68 void associer_domaines(const Domaine_dis_base& ,const Domaine_Cl_dis_base& ) override;
70
71 DoubleVect tab_u_star_ibm_; //!< valeurs des u* IBM calculees localement
72 DoubleVect tab_y_plus_ibm_; //!< valeurs des d+ IBM calculees localement
73 mutable OWN_PTR(Champ_Fonc_base) champ_u_star_ibm_; //!< Champ pour postraitement
74 mutable OWN_PTR(Champ_Fonc_base) champ_y_plus_ibm_; //!< Champ pour postraitement
75};
76
77#endif
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_EF
Definition Domaine_EF.h:59
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
Classe Matrice Classe generique de la hierarchie des matrices.
Definition Matrice.h:34
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
Classe de base des flux de sortie.
Definition Sortie.h:52
void calculer_variable_imposee_hybrid() override
void test(Matrice &) const
void filtre_CLD(DoubleTab &) const override
const Champ_base & get_champ(const Motcle &nom) const override
void correct_incr_pressure(const DoubleTab &, DoubleTab &) const override
DoubleTab & ajouter_(const DoubleTab &, DoubleTab &) const override
void calculer_variable_imposee_elem_fluid() override
DoubleVect tab_u_star_ibm_
valeurs des u* IBM calculees localement
OWN_PTR(Champ_Fonc_base) champ_y_plus_ibm_
Champ pour postraitement.
void creer_champ(const Motcle &motlu) override
DoubleVect tab_y_plus_ibm_
valeurs des d+ IBM calculees localement
void associer_pb(const Probleme_base &) override
void verif_ajouter_contrib(const DoubleTab &variable, Matrice_Morse &matrice) const
void multiply_coeff_volume(DoubleTab &) const override
void compute_indicateur_nodal_champ_aire() override
void calculer_variable_imposee_mean_grad() override
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
OBS_PTR(Domaine_Cl_EF) le_dom_Cl_EF
void associer_domaines(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
void calculer_vitesse_imposee_power_law_tbl() override
OWN_PTR(Champ_Fonc_base) champ_u_star_ibm_
Champ pour postraitement.
void calculer_vitesse_imposee_power_law_tbl_u_star() override
void correct_pressure(const DoubleTab &, DoubleTab &, const DoubleTab &) const override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution a la matrice implicite des termes sources par defaut pas de contribution
void volume_source_term_PDF(DoubleTab &) override
void updateChampRho()
OBS_PTR(Domaine_EF) le_dom_EF
int impr(Sortie &) const override
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
class Source_PDF_base Base class for the source terms for the penalisation of the momentum in the Imm...