Read

plot3d.read.read_ap_nasa(filename: str)[source]
Reads an AP NASA File and converts it to Block format which can be exported to a plot3d file

AP NASA file represents a single block. The first 7 integers are il,jl,kl,ile,ite,jtip,nbld

Parameters:

filename (str) – location of the .ap file

Returns:

block (Block): file in block format nbld (int): Number of blades

Return type:

Tuple containing

plot3d.read.read_plot3D(filename: str, binary: bool = True, big_endian: bool = False, read_double: bool = True)[source]

Reads a plot3d file and returns Blocks

Parameters:
  • filename (str) – name of the file to read, .p3d, .xyz, .pdc, .plot3d?

  • binary (bool, optional) – indicates if the file is binary. Defaults to True.

  • big_endian (bool, optional) – use big endian format for reading binary files

  • read_float (bool, optional) – read floating point. Only affects binary files

Returns:

List of blocks insdie the plot3d file

Return type:

List[Block]

plot3d.read.read_word(f)[source]

Continously read a word from an ascii file

Parameters:

f (io) – file handle

Yields:

float – value from ascii file