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 = None, big_endian: bool = None, read_double: bool = None, fortran: bool = None)[source]
Reads a Plot3D file and returns blocks.
When any format parameter is
None(the default), the file format is auto-detected by probing the header and comparing file size against expected sizes for single/double precision.- Parameters:
filename (str) – Name of the file to read, e.g.
.p3d,.xyzor.plot3d.binary (bool, optional) –
Truefor binary,Falsefor ASCII. Auto-detected whenNone.big_endian (bool, optional) – Use big endian format for binary files. Auto-detected when
None.read_double (bool, optional) – Read 8-byte doubles (
True) or 4-byte floats (False). Auto-detected whenNone.fortran (bool, optional) – Read Fortran unformatted binary with record markers. Auto-detected when
None.
- Returns:
List of blocks inside the Plot3D file.
- Return type:
List[Block]