Functions | |
TiglReturnCode | tiglFuselageGetSegmentSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double *surfaceAreaPtr) |
Returns the surface area of a segment of a fuselage. More... | |
TiglReturnCode | tiglFuselageGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, double *surfaceAreaPtr) |
Returns the surface area of the fuselage. Currently, the area includes also the faces on the fuselage symmetry plane (in case of a symmetric wing). This is in particular a problem for fuselages, where only one half side is defined in CPACS. In future releases, these faces will not belong anymore to the surface area calculation. More... | |
TiglReturnCode | tiglWingGetReferenceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, TiglSymmetryAxis symPlane, double *referenceAreaPtr) |
Returns the reference area of the wing. More... | |
TiglReturnCode | tiglWingGetSegmentLowerSurfaceAreaTrimmed (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta1, double xsi1, double eta2, double xsi2, double eta3, double xsi3, double eta4, double xsi4, double *surfaceArea) |
Computes the area of the trimmed lower wing segment surface. This function can be e.g. used to determine the area of the wing flaps. More... | |
TiglReturnCode | tiglWingGetSegmentSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double *surfaceAreaPtr) |
Returns the surface area of a segment of a wing. This includes only the area of the upper and lower wing segment surface and does not include the trailing egde or any closing faces. More... | |
TiglReturnCode | tiglWingGetSegmentUpperSurfaceAreaTrimmed (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double eta1, double xsi1, double eta2, double xsi2, double eta3, double xsi3, double eta4, double xsi4, double *surfaceArea) |
Computes the area of the trimmed upper wing segment surface. This function can be e.g. used to determine the area of the wing flaps. More... | |
TiglReturnCode | tiglWingGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, double *surfaceAreaPtr) |
Returns the surface area of the wing. Currently, the area includes also the faces on the wing symmetry plane (in case of a symmetric wing). In coming releases, these faces will not belong anymore to the surface area calculation. More... | |
TiglReturnCode | tiglWingGetWettedArea (TiglCPACSConfigurationHandle cpacsHandle, char *wingUID, double *wettedAreaPtr) |
Returns the wetted area of the wing. If the wing has no parent (fuselage), it returns the surface area of the wing. More... | |
Function for surface area calculations of wings/fuselages.
TiglReturnCode tiglFuselageGetSegmentSurfaceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | fuselageIndex, | ||
int | segmentIndex, | ||
double * | surfaceAreaPtr | ||
) |
Returns the surface area of a segment of a fuselage.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | The index of a fuselage, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | surfaceAreaPtr | The pointer to a variable for the surface area of the fuselage-segment |
TiglReturnCode tiglFuselageGetSurfaceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | fuselageIndex, | ||
double * | surfaceAreaPtr | ||
) |
Returns the surface area of the fuselage. Currently, the area includes also the faces on the fuselage symmetry plane (in case of a symmetric wing). This is in particular a problem for fuselages, where only one half side is defined in CPACS. In future releases, these faces will not belong anymore to the surface area calculation.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | fuselageIndex | Index of the Fuselage to calculate the area, starting at 1 |
[out] | surfaceAreaPtr | The surface area of the wing |
TiglReturnCode tiglWingGetReferenceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | wingIndex, | ||
TiglSymmetryAxis | symPlane, | ||
double * | referenceAreaPtr | ||
) |
Returns the reference area of the wing.
The reference area of the wing is calculated by taking account the quadrilateral portions of each wing segment by projecting the wing segments into the plane defined by the user. If projection should be avoided, use TIGL_NO_SYMMETRY as symPlane argument.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | Index of the Wing to calculate the area, starting at 1 |
[in] | symPlane | Plane on which the wing is projected for calculating the refarea. Values can be:
|
[out] | referenceAreaPtr | The reference area of the wing |
TiglReturnCode tiglWingGetSegmentLowerSurfaceAreaTrimmed | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | wingIndex, | ||
int | segmentIndex, | ||
double | eta1, | ||
double | xsi1, | ||
double | eta2, | ||
double | xsi2, | ||
double | eta3, | ||
double | xsi3, | ||
double | eta4, | ||
double | xsi4, | ||
double * | surfaceArea | ||
) |
Computes the area of the trimmed lower wing segment surface. This function can be e.g. used to determine the area of the wing flaps.
The use of this function is analog to tiglWingGetSegmentUpperSurfaceAreaTrimmed.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | The index of a wing, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[in] | eta1 | Eta value of P1 in range [0,1] |
[in] | xsi1 | Xsi value of P1 in range [0,1] |
[in] | eta2 | Eta value of P2 in range [0,1] |
[in] | xsi2 | Xsi value of P2 in range [0,1] |
[in] | eta3 | Eta value of P3 in range [0,1] |
[in] | xsi3 | Xsi value of P3 in range [0,1] |
[in] | eta4 | Eta value of P4 in range [0,1] |
[in] | xsi4 | Xsi value of P4 in range [0,1] |
[out] | surfaceArea | Area of the trimmed lower wing surface |
TiglReturnCode tiglWingGetSegmentSurfaceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | wingIndex, | ||
int | segmentIndex, | ||
double * | surfaceAreaPtr | ||
) |
Returns the surface area of a segment of a wing. This includes only the area of the upper and lower wing segment surface and does not include the trailing egde or any closing faces.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | The index of a wing, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[out] | surfaceAreaPtr | The pointer to a variable for the surface area of the wing |
TiglReturnCode tiglWingGetSegmentUpperSurfaceAreaTrimmed | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | wingIndex, | ||
int | segmentIndex, | ||
double | eta1, | ||
double | xsi1, | ||
double | eta2, | ||
double | xsi2, | ||
double | eta3, | ||
double | xsi3, | ||
double | eta4, | ||
double | xsi4, | ||
double * | surfaceArea | ||
) |
Computes the area of the trimmed upper wing segment surface. This function can be e.g. used to determine the area of the wing flaps.
The computed area does not include the trailing edge or any closing side faces.
All eta and xsi values must be in the range [0,1]. The trimmed area is defined with the four corner point P1, P2, P3, and P4. The order of the points should be right handed, as shown the the image below.
Each of the points is defined with an eta/xsi coordinate pair in the wing segment system.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | The index of a wing, starting at 1 |
[in] | segmentIndex | The index of a segment, starting at 1 |
[in] | eta1 | Eta value of P1 in range [0,1] |
[in] | xsi1 | Xsi value of P1 in range [0,1] |
[in] | eta2 | Eta value of P2 in range [0,1] |
[in] | xsi2 | Xsi value of P2 in range [0,1] |
[in] | eta3 | Eta value of P3 in range [0,1] |
[in] | xsi3 | Xsi value of P3 in range [0,1] |
[in] | eta4 | Eta value of P4 in range [0,1] |
[in] | xsi4 | Xsi value of P4 in range [0,1] |
[out] | surfaceArea | Area of the trimmed upper wing surface |
TiglReturnCode tiglWingGetSurfaceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | wingIndex, | ||
double * | surfaceAreaPtr | ||
) |
Returns the surface area of the wing. Currently, the area includes also the faces on the wing symmetry plane (in case of a symmetric wing). In coming releases, these faces will not belong anymore to the surface area calculation.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingIndex | Index of the Wing to calculate the area, starting at 1 |
[out] | surfaceAreaPtr | The surface area of the wing |
TiglReturnCode tiglWingGetWettedArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
char * | wingUID, | ||
double * | wettedAreaPtr | ||
) |
Returns the wetted area of the wing. If the wing has no parent (fuselage), it returns the surface area of the wing.
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | wingUID | UID of the Wing to calculate the wetted area |
[out] | wettedAreaPtr | The wetted area of the wing |