TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Connectivite_frontieres.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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#ifndef Connectivite_frontieres_included
16#define Connectivite_frontieres_included
17
18#include <TRUSTTab.h>
19#include <TRUST_Ref.h>
20
21class Domaine_VF;
22
24{
25 Declare_instanciable(Connectivite_frontieres);
26public:
27 virtual void associer_domaine_vf(const Domaine_VF& domaine_vf);
28 const IntTab& faces_voisins() const;
29 const ArrOfInt& face_cond_lim() const;
30 const IntTab& def_face_aretes() const;
31
32protected:
33 void remplir_def_face_aretes(const Domaine_VF& domaine_vf);
34 void remplir_faces_voisins(const Domaine_VF& domaine_vf);
35
36 OBS_PTR(Domaine_VF) refdomaine_vf_;
37
38 // Tableau faces_voisins_ :
39 // dimension(0) = domaine.nb_faces_frontiere()
40 // dimension(1) = nombres d'aretes d'une face de bord
41 // Contenu : faces_voisins_(i,j) est l'indice dans le domaine
42 // de la face voisine de la face frontiere i par l'arete j.
43 // L'indice i est le numero d'une face frontiere reelle.
44 // L'indice j est un numero d'arete tel qu'il est defini dans
45 // def_face_aretes_
46 // Il existe toujours une facette voisine, eventuellement
47 // c'est une facette virtuelle (indice superieur a nb_faces()).
49
50 // Tableau face_cond_lim_ :
51 // size_array() = nb_faces_frontiere()
52 // Contenu : numero de la condition aux limites de la face
53 // ( entre 0 et domaine.nb_front_Cl() ) pour les faces reelles.
55
56 // Tableau def_face_aretes_ :
57 // dimension(0) = nombre d'aretes par face
58 // dimension(1) = 2
59 // Contenu :
60 // Ce tableau donne la definition des aretes d'une face :
61 // L'arete i va du sommet def_face_arete_(i,0) au sommet def_face_arete_(i,1) en 3D.
62 // En 2D, c'est les aretes sont reduites a des points, def_face_arete_(i,1) = -1
63 // Le numero du sommet est un numero local sur la face (compris entre 0
64 // et le nombre de sommets par face). Exemple:
65 // i_sommet = def_face_arete_(i_arete, 0); // numero du sommet sur la face
66 // num_sommet = domaine_vf.face_sommets(num_face, i_sommet); // numero du sommet dans le domaine
68
69};
70
71inline const IntTab& Connectivite_frontieres::faces_voisins() const
72{
73 assert(refdomaine_vf_);
74 return faces_voisins_;
75}
76
77inline const IntTab& Connectivite_frontieres::def_face_aretes() const
78{
79 assert(refdomaine_vf_);
80 return def_face_aretes_;
81}
82
83#endif
void remplir_faces_voisins(const Domaine_VF &domaine_vf)
Remplissage de faces_voisins_.
OBS_PTR(Domaine_VF) refdomaine_vf_
void remplir_def_face_aretes(const Domaine_VF &domaine_vf)
virtual void associer_domaine_vf(const Domaine_VF &domaine_vf)
const IntTab & faces_voisins() const
const ArrOfInt & face_cond_lim() const
const IntTab & def_face_aretes() const
class Domaine_VF
Definition Domaine_VF.h:44
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55