TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Domaine_VF_inst Class Reference

class Domaine_VF_inst More...

#include <Domaine_VF_inst.h>

Inheritance diagram for Domaine_VF_inst:
[legend]
Collaboration diagram for Domaine_VF_inst:
[legend]

Public Member Functions

double face_normales (int, int) const override
const DoubleTab & face_normales () const override
DoubleTab & face_normales () override
Public Member Functions inherited from Domaine_VF
void calculer_face_surfaces (const DoubleVect &surfaces)
virtual const DoubleVect & face_surfaces () const
virtual double face_surfaces (int i) const
virtual double surface (int i) const
void discretiser () override
 Generates the faces and builds the boundaries.
void discretiser_no_face () override
void typer_discretiser_ss_domaine (int i) override
void infobord ()
void info_elem_som ()
void marquer_faces_double_contrib (const Conds_lim &)
virtual void typer_elem (Domaine &)
virtual void remplir_face_voisins_fictifs (const Domaine_Cl_dis_base &)
virtual Faces * creer_faces ()
 Returns new(Faces)! It is overridden by Domaine_VDF for example.
int nb_joints () const
int premiere_face_int () const
 A face is internal if and only if it separates two elements.
int nb_faces () const
 Returns the total number of faces.
int nb_faces_tot () const
 Returns the total number of faces.
int nb_som_face () const
 Returns the number of vertices per face.
int nb_arete_face () const
 Returns the number of edges per face.
int nb_faces_bord () const
 Returns the number of faces on which boundary conditions are applied:
int nb_faces_bord_tot () const
 Returns the total number of faces (real + virtual) on which boundary conditions are applied:
int premiere_face_bord () const
 Returns the index of the first face on which boundary conditions are applied:
int nb_faces_internes () const
 A face is internal if and only if it separates two elements.
double xv (int num_face, int k) const
double xp (int num_elem, int k) const
double xa (int num_arete, int k) const
int face_numero_bord (int num_face) const
IntTab & face_numero_bord ()
const IntTab & face_numero_bord () const
void remplir_face_numero_bord ()
ArrOfInt & est_face_bord ()
const ArrOfInt & est_face_bord () const
virtual const IntVect & orientation () const
virtual int orientation (int) const
virtual int orientation_si_definie (int) const
DoubleTab normalized_boundaries_outward_vector (int global_face_number, double scale_factor) const
 Compute the normalized boundary outward vector associated to the face global_face_number and eventually scaled by scale_factor.
DoubleTab & xv ()
const DoubleTab & xv () const
DoubleTab & xp ()
const DoubleTab & xp () const
DoubleTab & xa ()
const DoubleTab & xa () const
DoubleVect & volumes_entrelaces ()
const DoubleVect & volumes_entrelaces () const
double volumes_entrelaces (int num_face) const
const DoubleTab & volumes_entrelaces_dir () const
DoubleTab & volumes_entrelaces_dir ()
const Joint & joint (int i) const
Joint & joint (int i)
Frontiere_dis_basefrontiere_dis (int) override
 Returns the i-th discrete boundary.
const Frontiere_dis_basefrontiere_dis (int) const override
 Returns the i-th discrete boundary.
int nb_frontiere_dis () const
const Front_VFfront_VF (int i) const
double volumes (int i) const
double inverse_volumes (int i) const
int face_voisins (int num_face, int i) const
 Returns the neighbouring element of num_face in direction i.
int elem_faces (int i, int j) const
 Returns the index of the i-th face of element num_elem; the face numbering convention is.
int face_sommets (int i, int j) const
 Returns the index of the i-th vertex of face num_face.
DoubleVect & volumes ()
DoubleVect & inverse_volumes ()
const DoubleVect & volumes () const
const DoubleVect & inverse_volumes () const
IntTab & face_voisins () override
 Returns the face-element connectivity array; see above.
const IntTab & face_voisins () const override
 See above.
const IntTab & face_voisins_fictifs () const
void face_voisins_reel_fictif (int face, int &el0, int &elf) const
 Returns in el0 the index of the interior element; returns in elf the index of the fictitious element (-1 if it does not exist).
IntTab & elem_faces ()
 Returns the element/face connectivity array.
const IntTab & elem_faces () const
 See above.
ArrOfInt & faces_doubles ()
 Returns 1 for faces belonging to a periodic boundary or a shared item, 0 by default.
const ArrOfInt & faces_doubles () const
 See above.
