plot3dread_as#

data.plot3dread_as(p0: str) int#

When the format is plot3d, specifies how the file is formatted.

If the user does not specify, EnSight will attempt to determine the binary nature of the data files.
It must be specified before a “data: read” command is given.
All files (geometry, result, and measured) must be of the same binary nature.
Args:
p0:

‘binary_flag’

  • The format flag which must be on of:

  • ascii

  • c_binary

  • fortran_binary

Examples:
#
# Read a c binary plot3d file and extract a part.
#
ensight.data.format("plot3d")
ensight.data.plot3diblank("OFF")
ensight.data.plot3dmulti_zone("OFF")
ensight.data.plot3dread_as("c_binary")
ensight.data.plot3ddimension("3d")
ensight.data.path("/usr/tmp")
ensight.data.geometry("shuttle.xyz")
ensight.data.result("shuttle.q")
ensight.data.read()
ensight.data_partbuild.begin()
ensight.data_partbuild.data_type("structured")
ensight.data_partbuild.select_begin(1)
ensight.data_partbuild.domain("all")
ensight.data_partbuild.noderange_i(1,52)
ensight.data_partbuild.noderange_j(1,63)
ensight.data_partbuild.noderange_k(1,1)
ensight.data_partbuild.nodestep(1,1,1)
ensight.data_partbuild.nodedelta(0,0,0)
ensight.data_partbuild.create()
Returns:

zero on success, non-zero on error