TrioCFD 1.9.9_beta
TrioCFD documentation
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 // Methods of the postprocessable fields interface
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_; //!< locally computed IBM u* values
72 DoubleVect tab_y_plus_ibm_; //!< locally computed IBM d+ values
73 mutable OWN_PTR(Champ_Fonc_base) champ_u_star_ibm_; //!< Field for post-processing
74 mutable OWN_PTR(Champ_Fonc_base) champ_y_plus_ibm_; //!< Field for post-processing
75};
76
77#endif
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_EF
Definition Domaine_EF.h:56
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
Matrice class - Generic class in the matrix hierarchy.
Definition Matrice.h:34
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
class Probleme_base It is a Probleme_U that is not a coupling.
Base class for output streams.
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_
locally computed IBM u* values
OWN_PTR(Champ_Fonc_base) champ_y_plus_ibm_
Field for post-processing.
void creer_champ(const Motcle &motlu) override
DoubleVect tab_y_plus_ibm_
locally computed IBM d+ values
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_
Field for post-processing.
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 to the implicit matrix of source terms, by default no 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...