TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_VDF_Face.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Op_VDF_Face_included
17#define Op_VDF_Face_included
18
19#include <Domaine_VDF.h>
20#include <TRUSTTab.h>
21#include <TRUSTTabs_forward.h>
22
23class Matrice_Morse;
24class Domaine_Cl_VDF;
25
27{
28public :
29 void dimensionner(const Domaine_VDF&, const Domaine_Cl_VDF&, Matrice_Morse&) const;
30 void modifier_pour_Cl(const Domaine_VDF&, const Domaine_Cl_VDF&, Matrice_Morse&, DoubleTab&) const;
31
32private:
33 void modifier_pour_Cl_(const int , const int , const int , Matrice_Morse& ) const;
34};
35
36// methode interne pour la classe Op_VDF_Face !
37inline int face_bord_amont2(const Domaine_VDF& le_dom , const int num_face , const int k , const int i)
38{
39 const int ori = le_dom.orientation(num_face);
40 int elem = le_dom.face_voisins(num_face,0);
41 if(elem != -1)
42 {
43 const int face = le_dom.elem_faces(elem, k+i*Objet_U::dimension), elem_bis = le_dom.face_voisins(face,i);
44 elem = (elem_bis != -1) ? le_dom.elem_faces(elem_bis, ori+Objet_U::dimension) : -1;
45 }
46 else Process::exit();
47
48 return elem;
49}
50
51#endif /* Op_VDF_Face_included */
class Domaine_Cl_VDF
class Domaine_VDF
Definition Domaine_VDF.h:64
int orientation(int) const override
inline DoubleVect& Domaine_VDF::porosite_face() {
int elem_faces(int i, int j) const
renvoie le numero de le ieme face de la maille num_elem la facon dont ces faces sont numerotees est
Definition Domaine_VF.h:543
int face_voisins(int num_face, int i) const
renvoie l'element voisin de numface dans la direction i.
Definition Domaine_VF.h:418
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
static int dimension
Definition Objet_U.h:99
void modifier_pour_Cl(const Domaine_VDF &, const Domaine_Cl_VDF &, Matrice_Morse &, DoubleTab &) const
void dimensionner(const Domaine_VDF &, const Domaine_Cl_VDF &, Matrice_Morse &) const
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455