26 fCord(cord), fFourDigits(FourDigits), fAngle(angle)
44 aux -= ((int)(aux/10))*10;
45 return (Type)(aux/10.);
53 return (Type)(aux/100.)*
fCord;
62 return (Type)(aux/100.)*
fCord;
102 const REAL a0 = 1.4845,
108 return fTT * (a0*
sqrt(aux) + a1*aux + a2*aux*aux + a3*aux*aux*aux + a4*aux*aux*aux*aux);
114 template <
class Type>
124 template <
class Type>
132 template <
class Type>
140 template <
class Type>
153 REAL distminlow = 20.*
fCord;
154 REAL distminup = 20.*
fCord;
158 REAL par,parlow = (REAL)0.0;
159 REAL parup = (REAL)0.0;
160 for(ip=0; ip<=maxp; ip++)
167 distlow = (ptl[0]-pt[0])*(ptl[0]-pt[0])+(ptl[1]-pt[1])*(ptl[1]-pt[1]);
168 distup = (ptu[0]-pt[0])*(ptu[0]-pt[0])+(ptu[1]-pt[1])*(ptu[1]-pt[1]);
169 if(distlow < distminlow) parlow = par;
170 if(distup < distminup) parup = par;
171 distminlow = distminlow < distlow ? distminlow : distlow;
172 distminup = distminup < distup ? distminup : distup;
174 REAL delpar = (0.1L)/maxp;
175 if(distminlow < distminup)
178 REAL distprev = distminlow;
180 while(
fabs(delpar) > 0.00001/maxp)
182 ptl[0] =
xla(par+delpar);
183 ptl[1] =
yla(par+delpar);
184 distlow = (ptl[0]-pt[0])*(ptl[0]-pt[0])+(ptl[1]-pt[1])*(ptl[1]-pt[1]);
185 if(distlow < distprev)
190 else if (delpar > 0.)
203 REAL distprev = distminup;
205 while(
fabs(delpar) > 0.001/maxp)
207 ptu[0] =
xua(par+delpar);
208 ptu[1] =
yua(par+delpar);
209 distup = (ptu[0]-pt[0])*(ptu[0]-pt[0])+(ptu[1]-pt[1])*(ptu[1]-pt[1]);
210 if(distup < distprev)
215 else if (delpar > 0.)
230 template <
class Type>
239 template <
class Type>
247 template <
class Type>
255 template <
class Type>
263 template <
class Type>
TPZBlendNACA()
Default constructor.
expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ fabs
Templated vector implementation.
groups all classes dedicated to the computation of shape functions
Contains the TPZRefQuad class which implements the uniform refinement of a geometric quadrilateral el...
~TPZBlendNACA()
Default destructor.
Contains declaration of TPZGeoElMapped class which implements a geometric element using its ancestral...
Type yc(Type x)
Mean line for the wing.
void ProjectPoint(TPZVec< Type > &pt, int maxPt=1000)
Type xla(Type x)
inferior profile
Type yt(Type x)
Thickness.
expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ sqrt
Groups all classes which model the h refinement These classes are used as template arguments of...
Type xl(Type x)
Inferior profile.
static REAL angle
Angle in radians to test.
void NearestParameter(TPZVec< REAL > &pt, int &uplow, int maxPt, Type &)
Type P()
Creates a geometric element according to the type of the father element.
expr_ expr_ expr_ expr_ expr_ expr_ expr_ expr_ atan
Contains the TPZBlendNACA class. It is a special map.
Contains the declaration of TPZFlopCounter class and TPZCounter struct.
Contains declaration of TPZGeoElement class which implements a generic geometric element with a unifo...
Groups all classes which model the geometry.
Type xu(Type x)
Superior profile.
TPZFlopCounter cos(const TPZFlopCounter &orig)
Returns the cosine in radians and increments the counter of the Cosine.
Contains TPZShapeQuad class which implements the shape functions of a quadrilateral element...