OpenVSPAPI  3.32.0
Functions
Propeller Blade Curve Functions

The following group of API functions may be used to control parametric propeller blade curves (PCurves).

Click here to return to the main page. More...

Functions

void SetPCurve (const string &in geom_id, const int &in pcurveid, double[]@ tvec, double[]@ valvec, const int &in newtype)
 
void PCurveConvertTo (const string &in geom_id, const int &in pcurveid, const int &in newtype)
 
int PCurveGetType (const string &in geom_id, const int &in pcurveid)
 
double[] PCurveGetTVec (const string &in geom_id, const int &in pcurveid)
 
double[] PCurveGetValVec (const string &in geom_id, const int &in pcurveid)
 
void PCurveDeletePt (const string &in geom_id, const int &in pcurveid, const int &in indx)
 
int PCurveSplit (const string &in geom_id, const int &in pcurveid, const double &in tsplit)
 
void ApproximateAllPropellerPCurves (const string &in geom_id)
 
void ResetPropellerThicknessCurve (const string &in geom_id)
 

Detailed Description

Function Documentation

◆ ApproximateAllPropellerPCurves()

void ApproximateAllPropellerPCurves ( const string &in  geom_id)

Approximate all propeller blade curves with cubic Bezier curves.

// Add Propeller
string prop = AddGeom( "PROP", "" );
Parameters
[in]geom_idGeom ID

◆ PCurveConvertTo()

void PCurveConvertTo ( const string &in  geom_id,
const int &in  pcurveid,
const int &in  newtype 
)

Change the type of a propeller blade curve (P Curve)

See also
PCURV_TYPE
Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
[in]newtypeCurve type enum (i.e. CEDIT)

◆ PCurveDeletePt()

void PCurveDeletePt ( const string &in  geom_id,
const int &in  pcurveid,
const int &in  indx 
)

Delete a propeller blade curve (P Curve) point

Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
[in]indxPoint index

◆ PCurveGetTVec()

double [] PCurveGetTVec ( const string &in  geom_id,
const int &in  pcurveid 
)

Get the parameters of a propeller blade curve (P Curve). Each parameter is a fraction of propeller radius.

Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
Returns
Array of parameters

◆ PCurveGetType()

int PCurveGetType ( const string &in  geom_id,
const int &in  pcurveid 
)

Get the type of a propeller blade curve (P Curve)

See also
PCURV_TYPE
Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
Returns
Curve type enum (i.e. CEDIT)

◆ PCurveGetValVec()

double [] PCurveGetValVec ( const string &in  geom_id,
const int &in  pcurveid 
)

Get the values of a propeller blade curve (P Curve). What the values represent id dependent on the curve type (i.e. twist, chord, etc.).

Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
Returns
Array of values

◆ PCurveSplit()

int PCurveSplit ( const string &in  geom_id,
const int &in  pcurveid,
const double &in  tsplit 
)

Split a propeller blade curve (P Curve) at the specified 1D parameter

Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
[in]tsplit1D parameter split location
Returns
Index of new control point

◆ ResetPropellerThicknessCurve()

void ResetPropellerThicknessCurve ( const string &in  geom_id)

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.

// Add Propeller
string prop = AddGeom( "PROP", "" );
Parameters
[in]geom_idGeom ID

◆ SetPCurve()

void SetPCurve ( const string &in  geom_id,
const int &in  pcurveid,
double@[]  tvec,
double@[]  valvec,
const int &in  newtype 
)

Set the parameters, values, and curve type of a propeller blade curve (P Curve)

See also
PCURV_TYPE
Parameters
[in]geom_idParent Geom ID
[in]pcurveidP Curve index
[in]tvecArray of parameter values
[in]valvecArray of values
[in]newtypeCurve type enum (i.e. CEDIT)
ResetPropellerThicknessCurve
void ResetPropellerThicknessCurve(const string &in geom_id)
AddGeom
string AddGeom(const string &in type, const string &in parent=string())
ApproximateAllPropellerPCurves
void ApproximateAllPropellerPCurves(const string &in geom_id)