3.0.0
Functions for volume calculations

Functions

TiglReturnCode tiglFuselageGetSegmentVolume (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, int segmentIndex, double *volumePtr)
 Returns the volume of a segment of a fuselage. More...
 
TiglReturnCode tiglFuselageGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int fuselageIndex, double *volumePtr)
 Returns the volume of the fuselage. More...
 
TiglReturnCode tiglWingGetSegmentVolume (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, int segmentIndex, double *volumePtr)
 Returns the volume of a segment of a wing. More...
 
TiglReturnCode tiglWingGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int wingIndex, double *volumePtr)
 Returns the volume of the wing. More...
 

Detailed Description

Function for volume calculations on wings/fuselages.

Function Documentation

TiglReturnCode tiglFuselageGetSegmentVolume ( TiglCPACSConfigurationHandle  cpacsHandle,
int  fuselageIndex,
int  segmentIndex,
double *  volumePtr 
)

Returns the volume of a segment of a fuselage.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageIndexThe index of a fuselage, starting at 1
[in]segmentIndexThe index of a segment, starting at 1
[out]volumePtrThe pointer to a variable for the volume of the fuselage
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_INDEX_ERROR if fuselageIndex, sectionIndex or elementIndex are not valid
  • TIGL_NULL_POINTER if volumePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglFuselageGetVolume ( TiglCPACSConfigurationHandle  cpacsHandle,
int  fuselageIndex,
double *  volumePtr 
)

Returns the volume of the fuselage.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]fuselageIndexIndex of the fuselage to calculate the volume, starting at 1
[out]volumePtrThe volume of the fuselage
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_INDEX_ERROR if fuselageIndex is less or equal zero
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglWingGetSegmentVolume ( TiglCPACSConfigurationHandle  cpacsHandle,
int  wingIndex,
int  segmentIndex,
double *  volumePtr 
)

Returns the volume of a segment of a wing.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingIndexThe index of a wing, starting at 1
[in]segmentIndexThe index of a segment, starting at 1
[out]volumePtrThe pointer to a variable for the volume of the wing
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_INDEX_ERROR if wingIndex, sectionIndex or elementIndex are not valid
  • TIGL_NULL_POINTER if volumePtr is a null pointer
  • TIGL_ERROR if some other error occurred
TiglReturnCode tiglWingGetVolume ( TiglCPACSConfigurationHandle  cpacsHandle,
int  wingIndex,
double *  volumePtr 
)

Returns the volume of the wing.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]wingIndexIndex of the Wing to calculate the volume, starting at 1
[out]volumePtrThe volume of the wing
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_INDEX_ERROR if wingIndex is less or equal zero
  • TIGL_ERROR if some other error occurred