TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Extruder.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 Extruder_included
17#define Extruder_included
18
19#include <Faces_builder.h>
20#include <Interprete_geometrique_base.h>
21#include <Static_Int_Lists.h>
22#include <Domaine_forward.h>
23#include <Domaine_forward.h>
24#include <Bord.h>
25
26/*! @brief Classe Extruder Cette classe est un interprete qui sert a lire et executer
27 *
28 * la directive Extruder:
29 * Extruder nom_domaine
30 * Cette directive est a utiliser en discretisation VEF 2D pour obtenir
31 * un maillage 3D par extrusion puis decoupage.
32 *
33 * @sa Interprete Extruder, Cette classe est utilisable en 3D
34 */
35
36template <typename _SIZE_>
38{
39 Declare_instanciable_sans_constructeur_32_64(Extruder_32_64);
40
41public :
42 using int_t = _SIZE_;
46 using IntTab_t = IntTab_T<_SIZE_>;
47 using DoubleTab_t = DoubleTab_T<_SIZE_>;
50
52
54 inline void setDirection(double lx, double ly, double lz)
55 {
56 direction[0]=lx;
57 direction[1]=ly;
58 direction[2]=lz;
59 }
60 inline void setNbTranches(int n) { NZ = n; }
61
63
64
65protected:
69
70 ArrOfDouble direction;
71 int NZ = -10;
72
73private:
74 void traiter_faces_dvt_hexa(Faces_t&, int_t);
75 void traiter_faces_dvt(Faces_t&, Faces_t&, int_t, int_t, int_t);
76};
77
78using Extruder = Extruder_32_64<int>;
79using Extruder_64 = Extruder_32_64<trustIdType>;
80
81#endif
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 Extruder Cette classe est un interprete qui sert a lire et executer.
Definition Extruder.h:38
DoubleTab_T< _SIZE_ > DoubleTab_t
Definition Extruder.h:47
void setNbTranches(int n)
Definition Extruder.h:60
Faces_builder_32_64< _SIZE_ > Faces_builder_t
Definition Extruder.h:48
void setDirection(double lx, double ly, double lz)
Definition Extruder.h:54
Faces_32_64< _SIZE_ > Faces_t
Definition Extruder.h:44
ArrOfDouble direction
Definition Extruder.h:70
Bord_32_64< _SIZE_ > Bord_t
Definition Extruder.h:45
IntTab_T< _SIZE_ > IntTab_t
Definition Extruder.h:46
Static_Int_Lists_32_64< _SIZE_ > Static_Int_Lists_t
Definition Extruder.h:49
Domaine_32_64< _SIZE_ > Domaine_t
Definition Extruder.h:43
Entree & interpreter_(Entree &) override
Fonction principale de l'interprete Extruder Triangule 1 a 1 toutes les domaines du domaine.
Definition Extruder.cpp:51
virtual void extruder_dvt_hexa(Domaine_t &, Faces_t &, int_t, int_t)
Definition Extruder.cpp:582
virtual void extruder_dvt(Domaine_t &, Faces_t &, int_t, int_t)
Definition Extruder.cpp:384
void extruder(Domaine_t &)
Triangule tous les element d'un domaine: transforme les elements goemetriques du domaine en triangles...
Definition Extruder.cpp:87
_SIZE_ int_t
Definition Extruder.h:42
void extruder_hexa(Domaine_t &)
Definition Extruder.cpp:444
Classe Faces Faces decrit un ensemble de faces par leur type (point ,segment, triangle ou quadrangle)...
Definition Faces.h:50
classe outil pour construire les faces d'un domaine (utilisee uniquement pour creer les tableau des f...
classe Interprete_geometrique_base .
Cette classe permet de stocker des listes d'entiers accessibles en temps constant.