result#

data.result(p0: str) int#

Set the name for the file containing result information.

The usage of a result file depends on the data format. For some formats the result file is not necessary, while for others the result file either directly contains result information or may be another file containing information pointing to the various files that may exist.
The filename is concatenated with the path defined via the “data: path” command.
It is not possible to read a result file without also specifying a geometry file, or having specified a geometry file previously.
Args:
p0:

‘filename’ result file name

Examples:
#
# Read a geometry and result file,
# create a part,
# rotate the scene,
# and color the part by a variable
#
ensight.data.format("ensight")
ensight.data.path("/usr/tmp")
ensight.data.geometry("cube.geom")
ensight.data.result("cube.res")
ensight.data.read()
ensight.data_partbuild.begin()
ensight.data_partbuild.data_type("unstructured")
ensight.data_partbuild.select_begin(1)
ensight.data_partbuild.create()
ensight.data_partbuild.end()
ensight.view_transf.rotate(-91.339279,2.611849,0.000000)
ensight.view_transf.rotate(18.749998,42.660221,0.000000)
ensight.variables.activate("temperature")
ensight.part.select_all()
ensight.part.modify_begin()
ensight.part.colorby_palette("temperature")
ensight.part.modify_end()
Returns:

zero on success, non-zero on error