Reset propeller T/C curve to match basic thickness of file-type airfoils. Typically only used for a propeller that has been constructed with file-type airfoils across the blade. The new thickness curve will be a PCHIP curve with t/c matching the propeller's XSecs – unless it is a file XSec, then the Base thickness is used.
string prop =
AddGeom(
"PROP",
"" );
{
Print( "ERROR: ResetPropellerThicknessCurve did not make a PCHIP curve" );
__failure++;
}
if ( int( vvec.size() ) != num_xsec || tvec.size() != vvec.size() )
{
Print( "ERROR: ResetPropellerThicknessCurve did not follow the XSecs" );
__failure++;
}
else
{
for ( int i = 0; i < num_xsec; i++ )
{
if ( tc.length() > 0 )
{
if ( !closeTo( vvec[i],
GetParmVal( tc ), 1e-6 ) )
{
Print( "ERROR: station " + i + " does not match its XSec" );
__failure++;
}
}
}
for ( int i = 1; i < int( tvec.size() ); i++ )
{
if ( tvec[i] <= tvec[i - 1] )
{
Print( "ERROR: the thickness stations are not increasing" );
__failure++;
}
}
}
while ( GetNumTotalErrors() > 0 )
{
}
std::vector< double > PCurveGetValVec(const std::string &geom_id, const int &pcurveid)
void ResetPropellerThicknessCurve(const std::string &geom_id)
double GetParmVal(const std::string &parm_id)
std::string GetXSecParm(const std::string &xsec_id, const std::string &name)
std::string GetXSecSurf(const std::string &geom_id, int index)
std::string GetXSec(const std::string &xsec_surf_id, int xsec_index)
int GetNumXSec(const std::string &xsec_surf_id)