TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Source_PDF_VDF.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_VDF_included
17#define Source_PDF_VDF_included
18
19
20#include <Navier_Stokes_std.h>
21#include <Source_PDF_base.h>
22
23#include <TRUST_Ref.h>
24#include <Matrice.h>
25
26class Probleme_base;
27class Domaine_Cl_VDF;
28class Domaine_VDF;
29
31{
32
33 Declare_instanciable(Source_PDF_VDF);
34
35public:
36 void associer_pb(const Probleme_base& ) override;
37 DoubleTab& ajouter_(const DoubleTab&, DoubleTab&) const override;
38 DoubleTab& ajouter_(const DoubleTab&, DoubleTab&, const int) const override ;
39 void contribuer_a_avec(const DoubleTab&, Matrice_Morse&) const override;
40 void verif_ajouter_contrib(const DoubleTab& variable, Matrice_Morse& matrice) const ;
41 void multiply_coeff_volume(DoubleTab&) const override;
42 void test(Matrice&) const;
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_VDF) le_dom_VDF;
67 OBS_PTR(Domaine_Cl_VDF) le_dom_Cl_VDF;
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
class Domaine_Cl_VDF
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VDF
Definition Domaine_VDF.h:64
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
DoubleTab & ajouter_(const DoubleTab &, DoubleTab &) const override
void calculer_vitesse_imposee_power_law_tbl_u_star() override
void compute_indicateur_nodal_champ_aire() override
void calculer_variable_imposee_elem_fluid() override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution a la matrice implicite des termes sources par defaut pas de contribution
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
DoubleVect tab_u_star_ibm_
valeurs des u* IBM calculees localement
void associer_domaines(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
void updateChampRho()
void correct_pressure(const DoubleTab &, DoubleTab &, const DoubleTab &) const override
void correct_incr_pressure(const DoubleTab &, DoubleTab &) const override
void calculer_variable_imposee_hybrid() override
void calculer_vitesse_imposee_power_law_tbl() override
void filtre_CLD(DoubleTab &) const override
DoubleVect tab_y_plus_ibm_
valeurs des d+ IBM calculees localement
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
OWN_PTR(Champ_Fonc_base) champ_y_plus_ibm_
Champ pour postraitement.
OWN_PTR(Champ_Fonc_base) champ_u_star_ibm_
Champ pour postraitement.
void calculer_variable_imposee_mean_grad() override
void associer_pb(const Probleme_base &) override
void multiply_coeff_volume(DoubleTab &) const override
OBS_PTR(Domaine_VDF) le_dom_VDF
int impr(Sortie &) const override
void creer_champ(const Motcle &motlu) override
const Champ_base & get_champ(const Motcle &nom) const override
void test(Matrice &) const
void verif_ajouter_contrib(const DoubleTab &variable, Matrice_Morse &matrice) const
OBS_PTR(Domaine_Cl_VDF) le_dom_Cl_VDF
class Source_PDF_base Base class for the source terms for the penalisation of the momentum in the Imm...