TrioCFD 1.9.9_beta
TrioCFD documentation
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 Class TroisDto2D x->alpha x
24 *
25 * @sa Interprete Pave, Currently the only type of object recognized by TRUST for meshing a domain is the 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, Modification to be able to extract a boundary of any orientation.
48 // Returns the X component of the origin A of the local coordinate system at the boundary, calculated by the class.
49 double getXa() { return xa; }
50 // Returns the Y component of the origin A of the local coordinate system at the boundary, calculated by the class.
51 double getYa() { return ya; }
52 // Returns the Z component of the origin A of the local coordinate system at the boundary, calculated by the class.
53 double getZa() { return za; }
54 // Returns the X component of the first basis vector I of the local coordinate system at the boundary, calculated by the class.
55 double getIx() { return Ix; }
56 // Returns the Y component of the first basis vector I of the local coordinate system at the boundary, calculated by the class.
57 double getIy() { return Iy; }
58 // Returns the Z component of the first basis vector I of the local coordinate system at the boundary, calculated by the class.
59 double getIz() { return Iz; }
60 // Returns the X component of the basis vector J of the local coordinate system at the boundary, calculated by the class.
61 double getJx() { return Jx; }
62 // Returns the Y component of the basis vector J of the local coordinate system at the boundary, calculated by the class.
63 double getJy() { return Jy; }
64 // Returns the Z component of the basis vector J of the local coordinate system at the boundary, calculated by the class.
65 double getJz() { return Jz; }
66 // Returns the X component of the basis vector K of the local coordinate system at the boundary, calculated by the class.
67 double getKx() { return Kx; }
68 // Returns the Y component of the basis vector K of the local coordinate system at the boundary, calculated by the class.
69 double getKy() { return Ky; }
70 // Returns the Z component of the basis vector K of the local coordinate system at the boundary, calculated by the class.
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
Class Bord This class represents a boundary of a domain, it is a type of frontier.
Definition Bord.h:31
class Domaine_32_64 A Domain is a mesh composed of a set of geometric elements of the same type.
Definition Domaine.h:62
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Class Faces Faces describes a set of faces by their type (point, segment, triangle or quadrangle),...
Definition Faces.h:50
Class Frontiere.
Definition Frontiere.h:32
Class Interprete_geometrique_base.
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Class Raccord_base This class is simply a boundary; it is the base class of the.
Class 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
Main function of the Extract_2D_from_3D interpreter. Data set structure (in 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