bladex.blade.Blade.generate_iges

Blade.generate_iges(upper_face=None, lower_face=None, tip=None, maxDeg=1, display=False, errors=None)[source]

Generate and export the .iges CAD for the blade upper face, lower face, and tip. This method requires PythonOCC to be installed.

Parameters:
  • upper_face (string) – if string is passed then the method generates the blade upper surface using the BRepOffsetAPI_ThruSections algorithm, then exports the generated CAD into .iges file holding the name <upper_face_string>.iges. Default value is None
  • lower_face (string) – if string is passed then the method generates the blade lower surface using the BRepOffsetAPI_ThruSections algorithm, then exports the generated CAD into .iges file holding the name <lower_face_string>.iges. Default value is None
  • tip (string) – if string is passed then the method generates the blade tip using the BRepOffsetAPI_ThruSections algorithm in order to close the blade, then exports the generated CAD into .iges file holding the name <tip_string>.iges. Default value is None
  • maxDeg (int) – Define the maximal U degree of generated surface. Default value is 1
  • display (bool) – if True, then display the generated CAD. Default value is False
  • errors (string) – if string is passed then the method writes out the distances between each discrete point used to construct the blade and the nearest point on the CAD that is perpendicular to that point. Default value is None

We note that the blade object must have its radial sections be arranged in order from the blade root to the blade tip, so that generate_iges method can build the CAD surface that passes through the corresponding airfoils. Also to be able to identify and close the blade tip.