TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Extruder_en3.h
1/****************************************************************************
2* Copyright (c) 2023, 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_en3_included
17#define Extruder_en3_included
18
19#include <Interprete_geometrique_base.h>
20#include <TRUSTTabs_forward.h>
21
22#include <Domaine_forward.h>
23#include <Domaine_forward.h>
24
25/*! @brief Classe Extruder_en3 Cette classe est un interprete qui sert a lire et executer
26 *
27 * la directive Extruder_en3 :
28 * Extruder_en3 { nb_domaine nom_domaine1 nom_domaine2 .. direction nb_tranches }
29 * Cette directive est a utiliser en discretisation VEF 2D pour obtenir
30 * un maillage 3D par extrusion puis decoupage.
31 * Ici chaque triangle est extruder en prisme, puis decoupe en 3 tetras.
32 *
33 * @sa Interprete Extruder_en3, Cette classe est utilisable en 3D
34 */
35class Extruder_en3 : public Interprete_geometrique_base
36{
37 Declare_instanciable_sans_constructeur(Extruder_en3);
38
39public :
41 Entree& interpreter_(Entree&) override;
42
43 inline void setDirection(double lx, double ly, double lz)
44 {
45 direction_[0]=lx;
46 direction_[1]=ly;
47 direction_[2]=lz;
48 }
49
50 inline void setNbTranches(int n) { NZ_ = n; }
51 void extruder(Domaine&, const IntVect&);
52
53protected:
54 void construire_bords(Domaine&, Faces&, int, int, const IntVect&) ;
55 void construire_bord_lateral(Faces&, Faces&, int, const IntVect&);
56
57 ArrOfDouble direction_;
58 int NZ_ = -10;
60};
61#endif
void construire_bord_lateral(Faces &, Faces &, int, const IntVect &)
Creation d'un bord lateral.
void setNbTranches(int n)
void setDirection(double lx, double ly, double lz)
void extruder(Domaine &, const IntVect &)
Extrusion d'un domaine surfacique.
void construire_bords(Domaine &, Faces &, int, int, const IntVect &)
Creation des bords du domaine extrude.
Entree & interpreter_(Entree &) override
Fonction principale de l'interprete Extruder_en3.
ArrOfDouble direction_
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76