data_type#

data_partbuild.data_type(p0: str) int#

For those formats that contain both structured and unstructured data (EnSight6, EnSight Gold, and some user defined formats), this command indicates which type to create.

Args:
p0:

‘type’

  • unstructured

  • structured

Examples:
ensight.data_partbuild.begin()
# 
# Doing an unstructured ensight part 
# 
ensight.data_partbuild.data_type("unstructured")
# 
# Selecting the first part in the 
# unstructured part building list 
# 
ensight.data_partbuild.select_begin(1)
# 
# Naming it "my_unstructured_part" 
# and creating it 
# 
ensight.data_partbuild.description("my_unstructured_part")
ensight.data_partbuild.create()
# 
# Now doing a structured ensight part 
# 
ensight.data_partbuild.data_type("structured")
# 
# Selecting the first part in the 
# structured part building list 
# (Note this is not the same part as the 
# unstructured one selected above) 
# 
ensight.data_partbuild.select_begin(1)
# 
# Setting ijk ranges, step_by, delta values, etc. 
# and creating it. 
# 
ensight.data_partbuild.domain("all")
ensight.data_partbuild.noderange_i(1,3)
ensight.data_partbuild.noderange_j(1,3)
ensight.data_partbuild.noderange_k(1,3)
ensight.data_partbuild.nodestep(1,1,1)
ensight.data_partbuild.nodedelta(0,0,0)
ensight.data_partbuild.description("my_structured_part")
ensight.data_partbuild.create()
ensight.data_partbuild.end()
Returns:

zero on success, non-zero on error