IntTab & face_sommets () override
 Returns the face/vertex connectivity array.
const IntTab & face_sommets () const override
 See above.
IntTab & face_aretes () override
 Returns the face/edge connectivity array.
const IntTab & face_aretes () const override
 See above.
void modifier_pour_Cl (const Conds_lim &) override
int numero_face_local (int face, int elem) const
int numero_sommet_local (int som, int elem) const
const IntTab & get_num_fac_loc () const
int get_num_fac_loc (int, int) const
void construire_num_fac_loc ()
const ArrOfInt & ind_faces_virt_bord () const
int est_une_face_virt_bord (int) const
 Returns 1 if face is a virtual boundary face, 0 otherwise.
int fbord (int f) const
void construire_face_virt_pe_num ()
 Fills in the face_virt_pe_num_ array (see comment in Domaine_VF.h).
const IntTab & face_virt_pe_num () const
void creer_tableau_faces (Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) const
void creer_tableau_aretes (Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) const
void creer_tableau_faces_bord (Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) const
const MD_Vectormd_vector_faces_bord () const
const MD_Vectormd_vector_faces () const
const MD_Vectormd_vector_aretes () const
virtual const DoubleTab & xv_bord () const
DoubleTab calculer_xgr () const
 Computes the xgr array for the computation of moments of forces at boundaries.
virtual void get_position (DoubleTab &positions) const
virtual double compute_L1_norm (const DoubleVect &val_source, const bool basis_function, const int order) const
virtual double compute_L2_norm (const DoubleVect &val_source, const bool basis_function, const int order) const
virtual void compute_average (const DoubleVect &val_source, double &sum, double &volume, const bool basis_function, const int order) const
virtual void compute_average_porosity (const DoubleVect &val_source, const DoubleVect &porosity, double &sum, double &volume, const bool basis_function, const int order) const
virtual void get_nb_integ_points (IntTab &nelem) const
virtual void get_ind_integ_points (IntTab &nelem) const
virtual int get_max_nb_integ_points () const
double dot (const double *a, const double *b, const double *ma=nullptr, const double *mb=nullptr) const
std::array< double, 3 > cross (int dima, int dimb, const double *a, const double *b, const double *ma=nullptr, const double *mb=nullptr) const
virtual double dist_norm (int) const
virtual double dist_norm_bord (int) const
virtual double dist_face_elem0 (int, int) const
virtual double dist_face_elem1 (int, int) const
virtual double dist_face_elem0_period (int, int, double) const
virtual double dist_face_elem1_period (int, int, double) const
void init_dist_paroi_globale (const Conds_lim &conds_lim) override
 Method inspired by Raccord_distant_homogene::initialise.
const DoubleTab & normale_paroi_elem () const
const DoubleTab & normale_paroi_faces () const
void build_mc_face_mesh () const
 Build the MEDCoupling face mesh. It is always made of polygons (in 3D) for simplicity purposes. Face numbers (and node numbers) are the same as in TRUST.
void build_mc_dual_mesh () const
 Build the dual mesh of the domain for post-processing of face fields.
int oriente_normale (int f, int e) const
const IntTab & get_face_voisins_dual () const
int get_face_voisins_dual (const int i, const int j) const
void build_map_mc_Cmesh (const bool with_faces) override
Public Member Functions inherited from Domaine_dis_base
const Domaine & domaine () const
Domaine & domaine ()
int nb_elem () const
int nb_elem_tot () const
int nb_som () const
int nb_som_tot () const
int nb_front_Cl () const
int nombre_de_sous_domaines_dis () const
const Sous_domaine_dis_basesous_domaine_dis (int i) const
Sous_domaine_dis_basesous_domaine_dis (int i)
void ecrire_noms_bords (Sortie &) const
 Writes the boundary names to an output stream.
int rang_frontiere (const Nom &)
int rang_frontiere (const Nom &) const
 Returns the rank of the boundary of Name nom Returns -1 if no boundary is named nom.
const Frontiere_dis_basefrontiere_dis (const Nom &) const
 Returns the boundary of Name nom.
Frontiere_dis_basefrontiere_dis (const Nom &)
void associer_domaine (const Domaine &)
 Associates a Domain with the object.
