Functions | |
TiglReturnCode | tiglGetRotorCount (TiglCPACSConfigurationHandle cpacsHandle, int *rotorCountPtr) |
Returns the number of rotors in a CPACS configuration. More... | |
TiglReturnCode | tiglRotorGetIndex (TiglCPACSConfigurationHandle cpacsHandle, const char *rotorUID, int *rotorIndexPtr) |
Returns the Index of a rotor. More... | |
TiglReturnCode | tiglRotorGetRadius (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *radiusPtr) |
Returns the radius of the rotor. More... | |
TiglReturnCode | tiglRotorGetReferenceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *referenceAreaPtr) |
Returns the reference area of the rotor. More... | |
TiglReturnCode | tiglRotorGetSolidity (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *solidityPtr) |
Returns the solidity of the rotor. More... | |
TiglReturnCode | tiglRotorGetSurfaceArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *surfaceAreaPtr) |
Returns the surface area of the rotor. More... | |
TiglReturnCode | tiglRotorGetTipSpeed (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *tipSpeedPtr) |
Returns the tip speed of the rotor in [m/s]. More... | |
TiglReturnCode | tiglRotorGetTotalBladePlanformArea (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *totalBladePlanformAreaPtr) |
Returns the total blade planform area of the rotor. More... | |
TiglReturnCode | tiglRotorGetUID (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, char **uidNamePtr) |
Returns the UID of a rotor. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed. More... | |
TiglReturnCode | tiglRotorGetVolume (TiglCPACSConfigurationHandle cpacsHandle, int rotorIndex, double *volumePtr) |
Returns the volume of the rotor. More... | |
Functions to handle rotor geometries with TIGL.
TiglReturnCode tiglGetRotorCount | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int * | rotorCountPtr | ||
) |
Returns the number of rotors in a CPACS configuration.
Fortran syntax:
tigl_get_rotor_count(integer cpacsHandle, integer rotorCountPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[out] | rotorCountPtr | Pointer to the number of rotors |
TiglReturnCode tiglRotorGetIndex | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
const char * | rotorUID, | ||
int * | rotorIndexPtr | ||
) |
Returns the Index of a rotor.
Fortran syntax:
tigl_rotor_get_index(integer cpacsHandle, character*n uIDNamePtr, integer rotorIndex, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorUID | The uid of the rotor |
[out] | rotorIndexPtr | The index of a rotor, starting at 1 |
Usage example:
TiglReturnCode returnCode; int rotorIndex; returnCode = tiglRotorGetUID(cpacsHandle, rotorUID, &rotorIndex); printf("The Index of the rotor is %d\n", rotorIndex);
TiglReturnCode tiglRotorGetRadius | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | radiusPtr | ||
) |
Returns the radius of the rotor.
This function returns the radius of the largest blade attached to the rotor hub.
Fortran syntax:
tigl_rotor_get_radius(integer cpacsHandle, int rotorIndex, real radiusPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the rotor to calculate the radius, starting at 1 |
[out] | radiusPtr | The radius of the rotor |
TiglReturnCode tiglRotorGetReferenceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | referenceAreaPtr | ||
) |
Returns the reference area of the rotor.
The area of the rotor disk is taken as reference area of the rotor. It is calculated using the formula pi*r^2, where r denotes the radius of the largest attached blade.
Fortran syntax:
tigl_rotor_get_reference_area(integer cpacsHandle, int rotorIndex, real referenceAreaPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the rotor to calculate the area, starting at 1 |
[out] | referenceAreaPtr | The reference area of the rotor |
TiglReturnCode tiglRotorGetSolidity | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | solidityPtr | ||
) |
Returns the solidity of the rotor.
The rotor solidity ratio is calculated by dividing the total blade planform area by the rotor disk area.
Fortran syntax:
tigl_rotor_get_solidity(integer cpacsHandle, int rotorIndex, real solidityPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the rotor to calculate the area, starting at 1 |
[out] | solidityPtr | The reference area of the rotor |
TiglReturnCode tiglRotorGetSurfaceArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | surfaceAreaPtr | ||
) |
Returns the surface area of the rotor.
The returned surface area is the sum of the surface areas of all attached rotor blades.
Fortran syntax:
tigl_rotor_get_surface_area(integer cpacsHandle, int rotorIndex, real surfaceAreaPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the Rotor to calculate the area, starting at 1 |
[out] | surfaceAreaPtr | The surface area of the rotor |
TiglReturnCode tiglRotorGetTipSpeed | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | tipSpeedPtr | ||
) |
Returns the tip speed of the rotor in [m/s].
The rotor tip speed is calculated using the nominal rotation speed of the rotor and the rotor radius.
Fortran syntax:
tigl_rotor_get_tip_speed(integer cpacsHandle, int rotorIndex, real tipSpeedPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the rotor to calculate the area, starting at 1 |
[out] | tipSpeedPtr | The tip speed of the rotor |
TiglReturnCode tiglRotorGetTotalBladePlanformArea | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | totalBladePlanformAreaPtr | ||
) |
Returns the total blade planform area of the rotor.
This function calculates the sum of the planform areas of all blades attached to the rotor hub.
Fortran syntax:
tigl_rotor_get_total_blade_planform_area(integer cpacsHandle, int rotorIndex, real totalBladePlanformAreaPtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the rotor to calculate the area, starting at 1 |
[out] | totalBladePlanformAreaPtr | The total blade planform area of the rotor |
TiglReturnCode tiglRotorGetUID | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
char ** | uidNamePtr | ||
) |
Returns the UID of a rotor. The string returned must not be deleted by the caller via free(). It will be deleted when the CPACS configuration is closed.
Fortran syntax:
tigl_rotor_get_uid(integer cpacsHandle, integer rotorIndex, character*n uIDNamePtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | The index of a rotor, starting at 1 |
[out] | uidNamePtr | The uid of the rotor |
Usage example:
TiglReturnCode returnCode; char* uidPtr = 0; returnCode = tiglRotorGetUID(cpacsHandle, rotor, &uidPtr); printf("The UID of the rotor is %s\n", uidPtr);
TiglReturnCode tiglRotorGetVolume | ( | TiglCPACSConfigurationHandle | cpacsHandle, |
int | rotorIndex, | ||
double * | volumePtr | ||
) |
Returns the volume of the rotor.
The returned volume is the sum of the volumes of all attached rotor blades.
Fortran syntax:
tigl_rotor_get_volume(integer cpacsHandle, int rotorIndex, real volumePtr, integer returnCode)
[in] | cpacsHandle | Handle for the CPACS configuration |
[in] | rotorIndex | Index of the rotor to calculate the volume, starting at 1 |
[out] | volumePtr | The volume of the rotor |