|
TrioCFD 1.9.8
TrioCFD documentation
|
#include <PolyMAC_MPFA_discretisation.h>
Public Member Functions | |
| void | grad_u (const Domaine_dis_base &z, const Domaine_Cl_dis_base &zcl, const Champ_Inc_base &ch_vitesse, OWN_PTR(Champ_Fonc_base)&ch) const override |
| Creates a velocity gradient field for PolyMAC_MPFA discretization. | |
| void | taux_cisaillement (const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &, OWN_PTR(Champ_Fonc_base)&) const override |
| Creates a shear rate field for PolyMAC_MPFA discretization. | |
| void | creer_champ_vorticite (const Schema_Temps_base &, const Champ_Inc_base &, OWN_PTR(Champ_Fonc_base)&) const override |
| Creates a vorticity field for PolyMAC_MPFA discretization. | |
| void | residu (const Domaine_dis_base &z, const Champ_Inc_base &ch_inco, OWN_PTR(Champ_Fonc_base)&champ) const override |
| Creates a residue field for equation solving diagnostics. | |
| bool | is_PolyMAC_MPFA () const override |
| bool | is_PolyMAC_HFV () const override |
| bool | is_PolyMAC_CDO () const override |
| Public Member Functions inherited from PolyMAC_HFV_discretisation | |
| void | discretiser_champ (const Motcle &directive, const Domaine_dis_base &z, Nature_du_champ nature, const Noms &nom, const Noms &unite, int nb_comp, int nb_pas_dt, double temps, OWN_PTR(Champ_Inc_base)&champ, const Nom &sous_type=NOM_VIDE) const override |
| Discretisation d'un champ pour le PolyMAC_HFV en fonction d'une directive de discretisation. | |
| void | y_plus (const Domaine_dis_base &z, const Domaine_Cl_dis_base &, const Champ_Inc_base &vitesse, OWN_PTR(Champ_Fonc_base)&ch) const override |
| type_calcul_du_residu | codage_du_calcul_du_residu () const override |
| Nom | get_name_of_type_for (const Nom &class_operateur, const Nom &type_operateur, const Equation_base &eqn, const OBS_PTR(Champ_base) &champ_sup) const override |
| void | discretiser_champ (const Motcle &directive, const Domaine_dis_base &z, Nature_du_champ nature, const Noms &nom, const Noms &unite, int nb_comp, double temps, OWN_PTR(Champ_Fonc_base)&champ) const override |
| Idem que PolyMAC_CDO_discretisation::discretiser_champ(. | |
| void | discretiser_champ (const Motcle &directive, const Domaine_dis_base &z, Nature_du_champ nature, const Noms &nom, const Noms &unite, int nb_comp, double temps, OWN_PTR(Champ_Don_base)&champ) const override |
| Idem que PolyMAC_CDO_discretisation::discretiser_champ(. | |
| Public Member Functions inherited from PolyMAC_CDO_discretisation | |
| Nom | domaine_cl_dis_type () const override |
| void | distance_paroi (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Fonc_base)&) const |
| void | distance_paroi_globale (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Fonc_base)&) const override |
| Nom | get_name_of_type_for (const Nom &class_operateur, const Nom &type_operateur, const Equation_base &eqn, const OBS_PTR(Champ_base) &champ_sup) const override |
| bool | is_poly_family () const override |
| Public Member Functions inherited from Discret_Thyd | |
| void | set_param (Param ¶m) const override |
| virtual void | check_param () |
| Domaine_dis_base & | discretiser () const override |
| void | vitesse (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&, int nb_comp=1) const |
| void | translation (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Fonc_base)&) const |
| void | entcor (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Fonc_base)&) const |
| void | pression (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&) const |
| void | pression_en_pa (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&) const |
| void | divergence_U (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&) const |
| void | gradient_P (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&, int nb_comp=1) const |
| void | concentration (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&, int=1, const Nom nom_champ="concentration") const |
| void | diametre_hydraulique_face (const Domaine_dis_base &, const DoubleVect &, const Schema_Temps_base &, OWN_PTR(Champ_Fonc_base)&) const |
| void | section_passage (const Domaine_dis_base &, const DoubleVect &, const Schema_Temps_base &, OWN_PTR(Champ_Fonc_base)&) const |
| virtual void | proprietes_physiques_fluide_Ostwald (const Domaine_dis_base &, Fluide_Ostwald &, const Navier_Stokes_std &, const Champ_Inc_base &) const |
| virtual void | grad_T (const Domaine_dis_base &z, const Domaine_Cl_dis_base &zcl, const Champ_Inc_base &eqn, OWN_PTR(Champ_Fonc_base)&ch) const |
| virtual void | h_conv (const Domaine_dis_base &z, const Domaine_Cl_dis_base &zcl, const Champ_Inc_base &eqn, OWN_PTR(Champ_Fonc_base)&ch, Motcle &nom, int temp_ref) const |
| virtual void | critere_Q (const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &, OWN_PTR(Champ_Fonc_base)&) const |
| virtual void | reynolds_maille (const Domaine_dis_base &, const Fluide_base &, const Champ_Inc_base &, OWN_PTR(Champ_Fonc_base)&) const |
| virtual void | courant_maille (const Domaine_dis_base &, const Schema_Temps_base &, const Champ_Inc_base &, OWN_PTR(Champ_Fonc_base)&) const |
| virtual void | estimateur_aposteriori (const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &, const Champ_Inc_base &, const Champ_Don_base &, OWN_PTR(Champ_Fonc_base)&) const |
| Public Member Functions inherited from Discret_Thermique | |
| void | temperature (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&, int nb_comp=1) const |
| void | enthalpie (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&, int nb_comp=1) const |
| void | flux_neutronique (const Schema_Temps_base &sch, Domaine_dis_base &z, OWN_PTR(Champ_Inc_base)&ch, int nb_comp=1) const |
| void | Fluctu_Temperature (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&) const |
| void | Flux_Chaleur_Turb (const Schema_Temps_base &, Domaine_dis_base &, OWN_PTR(Champ_Inc_base)&) const |
| virtual void | t_paroi (const Domaine_dis_base &z, const Domaine_Cl_dis_base &zcl, const Champ_Inc_base &, OWN_PTR(Champ_Fonc_base)&ch) const |
| Public Member Functions inherited from Discretisation_base | |
| void | associer_domaine (const Domaine &dom) |
| virtual void | discretiser_variables () const |
| void | discretiser_champ (const Motcle &directive, const Domaine_dis_base &z, const Nom &nom, const Nom &unite, int nb_comp, int nb_pas_dt, double temps, OWN_PTR(Champ_Inc_base)&champ, const Nom &sous_type=NOM_VIDE) const |
| void | discretiser_champ (const Motcle &directive, const Domaine_dis_base &z, const Nom &nom, const Nom &unite, int nb_comp, double temps, OWN_PTR(Champ_Fonc_base)&champ) const |
| void | discretiser_champ (const Motcle &directive, const Domaine_dis_base &z, const Nom &nom, const Nom &unite, int nb_comp, double temps, OWN_PTR(Champ_Don_base)&champ) const |
| void | nommer_completer_champ_physique (const Domaine_dis_base &domaine_vdf, const Nom &nom_champ, const Nom &unite, Champ_base &champ, const Probleme_base &pbi) const |
| int | verifie_sous_type (Nom &type, const Nom &sous_type, const Motcle &directive) const |
| void | volume_maille (const Schema_Temps_base &sch, const Domaine_dis_base &z, OWN_PTR(Champ_Fonc_base)&ch) const |
| void | mesh_numbering (const Schema_Temps_base &sch, const Domaine_dis_base &z, OWN_PTR(Champ_Fonc_base)&ch) const |
| virtual Nom | get_name_of_type_for (const Nom &class_operateur, const Nom &type_operteur, const Equation_base &eqn, const OBS_PTR(Champ_base)&champ_supp=OBS_PTR(Champ_base)()) const |
| remplit le Nom type en focntion de la classe de operateur, du type de l'operateur et de l'equation | |
| virtual bool | is_ef () const |
| virtual bool | is_dg () const |
| virtual bool | is_vdf () const |
| virtual bool | is_vef () const |
| virtual bool | is_coloc () const |
| const Reorder_Mesh & | get_reorder () const |
| Public Member Functions inherited from Objet_U | |
| ~Objet_U () override | |
| Destructeur, supprime l'objet de la liste d'objets enregistres dans "memoire". | |
| int | numero () const |
| Renvoie l'indice de l'objet dans Memoire::data. | |
| virtual int | duplique () const =0 |
| virtual Sortie & | printOn (Sortie &) const |
| Ecriture de l'objet sur un flot de sortie Methode a surcharger. | |
| virtual Entree & | readOn (Entree &) |
| Lecture d'un Objet_U sur un flot d'entree Methode a surcharger. | |
| virtual unsigned | taille_memoire () const =0 |
| virtual int | est_egal_a (const Objet_U &) const |
| Renvoie 1 si l'objet x et *this sont une seule et meme instance (meme adresse en memoire). | |
| virtual const Nom & | le_nom () const |
| Donne le nom de l'Objet_U Methode a surcharger : renvoie "neant" dans cette implementation. | |
| virtual void | nommer (const Nom &) |
| Donne un nom a l'Objet_U Methode virtuelle a surcharger. | |
| virtual int | reprendre (Entree &) |
| Reprise d'un Objet_U sur un flot d'entree Methode a surcharger. | |
| virtual int | sauvegarder (Sortie &) const |
| Sauvegarde d'un Objet_U sur un flot de sortie Methode a surcharger. | |
| int | get_object_id () const |
| Renvoie l'identifiant unique de l'objet object_id_. | |
| virtual const Type_info * | get_info () const |
| Donne des informations sur le type de l'Objet_U. | |
| const Nom & | que_suis_je () const |
| renvoie la chaine identifiant la classe. | |
| const char * | le_type () const |
| Donne le nom du type de l'Objet_U. | |
| virtual int | change_num (const int *const) |
| Change le numero interne de l'Objet_U. | |
| virtual int | lire_motcle_non_standard (const Motcle &motlu, Entree &is) |
| Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree. | |
| virtual int | associer_ (Objet_U &) |
| Associe l'Objet_U a un autre Objet_U Methode virtuelle a surcharger. | |
| const Interprete & | interprete () const |
| Interprete & | interprete () |
| Public Member Functions inherited from Process | |
| virtual | ~Process () |
Additional Inherited Members | |
| Public Types inherited from Discretisation_base | |
| enum | type_calcul_du_residu { VIA_CONTRIBUER_AU_SECOND_MEMBRE = 0 , VIA_AJOUTER = 1 } |
| Static Public Member Functions inherited from Discretisation_base | |
| static void | creer_champ (OWN_PTR(Champ_Inc_base)&ch, const Domaine_dis_base &z, const Nom &type, const Nom &nom, const Nom &unite, int nb_comp, int nb_ddl, int nb_pas_dt, double temps, const Nom &directive=NOM_VIDE, const Nom &nom_discretisation=NOM_VIDE) |
| Methode statique qui cree un OWN_PTR(Champ_Inc_base) du type specifie. | |
| static void | creer_champ (OWN_PTR(Champ_Fonc_base)&ch, const Domaine_dis_base &z, const Nom &type, const Nom &nom, const Nom &unite, int nb_comp, int nb_ddl, double temps, const Nom &directive=NOM_VIDE, const Nom &nom_discretisation=NOM_VIDE) |
| Methode statique qui cree un OWN_PTR(Champ_Fonc_base) du type specifie. | |
| static void | creer_champ (OWN_PTR(Champ_Don_base)&ch, const Domaine_dis_base &z, const Nom &type, const Nom &nom, const Nom &unite, int nb_comp, int nb_ddl, double temps, const Nom &directive=NOM_VIDE, const Nom &nom_discretisation=NOM_VIDE) |
| Methode statique qui cree un OWN_PTR(Champ_Don_base) du type specifie. | |
| Static Public Member Functions inherited from Objet_U | |
| static const Nom & | nom_du_cas () |
| Renvoie une reference constante vers le nom du cas. | |
| static Nom & | get_set_nom_du_cas () |
| Renvoie une reference non constante vers le nom du cas (pour pouvoir le modifier). | |
| static const Type_info * | info () |
| Donne des informations sur le type de l'Objet_U. | |
| static const Objet_U & | self_cast (const Objet_U &) |
| methode ajoutee pour caster en python | |
| static Objet_U & | self_cast (Objet_U &) |
| Static Public Member Functions inherited from Process | |
| static int | me () |
| renvoie mon rang dans le groupe de communication courant. | |
| static int | nproc () |
| renvoie le nombre de processeurs dans le groupe courant Voir Comm_Group::nproc() et PE_Groups::current_group() | |
| static bool | is_parallel () |
| static void | exit (int exit_code=-1) |
| Routine de sortie de TRUST dans une region Kokkos. | |
| static double | mp_sum (double) |
| Calcule la somme de x sur tous les processeurs du groupe courant. | |
| static float | mp_sum (float) |
| static trustIdType | mp_sum (trustIdType) |
| Calcule la somme de x sur tous les processeurs du groupe courant. | |
| static double | mp_max (double) |
| static double | mp_min (double) |
| static int | mp_max (int) |
| renvoie le plus grand int i sur l'ensemble des processeurs du groupe courant. | |
| static int | mp_min (int) |
| renvoie le plus petit int i sur l'ensemble des processeurs du groupe courant. | |
| static double | mp_sum_as_double (int v) |
| static trustIdType | mppartial_sum (trustIdType i) |
| Calul de la somme partielle de i sur les processeurs 0 a me()-1 (renvoie 0 sur le processeur 0). | |
| template<typename T> | |
| static void | mp_sum_for_each (T &arg1, T &arg2) |
| C++14 compatible mp_sum_for_each: combine multiple mp_sum calls into one collective operation Usage: mp_sum_for_each(a, b); mp_sum_for_each(a, b, c); mp_sum_for_each(a, b, c, d); mp_sum_for_each(a, b, c, d, e); All arguments must be of the same type (double or int) and are modified in place. Supports 2-5 parameters. | |
| template<typename T> | |
| static void | mp_sum_for_each (T &arg1, T &arg2, T &arg3) |
| template<typename T> | |
| static void | mp_sum_for_each (T &arg1, T &arg2, T &arg3, T &arg4) |
| template<typename T> | |
| static void | mp_sum_for_each (T &arg1, T &arg2, T &arg3, T &arg4, T &arg5) |
| template<typename T> | |
| static void | mp_max_for_each (T &arg1, T &arg2) |
| C++14 compatible mp_max_for_each: combine multiple mp_max calls into one collective operation. | |
| template<typename T> | |
| static void | mp_max_for_each (T &arg1, T &arg2, T &arg3) |
| template<typename T> | |
| static void | mp_max_for_each (T &arg1, T &arg2, T &arg3, T &arg4) |
| template<typename T> | |
| static void | mp_max_for_each (T &arg1, T &arg2, T &arg3, T &arg4, T &arg5) |
| template<typename T> | |
| static void | mp_min_for_each (T &arg1, T &arg2) |
| C++14 compatible mp_min_for_each: combine multiple mp_min calls into one collective operation. | |
| template<typename T> | |
| static void | mp_min_for_each (T &arg1, T &arg2, T &arg3) |
| template<typename T> | |
| static void | mp_min_for_each (T &arg1, T &arg2, T &arg3, T &arg4) |
| template<typename T> | |
| static void | mp_min_for_each (T &arg1, T &arg2, T &arg3, T &arg4, T &arg5) |
| template<typename _TYPE_> | |
| static void | mp_sum_for_each_item (TRUSTArray< _TYPE_ > &x, int n=-1) |
| template<typename _TYPE_> | |
| static void | mp_max_for_each_item (TRUSTArray< _TYPE_ > &x, int n=-1) |
| template<typename _TYPE_> | |
| static void | mp_min_for_each_item (TRUSTArray< _TYPE_ > &x, int n=-1) |
| static bool | mp_and (bool) |
| Calcule le 'et' logique de b sur tous les processeurs du groupe courant. | |
| static bool | mp_or (bool) |
| static int | check_int_overflow (trustIdType) |
| static int | je_suis_maitre () |
| renvoie 1 si on est sur le processeur maitre du groupe courant (c'est a dire me() == 0), 0 sinon. | |
| static KOKKOS_INLINE_FUNCTION void | Kokkos_exit (const char *) |
| Routine de sortie de TRUST dans une region Kokkos. | |
| static int | node_master () |
| renvoie 1 si on est sur le processeur maitre du noeud numa, 0 sinon. | |
| static void | exit (const Nom &message, int exit_code=-1) |
| static bool | is_sequential () |
| static void | barrier () |
| Synchronise tous les processeurs du groupe courant (attend que tous les processeurs soient arrives a la barriere). | |
| static void | abort () |
| Routine de sortie de Trio-U sur une erreur abort(). | |
| static Sortie & | Journal (int message_level=0) |
| Renvoie un objet statique de type Sortie qui sert de journal d'evenements. | |
| static double | ram_processeur () |
| static void | imprimer_ram_totale (int all_process=0) |
| static bool | force_single_file (const int ranks, const Nom &filename) |
| Static Public Attributes inherited from Objet_U | |
| static double | precision_geom = 1e-10 |
| static constexpr bool | HAS_POINTER = false |
| static int | dimension =0 |
| static int | format_precision_geom =11 |
| static int | axi =0 |
| static int | bidim_axi =0 |
| static int | DEACTIVATE_SIGINT_CATCH =0 |
| static Type_info | info_obj |
| static bool | disable_TU =false |
| Flag to disable or not the writing of the .TU files. | |
| static bool | stat_per_proc_perf_log =false |
| Flag to enable the writing of the statistics detailed per processor in _csv.TU file. | |
| Static Public Attributes inherited from Process | |
| static int | exception_sur_exit =0 |
| static int | multiple_files =5120 |
| Protected Member Functions inherited from Discretisation_base | |
| OBS_PTR (Domaine) le_domaine_ | |
| Protected Member Functions inherited from Objet_U | |
| Objet_U () | |
| Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_), et enregistre l'objet en "memoire". | |
| Objet_U (const Objet_U &) | |
| Constructeur par copie. | |
| const Objet_U & | operator= (const Objet_U &) |
| Operateur= : ne fait rien (on conserve le numero et l'identifiant). | |
| Protected Attributes inherited from Discretisation_base | |
| Reorder_Mesh | reorder_ |
| Helper object to renumber entities (nodes, elems, faces) if requested. | |
| Static Protected Attributes inherited from Discretisation_base | |
| static const Motcle | DEMANDE_DESCRIPTION = Motcle("demande_description") |
| static const Nom | NOM_VIDE = Nom("-") |
Definition at line 21 of file PolyMAC_MPFA_discretisation.h.
|
overridevirtual |
Creates a vorticity field for PolyMAC_MPFA discretization.
This method creates and initializes a vorticity field, which represents the curl of the velocity field (∇ × u). The field structure depends on the spatial dimension.
| sch | Time scheme (used for temporal integration context) | |
| ch_vitesse | Velocity field (must be Champ_Face_PolyMAC_MPFA) | |
| [out] | ch | Output vorticity field (will be typed as Champ_Fonc_Elem_PolyMAC_MPFA_rot) |
Vorticity field structure by dimension:
Reimplemented from Discret_Thyd.
Definition at line 158 of file PolyMAC_MPFA_discretisation.cpp.
|
overridevirtual |
Creates a velocity gradient field for PolyMAC_MPFA discretization.
This method creates and initializes a gradient field of the velocity field, computing the tensor ∇u where u is the velocity field. The resulting field contains all components of the velocity gradient tensor.
| z | Discretized domain (must be Domaine_PolyMAC_MPFA) | |
| zcl | Discretized boundary conditions domain (must be Domaine_Cl_PolyMAC_family) | |
| ch_vitesse | Velocity field (must be Champ_Face_PolyMAC_MPFA) | |
| [out] | ch | Output gradient field (will be typed as grad_Champ_Face_PolyMAC_MPFA) |
The gradient field components are named according to spatial dimension:
Where phase corresponds to each line component of the velocity field.
Reimplemented from PolyMAC_HFV_discretisation.
Definition at line 60 of file PolyMAC_MPFA_discretisation.cpp.
|
inlineoverridevirtual |
Reimplemented from PolyMAC_HFV_discretisation.
Definition at line 32 of file PolyMAC_MPFA_discretisation.h.
|
inlineoverridevirtual |
Reimplemented from PolyMAC_HFV_discretisation.
Definition at line 31 of file PolyMAC_MPFA_discretisation.h.
|
inlineoverridevirtual |
Reimplemented from Discretisation_base.
Definition at line 30 of file PolyMAC_MPFA_discretisation.h.
|
overridevirtual |
Creates a residue field for equation solving diagnostics.
This method creates a field to store the residue of an equation system, which is useful for monitoring convergence and numerical solution quality. The residue represents the difference between the left and right hand sides of the discretized equation.
| z | Discretized domain | |
| ch_inco | Unknown field for which the residue is computed | |
| [out] | champ | Output residue field |
Reimplemented from PolyMAC_HFV_discretisation.
Definition at line 222 of file PolyMAC_MPFA_discretisation.cpp.
|
overridevirtual |
Creates a shear rate field for PolyMAC_MPFA discretization.
This method creates and initializes a field representing the shear rate magnitude, which is derived from the velocity gradient tensor. The shear rate is computed as the magnitude of the strain rate tensor.
| z | Discretized domain (must be Domaine_PolyMAC_MPFA) | |
| zcl | Discretized boundary conditions domain | |
| ch_vitesse | Velocity field (must be Champ_Face_PolyMAC_MPFA) | |
| [out] | ch | Output shear rate field (will be typed as Champ_Fonc_Elem_PolyMAC_MPFA_TC) |
The shear rate field contains one scalar component per phase, named "Taux_cisaillement_phase" where phase is the phase index.
Reimplemented from Discret_Thyd.
Definition at line 112 of file PolyMAC_MPFA_discretisation.cpp.