void discretiser_root (const Nom &typ)
void completer (const Discretisation_base &disc)
virtual void creer_elements_fictifs (const Domaine_Cl_dis_base &)
virtual const DoubleTab & y_elem () const
virtual const DoubleTab & y_faces () const
const Champ_Fonc_basevolume_maille () const
const Champ_Fonc_basemesh_numbering () const
void get_noms_champs_postraitables (Noms &nom, Option opt=NONE) const override
void creer_champ (const Motcle &motlu) override
void creer_champ (const Motcle &, const Probleme_base &)
const Champ_baseget_champ (const Motcle &) const override
bool has_champ (const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
bool has_champ (const Motcle &nom) const override
void set_reorder (const Reorder_Mesh &r)
Public Member Functions inherited from Champs_compris_interface
virtual ~Champs_compris_interface ()
virtual bool has_champ (const Motcle &nom, OBS_PTR(Champ_base)&ref_champ) const =0
Public Member Functions inherited from Objet_U
 ~Objet_U () override
 Destructor. Removes the object from the list of objects registered in "memory".
int numero () const
 Returns the index of the object in Memoire::data.
virtual int duplique () const =0
virtual SortieprintOn (Sortie &) const
 Writes the object to an output stream. Virtual method to override.
virtual EntreereadOn (Entree &)
 Reads an Objet_U from an input stream. Virtual method to override.
virtual unsigned taille_memoire () const =0
virtual int est_egal_a (const Objet_U &) const
 Returns 1 if x and *this are the same instance (same memory address).
virtual const Nomle_nom () const
 Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual void nommer (const Nom &)
 Assigns a name to the Objet_U. Virtual method to override.
virtual int reprendre (Entree &)
 Restores an Objet_U from an input stream. Virtual method to override.
virtual int sauvegarder (Sortie &) const
 Saves an Objet_U to an output stream. Virtual method to override.
int get_object_id () const
 Returns the unique identifier of the object (object_id_).
virtual const Type_infoget_info () const
 Returns type information for the Objet_U.
const Nomque_suis_je () const
 Returns the string identifying the class.
const char * le_type () const
 Returns the type name of the Objet_U.
virtual int change_num (const int *const)
 Changes the internal number of the Objet_U.
virtual int lire_motcle_non_standard (const Motcle &motlu, Entree &is)
 Reads non-simple-type parameters of an Objet_U from an input stream.
virtual int associer_ (Objet_U &)
 Associates the Objet_U with another Objet_U. Virtual method to override.
const Interpreteinterprete () const
Interpreteinterprete ()
Public Member Functions inherited from Process
virtual ~Process ()

Additional Inherited Members

Static Public Member Functions inherited from Objet_U
static const Nomnom_du_cas ()
 Returns a constant reference to the case name. This method is static.
static Nomget_set_nom_du_cas ()
 Returns a non-constant reference to the case name (to allow modification). This method is static.
static const Type_infoinfo ()
 Returns type information for the Objet_U (static version).
static const Objet_Uself_cast (const Objet_U &)
 Method added for casting in Python.
static Objet_Uself_cast (Objet_U &)
Static Public Member Functions inherited from Process
static int me ()
 Returns the rank of the local processor in the current communication group. See Comm_Group::rank() and PE_Groups::current_group().
static int nproc ()
 Returns the number of processors in the current group. See Comm_Group::nproc() and PE_Groups::current_group().
static bool is_parallel ()
static void exit (int exit_code=-1)
 Exit routine for TRUST within a Kokkos region.
static double mp_sum (double)
 Computes the sum of x over all processors in the current group.
static float mp_sum (float)
static trustIdType mp_sum (trustIdType)
 Computes the sum of x over all processors in the current group.
static double mp_max (double)
static double mp_min (double)
static int mp_max (int)
 Returns the maximum value of x across all processors in the current group.
static int mp_min (int)
 Returns the minimum value of x across all processors in the current group.
static double mp_sum_as_double (int v)
static trustIdType mppartial_sum (trustIdType i)
 Computes the partial sum of x over processors 0 to me()-1 (returns 0 on processor 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)
 Computes the logical AND of b across all processors in the current group.
static bool mp_or (bool)
static int check_int_overflow (trustIdType)
static int je_suis_maitre ()
 Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
static KOKKOS_INLINE_FUNCTION void Kokkos_exit (const char *)
 Exit routine for TRUST within a Kokkos region.
static int node_master ()
 Returns 1 if on the NUMA node master processor, 0 otherwise.
static void exit (const Nom &message, int exit_code=-1)
static bool is_sequential ()
static void barrier ()
 Synchronizes all processors in the current group (waits until all processors have reached the barrier).
static void abort ()
 Abort routine for TRUST on a fatal error.
static SortieJournal (int message_level=0)
 Returns a static Sortie object used as an event journal.
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 Domaine_VF
double volume_entrelace_axi (double r_face, double r_elem, double axis_length) const
 VECT (Front_VF) les_bords_
void order_faces (Faces &les_faces)
 This method (that may be overriden in various discretisations) is used to order faces according to the constraints of each discretisation. By default we identify the non-standard faces and put them at the begining of the face list. Non-standard faces are faces whose control volumes are affected by boundary conditions.
virtual void prepare_elem_non_std (Faces &les_faces)
 Identify non-standard elements (will be used later to identify non standard faces) Some discretisation (like VDF) do not need this. See override.
virtual void compute_sort_key (Faces &les_faces, IntTab &sort_key)
 Generate an IntTab (sort_key) with two columns allowing to sort the faces along a specific order. sort_key(i, 0) gives the sorting key sort_key(i, 1) gives the original face index.
void sort_along_zcurve (const Faces &les_faces, IntTab &sort_key) const
 Tweak the face sorting keys so that internal faces (=standard faces) follow a Z-curve indexing scheme. Assumption: all special faces are already at the begining of the array in sort_key (see caller of this method) See class Reorder_Mesh.
virtual void renumber_faces (Faces &les_faces, IntTab &sort_key)
 Re-index faces according to the new order given by 'sort_key'.
Protected Member Functions inherited from Domaine_dis_base
 OBS_PTR (Domaine) le_dom_
 OBS_PTR (Reorder_Mesh) reorder_
 An observer to the Reorder_Mesh option filled in the discretisation itself.
 OWN_PTR (Champ_Fonc_base) volume_maille_
 OWN_PTR (Champ_Fonc_base) mesh_numbering_
Protected Member Functions inherited from Objet_U
 Objet_U ()
 Default constructor: assigns a unique identifier to the object (object_id_) and registers the object in "memory" by giving it a num_obj number.
 Objet_U (const Objet_U &)
 Copy constructor.
const Objet_Uoperator= (const Objet_U &)
 Assignment operator: does nothing (the number and identifier are preserved).
virtual void set_param (Param &) const
Protected Attributes inherited from Domaine_VF
DoubleVect volumes_
DoubleVect inverse_volumes_
DoubleVect volumes_entrelaces_
DoubleTab volumes_entrelaces_dir_
DoubleTab face_normales_
IntTab face_voisins_
IntTab face_voisins_fictifs_
DoubleTab xp_
DoubleTab xv_
DoubleTab xv_bord_
IntTab elem_faces_
IntTab face_sommets_
IntTab face_aretes_
DoubleTab xa_
IntTab face_numero_bord_
MD_Vector md_vector_faces_
MD_Vector md_vector_faces_front_
MD_Vector md_vector_aretes_
IntTab num_fac_loc_
ArrOfInt faces_doubles_
ArrOfInt est_face_bord_
IntTab face_virt_pe_num_
DoubleTab n_y_elem_
DoubleTab n_y_faces_
int nb_elem_std_ =-10
int nb_faces_std_ =-10
IntVect rang_elem_non_std_
IntTab face_dual_
 For each face f, face_dual_(f, j) returns the element built on the left and right of the face in the dual mesh. Same sorting as face_voisins_.
Protected Attributes inherited from Domaine_dis_base
TRUST_Vector< OWN_PTR(Sous_domaine_dis_base)> les_sous_domaines_dis_
int dist_paroi_initialisee_ = 0
DoubleTab y_elem_
DoubleTab y_faces_
Champs_compris champs_compris_

Detailed Description

class Domaine_VF_inst

 Instantiable class derived from Domaine_VF. This class does nothing!!!!
 It simply allows calling methods of type Champ_Inc_base::affecter with a domaine_dis containing a reference to a domain.

Definition at line 29 of file Domaine_VF_inst.h.

Member Function Documentation

◆ face_normales() [1/3]

const DoubleTab & Domaine_VF_inst::face_normales ( ) const
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 38 of file Domaine_VF_inst.h.

◆ face_normales() [2/3]

DoubleTab & Domaine_VF_inst::face_normales ( )
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 43 of file Domaine_VF_inst.h.

◆ face_normales() [3/3]

double Domaine_VF_inst::face_normales ( int ,
int  ) const
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 33 of file Domaine_VF_inst.h.


The documentation for this class was generated from the following file: