3.4.0
Material functions

Functions

TiglReturnCode tiglWingComponentSegmentGetMaterialCount (TiglCPACSConfigurationHandle cpacsHandle, const char *compSegmentUID, TiglStructureType structureType, double eta, double xsi, int *materialCount)
 Returns the number of materials defined at a point on the wing component segment surface. More...
 
TiglReturnCode tiglWingComponentSegmentGetMaterialThickness (TiglCPACSConfigurationHandle cpacsHandle, const char *compSegmentUID, TiglStructureType structureType, double eta, double xsi, int materialIndex, double *thickness)
 Returns one of the material thicknesses of a given point on the wing component segment surface. The number of materials on that point has to be first queried using tiglWingComponentSegmentGetMaterialCount. More...
 
TiglReturnCode tiglWingComponentSegmentGetMaterialUID (TiglCPACSConfigurationHandle cpacsHandle, const char *compSegmentUID, TiglStructureType structureType, double eta, double xsi, int materialIndex, char **uid)
 Returns one of the material UIDs of a given point on the wing component segment surface. The number of materials on that point has to be first queried using tiglWingComponentSegmentGetMaterialCount. More...
 

Detailed Description

Functions to query material information of wings/fuselages. Materials are currently ony implemented for the wing component segment. Here, materials for the lower and upper wing surface can be queried, which can be a material for the whole skin/surface or a material defined inside a wing cell. A wing cell material overwrites the global skin material, i.e. if the whole wing skin material is aluminum and the trailing edge is made of radar absorbing material, only the absorbing material is returned by the querying functions.

Function Documentation

◆ tiglWingComponentSegmentGetMaterialCount()

TiglReturnCode tiglWingComponentSegmentGetMaterialCount ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  compSegmentUID,
TiglStructureType  structureType,
double  eta,
double  xsi,
int *  materialCount 
)

Returns the number of materials defined at a point on the wing component segment surface.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]compSegmentUIDUID of the component segment
[in]structureTypeType of structure, where the materials are queried
[in]etaeta in the range 0.0 <= eta <= 1.0
[in]xsixsi in the range 0.0 <= xsi <= 1.0
[out]materialCountNumber of materials defined at the given coordinate
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if compSegmentUID or materialCount is a null pointer
  • TIGL_INDEX_ERROR if compSegmentUID or materialIndex is invalid
  • TIGL_ERROR if some other error occurred

◆ tiglWingComponentSegmentGetMaterialThickness()

TiglReturnCode tiglWingComponentSegmentGetMaterialThickness ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  compSegmentUID,
TiglStructureType  structureType,
double  eta,
double  xsi,
int  materialIndex,
double *  thickness 
)

Returns one of the material thicknesses of a given point on the wing component segment surface. The number of materials on that point has to be first queried using tiglWingComponentSegmentGetMaterialCount.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]compSegmentUIDUID of the component segment
[in]structureTypeType of structure, where the materials are queried
[in]etaeta in the range 0.0 <= eta <= 1.0
[in]xsixsi in the range 0.0 <= xsi <= 1.0
[in]materialIndexIndex of the material to query (1 <= index <= materialCount)
[out]thicknessMaterial thickness at the given coordinate. If no thickness is defined, thickness gets a negative value and TIGL_UNINITIALIZED is returned.
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if compSegmentUID or thickness is a null pointer
  • TIGL_INDEX_ERROR if compSegmentUID or materialIndex is invalid
  • TIGL_UNINITIALIZED if no thickness is defined for the material
  • TIGL_ERROR if some other error occurred

◆ tiglWingComponentSegmentGetMaterialUID()

TiglReturnCode tiglWingComponentSegmentGetMaterialUID ( TiglCPACSConfigurationHandle  cpacsHandle,
const char *  compSegmentUID,
TiglStructureType  structureType,
double  eta,
double  xsi,
int  materialIndex,
char **  uid 
)

Returns one of the material UIDs of a given point on the wing component segment surface. The number of materials on that point has to be first queried using tiglWingComponentSegmentGetMaterialCount.

Parameters
[in]cpacsHandleHandle for the CPACS configuration
[in]compSegmentUIDUID of the component segment
[in]structureTypeType of structure, where the materials are queried
[in]etaeta in the range 0.0 <= eta <= 1.0
[in]xsixsi in the range 0.0 <= xsi <= 1.0
[in]materialIndexIndex of the material to query (1 <= index <= materialCount)
[out]uidMaterial uid at the given coordinate
Returns
  • TIGL_SUCCESS if no error occurred
  • TIGL_NOT_FOUND if no configuration was found for the given handle
  • TIGL_NULL_POINTER if compSegmentUID is a null pointer
  • TIGL_INDEX_ERROR if compSegmentUID or materialIndex is invalid
  • TIGL_ERROR if some other error occurred