TrioCFD 1.9.9_beta
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 Class Extruder_en3 This class is an interpreter that serves to read and execute
26 *
27 * the Extruder_en3 directive:
28 * Extruder_en3 { nb_domain domain_name1 domain_name2 .. direction nb_slices }
29 * This directive is to be used in VEF 2D discretization to obtain
30 * a 3D mesh by extrusion then cutting.
31 * Here each triangle is extruded into a prism, then cut into 3 tetrahedra.
32 *
33 * @sa Interprete Extruder_en3, This class is usable in 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 &)
Creates a lateral boundary.
void setNbTranches(int n)
void setDirection(double lx, double ly, double lz)
void extruder(Domaine &, const IntVect &)
Extrudes a surface domain.
void construire_bords(Domaine &, Faces &, int, int, const IntVect &)
Creates the boundaries of the extruded domain.
Entree & interpreter_(Entree &) override
Main function of the Extruder_en3 interpreter.
ArrOfDouble direction_
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:71