NeoPZ
tpzblendnaca.h
Go to the documentation of this file.
1 
6 #ifndef TPZBLENDNACA_H
7 #define TPZBLENDNACA_H
8 
9 #include <math.h>
10 #include "pzreal.h"
11 #include "pzvec.h"
12 #include "pzeltype.h"
13 
14 class TPZGeoEl;
15 class TPZGeoMesh;
16 
23 {
24 public:
26  TPZBlendNACA();
28  TPZBlendNACA(REAL cord, int FourDigits, REAL angle, TPZVec<REAL> &x0);
30  ~TPZBlendNACA();
31 
34  template <class Type>
35  Type xua(Type x);
36  template <class Type>
37  Type yua(Type x);
38 
40  template <class Type>
41  Type xla(Type x);
42  template <class Type>
43  Type yla(Type x);
44 
45  template <class Type>
46  void ProjectPoint(TPZVec<Type> &pt, int maxPt = 1000);
47 
48 public:
49 
50  virtual void ParametricDomainNodeCoord(int node, TPZVec<REAL> &nodeCoord)
51  {
52  //Dont have
53  }
54 
56  // static TPZGeoEl *CreateGeoElement(TPZGeoMesh &mesh, MElementType type,
57  // TPZVec<int64_t>& nodeindexes,
58  // int matid,
59  // int64_t& index);
60 private:
61 
62  template<class Type>
63  Type P();
64  template<class Type>
65  Type M();
66  template<class Type>
67  Type TT();
68 
70  template <class Type>
71  Type yc(Type x);
72  template <class Type>
73  Type dyc(Type x);
74 
76  template <class Type>
77  Type yt(Type x);
78 
80  template <class Type>
81  Type xu(Type x);
82  template <class Type>
83  Type yu(Type x);
84 
86  template <class Type>
87  Type xl(Type x);
88  template <class Type>
89  Type yl(Type x);
90 
91  template <class Type>
92  void NearestParameter(TPZVec<REAL> &pt, int &uplow, int maxPt,Type &);
93 
94 public:
95 
96  REAL fCord;
98  REAL fAngle;
99  REAL fX0[3];
100  REAL fP;
101  REAL fM;
102  REAL fTT;
103 };
104 #endif
Type yu(Type x)
TPZBlendNACA()
Default constructor.
Type dyc(Type x)
REAL fX0[3]
Definition: tpzblendnaca.h:99
Templated vector implementation.
virtual void ParametricDomainNodeCoord(int node, TPZVec< REAL > &nodeCoord)
Definition: tpzblendnaca.h:50
Defines enum MElementType and contains the implementation of MElementType_NNodes(...) functions.
Special map to NACA. Geometry.
Definition: tpzblendnaca.h:22
~TPZBlendNACA()
Default destructor.
Type yua(Type x)
Type yc(Type x)
Mean line for the wing.
void ProjectPoint(TPZVec< Type > &pt, int maxPt=1000)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Definition: pzgeoel.h:43
Type yla(Type x)
Type xla(Type x)
inferior profile
Type yt(Type x)
Thickness.
Type xl(Type x)
Inferior profile.
static REAL angle
Angle in radians to test.
Definition: pzsubcmesh.cpp:53
void NearestParameter(TPZVec< REAL > &pt, int &uplow, int maxPt, Type &)
Type P()
Creates a geometric element according to the type of the father element.
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
Type xua(Type x)
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
Type xu(Type x)
Superior profile.
Type yl(Type x)