ndf_parser#

Module for facilitating parsing on NDF file.

Classes:

NDFParser(ndf_file_full_name)

Facilitates parsing of NDF file and finding various details about the blade rows.

class ansys.turbogrid.core.ndf_parser.ndf_parser.NDFParser(ndf_file_full_name: str)#

Bases: object

Facilitates parsing of NDF file and finding various details about the blade rows.

Methods:

__init__(ndf_file_full_name)

Initialize the class using name with full path of an NDF file.

get_blade_row_blades()

Get the name of the blade rows and blades in each row.

__init__(ndf_file_full_name: str)#

Initialize the class using name with full path of an NDF file.

Parameters#

ndf_file_full_namestr

Name with full path of the NDF file to be parsed.

get_blade_row_blades() dict#

Get the name of the blade rows and blades in each row.

Returns#

dict

The names of the blade rows and blade in each row return in the form: { “bladerow1” : [“blade1”, ], “bladerow2” : [“blade2”, “splitter1”, ], … }

If a blade row has no name in the NDF file, a name in the form “bladerowIndex” will be assigned where Index is the position of the row in the NDF file among the rows starting at position 1.