TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
TroisDto2D.h
1/****************************************************************************
2* Copyright (c) 2024, 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 TroisDto2D_included
17#define TroisDto2D_included
18
19#include <Interprete_geometrique_base.h>
20#include <Domaine.h>
21
22
23/*! @brief Classe TroisDto2D x->alpha x
24 *
25 * @sa Interprete Pave, Actuellement le seul type d'objet reconnu par TRUST pour mailler un domaine est le Pave.
26 */
27template <typename _SIZE_>
29{
30 Declare_instanciable_32_64(TroisDto2D_32_64);
31
32public :
33 using int_t = _SIZE_;
34 using ArrOfInt_t = ArrOfInt_T<_SIZE_>;
35 using IntTab_t = IntTab_T<_SIZE_>;
36 using DoubleTab_t = DoubleTab_T<_SIZE_>;
37
43
45 void extraire_2D(const Domaine_t&, Domaine_t&, const Bord_t&,const Nom& , int);
46
47 // OC, 28/10/2004, Modif pour pouvoir extraire un bord d'orientation quelconque.
48 // Renvoi la composante X de l'origine A du repere local au bord, calcule par la classe.
49 double getXa() { return xa; }
50 // Renvoi la composante Y de l'origine A du repere local au bord, calcule par la classe.
51 double getYa() { return ya; }
52 // Renvoi la composante Z de l'origine A du repere local au bord, calcule par la classe.
53 double getZa() { return za; }
54 // Renvoi la composante X du premier vecteur de base I du repere local au bord, calcule par la classe.
55 double getIx() { return Ix; }
56 // Renvoi la composante Y du premier vecteur de base I du repere local au bord, calcule par la classe.
57 double getIy() { return Iy; }
58 // Renvoi la composante Z du premier vecteur de base I du repere local au bord, calcule par la classe.
59 double getIz() { return Iz; }
60 // Renvoi la composante X du vecteur de base J du repere local au bord, calcule par la classe.
61 double getJx() { return Jx; }
62 // Renvoi la composante Y du vecteur de base J du repere local au bord, calcule par la classe.
63 double getJy() { return Jy; }
64 // Renvoi la composante Z du vecteur de base J du repere local au bord, calcule par la classe.
65 double getJz() { return Jz; }
66 // Renvoi la composante X du vecteur de base K du repere local au bord, calcule par la classe.
67 double getKx() { return Kx; }
68 // Renvoi la composante Y du vecteur de base K du repere local au bord, calcule par la classe.
69 double getKy() { return Ky; }
70 // Renvoi la composante Z du vecteur de base K du repere local au bord, calcule par la classe.
71 double getKz() { return Kz; }
72
73 inline int& coupe() { return coupe_; }
74
75protected :
76
77 int coupe_ = 1;
78
79private :
80 double xa = -100., ya = -100., za = -100.;
81 double Ix = -100., Iy = -100., Iz = -100.;
82 double Jx = -100., Jy = -100., Jz = -100.;
83 double Kx = -100., Ky = -100., Kz = -100.;
84};
85
86using TroisDto2D = TroisDto2D_32_64<int>;
87using TroisDto2D_64 = TroisDto2D_32_64<trustIdType>;
88
89
90#endif
91
Classe Bord Cette classe represente un bord d'un domaine, c'est un type de frontiere.
Definition Bord.h:32
classe Domaine_32_64 un Domaine est un maillage compose d'un ensemble d'elements geometriques de meme...
Definition Domaine.h:62
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Classe Faces Faces decrit un ensemble de faces par leur type (point ,segment, triangle ou quadrangle)...
Definition Faces.h:50
Classe Frontiere.
Definition Frontiere.h:32
classe Interprete_geometrique_base .
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Classe Raccord_base Cette classe est simplement une frontiere, c'est la classe de base de la.
Classe TroisDto2D x->alpha x.
Definition TroisDto2D.h:29
void extraire_2D(const Domaine_t &, Domaine_t &, const Bord_t &, const Nom &, int)
Entree & interpreter_(Entree &) override
Fonction principale de l'interprete Extract_2D_from_3D Structure du jeu de donnee (en dimension 3) :
DoubleTab_T< _SIZE_ > DoubleTab_t
Definition TroisDto2D.h:36
Bord_32_64< _SIZE_ > Bord_t
Definition TroisDto2D.h:39
ArrOfInt_T< _SIZE_ > ArrOfInt_t
Definition TroisDto2D.h:34
Domaine_32_64< _SIZE_ > Domaine_t
Definition TroisDto2D.h:38
Frontiere_32_64< _SIZE_ > Frontiere_t
Definition TroisDto2D.h:41
OWN_PTR(Raccord_base_32_64< _SIZE_ >) Raccord_t
Definition TroisDto2D.h:42
Faces_32_64< _SIZE_ > Faces_t
Definition TroisDto2D.h:40
IntTab_T< _SIZE_ > IntTab_t
Definition TroisDto2D.h:35