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

class Domaine_VDF More...

#include <Domaine_VDF.h>

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

Public Member Functions

void discretiser () override
 Calls Domaine_VF::discretiser(), computes element gravity centers,.
Faces * creer_faces () override
 Returns a newly allocated Faces_VDF object.
int nb_faces_X () const
int nb_faces_Y () const
int nb_faces_Z () const
int nb_aretes () const
int nb_aretes_joint () const
int nb_aretes_coin () const
int premiere_arete_coin () const
int nb_aretes_bord () const
int premiere_arete_bord () const
int nb_aretes_mixtes () const
int premiere_arete_mixte () const
int nb_aretes_internes () const
int premiere_arete_interne () const
double h_x () const
double h_y () const
double h_z () const
int Qdm (int num_arete, int) const
double face_normales (int, int) const override
int orientation (int) const override
 inline DoubleVect& Domaine_VDF::porosite_face() {
double dist_face (int, int, int k) const
 Returns the distance between two face centers in direction k (Cartesian only).
double dist_norm (int num_face) const override
 Returns the normal distance for an internal face (Cartesian coordinates).
double dist_norm_bord (int num_face) const override
 Returns the normal distance for a boundary face (Cartesian coordinates).
double dist_face_elem0 (int, int) const override
 Returns the distance between the center of a face and the center of face_voisins(face,0) (Cartesian coordinates only).
double dist_face_elem1 (int, int) const override
 Returns the distance between the center of a face and the center of face_voisins(face,1) (Cartesian coordinates only).
double dist_face_axi (int, int, int k) const
 Returns the distance between two face centers in direction k (cylindrical coordinates).
double dist_face_period (int, int, int) const
double dist_norm_period (int, double) const
double dist_face_elem0_period (int, int, double) const override
double dist_face_elem1_period (int, int, double) const override
double dist_norm_axi (int num_face) const
 Returns the normal distance for an internal face (cylindrical coordinates).
double dist_norm_bord_axi (int num_face) const
 Returns the normal distance for a boundary face (cylindrical coordinates).
double dist_face_elem0_axi (int, int) const
 Returns the distance between the center of a face and the center of face_voisins(face,0) (cylindrical coordinates only).
double dist_face_elem1_axi (int, int) const
 Returns the distance between the center of a face and the center of face_voisins(face,1) (cylindrical coordinates only).
double distance_face (int, int, int k) const
 Returns the distance between the centers of two same-orientation faces.
double distance_normale (int num_face) const
 Returns the normal distance for any face (cylindrical or Cartesian coordinates).
double dist_elem (int, int, int) const
double dist_elem_period (int, int, int) const
double dim_elem (int, int) const
double dim_face (int, int) const
double delta_C (int) const
int amont_amont (int, int) const
int face_amont_princ (int, int) const
int face_amont_conj (int, int, int) const
int face_bord_amont (int, int, int) const
 Returns the neighboring face, accounting for the possibility that it may be a boundary face.
int elem_voisin (int, int, int) const
IntVect & orientation ()
 inline double Domaine_VDF::porosite_face(int i) const {
const IntVect & orientation () const override
IntTab & Qdm ()
const IntTab & Qdm () const
void calculer_volumes_entrelaces ()
 Fills the staggered volumes (volumes entrelaces).
void modifier_pour_Cl (const Conds_lim &cl) override
void creer_elements_fictifs (const Domaine_Cl_dis_base &) override
 Fills the face_voisins_fictifs_ array. Does NOT create fictitious elements.
DoubleVect & dist_norm_bord (DoubleVect &, const Nom &nom_bord) const
void init_virt_e_map () const
virtual DoubleTab & face_normales ()
virtual const DoubleTab & face_normales () const
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 &)
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 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
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 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 ()

Public Attributes

std::map< std::array< int, 2 >, int > virt_e_map

Protected Member Functions

void prepare_elem_non_std (Faces &) override
void compute_sort_key (Faces &, IntTab &sort_key) override
 Override. Compute sorting key so that internal faces are sorted by their orientation first (X, Y, Z).
void renumber_faces (Faces &les_faces, IntTab &sort_key) override
 Override to also renumber orientation_ member.
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.
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.
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

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 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_VDF

Instantiable class derived from Domaine_VF. This class contains the geometric information required by the Finite Difference Volume (VDF) method. The class holds a number of face-related data. All faces are numbered as follows:

  • faces on a Domaine_joint appear first (in the order of the les_joints vector)
    • faces on a Domaine_bord appear next (in the order of the les_bords vector)

internal faces appear last Each face is associated with an integer indicating its orientation. Within each face family (boundary, joint, internal) it is assumed that:

  • the block of faces with equation x = const (orientation 0) comes first
  • the block of faces with equation y = const (orientation 1) comes next
  • the block of faces with equation z = const (orientation 2) comes last For the boundary face block, sub-blocks corresponding to each boundary are preserved. No particular element numbering is required. The notion of edge is introduced for computing diffusive and convective fluxes in the momentum conservation equation. The Qdm array contains the edge/face connectivity. In this array, edges appear in the following order:
  • block of joint edges
  • block of boundary edges
  • block of mixed edges
  • block of internal edges Within each block, edges appear in the order: XY edges, XZ edges, YZ edges.

Definition at line 60 of file Domaine_VDF.h.

Member Function Documentation

◆ amont_amont()

int Domaine_VDF::amont_amont ( int num_face,
int i ) const
inline

Definition at line 671 of file Domaine_VDF.h.

◆ calculer_volumes_entrelaces()

void Domaine_VDF::calculer_volumes_entrelaces ( )

Fills the staggered volumes (volumes entrelaces).

Definition at line 239 of file Domaine_VDF.cpp.

◆ compute_sort_key()

void Domaine_VDF::compute_sort_key ( Faces & les_faces,
IntTab & sort_key )
overrideprotectedvirtual

Override. Compute sorting key so that internal faces are sorted by their orientation first (X, Y, Z).

Reimplemented from Domaine_VF.

Definition at line 86 of file Domaine_VDF.cpp.

◆ creer_elements_fictifs()

void Domaine_VDF::creer_elements_fictifs ( const Domaine_Cl_dis_base & zcldisbase)
overridevirtual

Fills the face_voisins_fictifs_ array. Does NOT create fictitious elements.

Parameters
zcldisbaseThe discretized boundary condition domain.

Reimplemented from Domaine_dis_base.

Definition at line 870 of file Domaine_VDF.cpp.

◆ creer_faces()

Faces * Domaine_VDF::creer_faces ( )
overridevirtual

Returns a newly allocated Faces_VDF object.

Returns
Pointer to the newly created Faces_VDF instance.

Reimplemented from Domaine_VF.

Definition at line 72 of file Domaine_VDF.cpp.

◆ delta_C()

double Domaine_VDF::delta_C ( int elem) const
inline

Definition at line 660 of file Domaine_VDF.h.

◆ dim_elem()

double Domaine_VDF::dim_elem ( int n1,
int k ) const
inline

Definition at line 643 of file Domaine_VDF.h.

◆ dim_face()

double Domaine_VDF::dim_face ( int n1,
int k ) const
inline

Definition at line 651 of file Domaine_VDF.h.

◆ discretiser()

void Domaine_VDF::discretiser ( )
overridevirtual

Calls Domaine_VF::discretiser(), computes element gravity centers,.

fills element/face connectivities, reorders face/element connectivities so that el1 is on the left and el2 on the right, computes volumetric and surface porosities, generates edges, and computes mesh steps.

Reimplemented from Domaine_dis_base.

Definition at line 144 of file Domaine_VDF.cpp.

◆ dist_elem()

double Domaine_VDF::dist_elem ( int n1,
int n2,
int k ) const
inline

Definition at line 626 of file Domaine_VDF.h.

◆ dist_elem_period()

double Domaine_VDF::dist_elem_period ( int n1,
int n2,
int k ) const
inline

Definition at line 634 of file Domaine_VDF.h.

◆ dist_face()

double Domaine_VDF::dist_face ( int fac1,
int fac2,
int k ) const
inline

Returns the distance between two face centers in direction k (Cartesian only).

Parameters
fac1Index of the first face.
fac2Index of the second face.
kDirection index.
Returns
Distance xv(fac2,k) - xv(fac1,k).

Definition at line 306 of file Domaine_VDF.h.

◆ dist_face_axi()

double Domaine_VDF::dist_face_axi ( int fac1,
int fac2,
int k ) const
inline

Returns the distance between two face centers in direction k (cylindrical coordinates).

Parameters
fac1Index of the first face.
fac2Index of the second face.
kDirection index.
Returns
Arc-length distance (in direction k) between the two face centers.

Definition at line 323 of file Domaine_VDF.h.

◆ dist_face_elem0()

double Domaine_VDF::dist_face_elem0 ( int num_face,
int n0 ) const
inlineoverridevirtual

Returns the distance between the center of a face and the center of face_voisins(face,0) (Cartesian coordinates only).

Parameters
num_faceFace index.
n0Index of the element on side 0.
Returns
Distance from the face center to the element center.

Reimplemented from Domaine_VF.

Definition at line 777 of file Domaine_VDF.h.

◆ dist_face_elem0_axi()

double Domaine_VDF::dist_face_elem0_axi ( int num_face,
int n0 ) const
inline

Returns the distance between the center of a face and the center of face_voisins(face,0) (cylindrical coordinates only).

Parameters
num_faceFace index.
n0Index of the element on side 0.
Returns
Arc-length or Euclidean distance from the face center to the element center.

Definition at line 802 of file Domaine_VDF.h.

◆ dist_face_elem0_period()

double Domaine_VDF::dist_face_elem0_period ( int num_face,
int n0,
double l ) const
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 848 of file Domaine_VDF.h.

◆ dist_face_elem1()

double Domaine_VDF::dist_face_elem1 ( int num_face,
int n1 ) const
inlineoverridevirtual

Returns the distance between the center of a face and the center of face_voisins(face,1) (Cartesian coordinates only).

Parameters
num_faceFace index.
n1Index of the element on side 1.
Returns
Distance from the element center to the face center.

Reimplemented from Domaine_VF.

Definition at line 790 of file Domaine_VDF.h.

◆ dist_face_elem1_axi()

double Domaine_VDF::dist_face_elem1_axi ( int num_face,
int n1 ) const
inline

Returns the distance between the center of a face and the center of face_voisins(face,1) (cylindrical coordinates only).

Parameters
num_faceFace index.
n1Index of the element on side 1.
Returns
Arc-length or Euclidean distance from the element center to the face center.

Definition at line 824 of file Domaine_VDF.h.

◆ dist_face_elem1_period()

double Domaine_VDF::dist_face_elem1_period ( int num_face,
int n1,
double l ) const
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 858 of file Domaine_VDF.h.

◆ dist_face_period()

double Domaine_VDF::dist_face_period ( int fac1,
int fac2,
int k ) const
inline

Definition at line 868 of file Domaine_VDF.h.

◆ dist_norm()

double Domaine_VDF::dist_norm ( int num_face) const
inlineoverridevirtual

Returns the normal distance for an internal face (Cartesian coordinates).

Parameters
num_faceFace index.
Returns
Distance between the centers of the two neighboring cells.

Reimplemented from Domaine_VF.

Definition at line 346 of file Domaine_VDF.h.

◆ dist_norm_axi()

double Domaine_VDF::dist_norm_axi ( int num_face) const
inline

Returns the normal distance for an internal face (cylindrical coordinates).

Parameters
num_faceFace index.
Returns
Arc-length normal distance between the two neighboring cell centers.

Definition at line 362 of file Domaine_VDF.h.

◆ dist_norm_bord() [1/2]

DoubleVect & Domaine_VDF::dist_norm_bord ( DoubleVect & dist,
const Nom & nom_bord ) const

Definition at line 904 of file Domaine_VDF.cpp.

◆ dist_norm_bord() [2/2]

double Domaine_VDF::dist_norm_bord ( int num_face) const
inlineoverridevirtual

Returns the normal distance for a boundary face (Cartesian coordinates).

Parameters
num_faceFace index.
Returns
Distance between the neighboring cell center and the boundary face.

Reimplemented from Domaine_VF.

Definition at line 390 of file Domaine_VDF.h.

◆ dist_norm_bord_axi()

double Domaine_VDF::dist_norm_bord_axi ( int num_face) const
inline

Returns the normal distance for a boundary face (cylindrical coordinates).

Parameters
num_faceFace index.
Returns
Arc-length normal distance between the neighboring cell center and the boundary face.

Definition at line 410 of file Domaine_VDF.h.

◆ dist_norm_period()

double Domaine_VDF::dist_norm_period ( int num_face,
double l ) const
inline

Definition at line 840 of file Domaine_VDF.h.

◆ distance_face()

double Domaine_VDF::distance_face ( int n1,
int n2,
int k ) const
inline

Returns the distance between the centers of two same-orientation faces.

Parameters
n1Index of the first face.
n2Index of the second face.
kDirection index.
Returns
Distance between the two face centers (arc-length in cylindrical, Euclidean in Cartesian).

Definition at line 449 of file Domaine_VDF.h.

◆ distance_normale()

double Domaine_VDF::distance_normale ( int num_face) const
inline

Returns the normal distance for any face (cylindrical or Cartesian coordinates).

Parameters
num_faceFace index.
Returns
Normal distance between the two neighboring cell centers, or between a cell center and the boundary.

Definition at line 473 of file Domaine_VDF.h.

◆ elem_voisin()

int Domaine_VDF::elem_voisin ( int elem,
int face,
int indic ) const
inline

Definition at line 765 of file Domaine_VDF.h.

◆ face_amont_conj()

int Domaine_VDF::face_amont_conj ( int num_face,
int k,
int i ) const
inline

Definition at line 694 of file Domaine_VDF.h.

◆ face_amont_princ()

int Domaine_VDF::face_amont_princ ( int num_face,
int i ) const
inline

Definition at line 682 of file Domaine_VDF.h.

◆ face_bord_amont()

int Domaine_VDF::face_bord_amont ( int num_face,
int k,
int i ) const
inline

Returns the neighboring face, accounting for the possibility that it may be a boundary face.

Parameters
num_faceFace index.
kDirection index of the conjugate face.
iSide index (0 or 1).
Returns
Index of the neighboring face element.

Definition at line 733 of file Domaine_VDF.h.

◆ face_normales() [1/3]

virtual DoubleTab & Domaine_VF::face_normales ( )
inlinevirtual

Reimplemented from Domaine_VF.

Definition at line 48 of file Domaine_VF.h.

◆ face_normales() [2/3]

virtual const DoubleTab & Domaine_VF::face_normales ( ) const
inlinevirtual

Reimplemented from Domaine_VF.

Definition at line 49 of file Domaine_VF.h.

◆ face_normales() [3/3]

double Domaine_VDF::face_normales ( int num_face,
int k ) const
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 181 of file Domaine_VDF.h.

◆ h_x()

double Domaine_VDF::h_x ( ) const
inline

Definition at line 602 of file Domaine_VDF.h.

◆ h_y()

double Domaine_VDF::h_y ( ) const
inline

Definition at line 610 of file Domaine_VDF.h.

◆ h_z()

double Domaine_VDF::h_z ( ) const
inline

Definition at line 618 of file Domaine_VDF.h.

◆ init_virt_e_map()

void Domaine_VDF::init_virt_e_map ( ) const

Definition at line 937 of file Domaine_VDF.cpp.

◆ modifier_pour_Cl()

void Domaine_VDF::modifier_pour_Cl ( const Conds_lim & cl)
overridevirtual

Implements Domaine_dis_base.

Definition at line 549 of file Domaine_VDF.cpp.

◆ nb_aretes()

int Domaine_VDF::nb_aretes ( ) const
inline

Definition at line 586 of file Domaine_VDF.h.

◆ nb_aretes_bord()

int Domaine_VDF::nb_aretes_bord ( ) const
inline

Definition at line 546 of file Domaine_VDF.h.

◆ nb_aretes_coin()

int Domaine_VDF::nb_aretes_coin ( ) const
inline

Definition at line 530 of file Domaine_VDF.h.

◆ nb_aretes_internes()

int Domaine_VDF::nb_aretes_internes ( ) const
inline

Definition at line 578 of file Domaine_VDF.h.

◆ nb_aretes_joint()

int Domaine_VDF::nb_aretes_joint ( ) const
inline

Definition at line 522 of file Domaine_VDF.h.

◆ nb_aretes_mixtes()

int Domaine_VDF::nb_aretes_mixtes ( ) const
inline

Definition at line 562 of file Domaine_VDF.h.

◆ nb_faces_X()

int Domaine_VDF::nb_faces_X ( ) const
inline

Definition at line 201 of file Domaine_VDF.h.

◆ nb_faces_Y()

int Domaine_VDF::nb_faces_Y ( ) const
inline

Definition at line 209 of file Domaine_VDF.h.

◆ nb_faces_Z()

int Domaine_VDF::nb_faces_Z ( ) const
inline

Definition at line 217 of file Domaine_VDF.h.

◆ orientation() [1/3]

IntVect & Domaine_VDF::orientation ( )
inline

inline double Domaine_VDF::porosite_face(int i) const {

return porosite_face_[i]; }

Definition at line 240 of file Domaine_VDF.h.

◆ orientation() [2/3]

const IntVect & Domaine_VDF::orientation ( ) const
inlineoverridevirtual

Reimplemented from Domaine_VF.

Definition at line 248 of file Domaine_VDF.h.

◆ orientation() [3/3]

int Domaine_VDF::orientation ( int i) const
inlineoverridevirtual

inline DoubleVect& Domaine_VDF::porosite_face() {

return porosite_face_; }

inline const DoubleVect& Domaine_VDF::porosite_face() const {

return porosite_face_; }

inline DoubleVect& Domaine_VDF::porosite_elem() {

return porosite_elem_; }

inline const DoubleVect& Domaine_VDF::porosite_elem() const {

return porosite_elem_; }

inline double Domaine_VDF::porosite_elem(int i) const {

return porosite_elem_[i]; }

Reimplemented from Domaine_VF.

Definition at line 291 of file Domaine_VDF.h.

◆ premiere_arete_bord()

int Domaine_VDF::premiere_arete_bord ( ) const
inline

Definition at line 554 of file Domaine_VDF.h.

◆ premiere_arete_coin()

int Domaine_VDF::premiere_arete_coin ( ) const
inline

Definition at line 538 of file Domaine_VDF.h.

◆ premiere_arete_interne()

int Domaine_VDF::premiere_arete_interne ( ) const
inline

Definition at line 594 of file Domaine_VDF.h.

◆ premiere_arete_mixte()

int Domaine_VDF::premiere_arete_mixte ( ) const
inline

Definition at line 570 of file Domaine_VDF.h.

◆ prepare_elem_non_std()

void Domaine_VDF::prepare_elem_non_std ( Faces & )
overrideprotectedvirtual

Override to do nothing. Not necessary for VDF.

Reimplemented from Domaine_VF.

Definition at line 80 of file Domaine_VDF.cpp.

◆ Qdm() [1/3]

IntTab & Domaine_VDF::Qdm ( )
inline

Definition at line 176 of file Domaine_VDF.h.

◆ Qdm() [2/3]

const IntTab & Domaine_VDF::Qdm ( ) const
inline

Definition at line 193 of file Domaine_VDF.h.

◆ Qdm() [3/3]

int Domaine_VDF::Qdm ( int num_arete,
int i ) const
inline

Definition at line 225 of file Domaine_VDF.h.

◆ renumber_faces()

void Domaine_VDF::renumber_faces ( Faces & les_faces,
IntTab & sort_key )
overrideprotectedvirtual

Override to also renumber orientation_ member.

Reimplemented from Domaine_VF.

Definition at line 120 of file Domaine_VDF.cpp.

Member Data Documentation

◆ virt_e_map

std::map<std::array<int, 2>, int> Domaine_VDF::virt_e_map
mutable

Definition at line 136 of file Domaine_VDF.h.


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