|
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 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.
Location of the four corner points
Each of the points is defined with an eta/xsi coordinate pair in the wing segment system.
- Parameters
-
[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 |
- Returns
- TIGL_SUCCESS if no error occurred
- TIGL_NOT_FOUND if no configuration was found for the given handle
- TIGL_INDEX_ERROR if wingIndex ot segmentIndex are not valid
- TIGL_NULL_POINTER if surfaceArea is a null pointer
- TIGL_ERROR if the eta/xsi coordinates are not in the valid range [0,1] or another error occured