format#
- data.format(p0: str) int #
Set the format type for the geometry and result files. (Note that for Server of Servers, the format of this line changes slightly. The term casesos is added before the format_type.)
- Args:
- p0:
‘format_type’
The format type which must be one of the following (or the name of a user defined reader):
ensight
plot3d
fidap
n3s
estet
mpgs4
movie
fluent
ansys
abaqus
case
fast-unstructured
overflow
casesos
- Examples:
# # Read a datafile in case format and load a part from it. # ensight.data.binary_files_are("big_endian") ensight.data.format("case") ensight.data.path("/usr/tmp") ensight.data.geometry("cube.case") 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()
- Returns:
zero on success, non-zero on error