nodestep#

data_partbuild.nodestep(p0: float, p1: float, p2: float) int#

Specify i, j, k step-by values to use in creating a structured part. Values greater than 1 will cause original cells to be combined appropriately into larger elements - producing a coarser grid.

This command is used for EnSight6, EnSight Gold, and User-Defined data formats. This is used when a coarser approximation of the original data is desired. Typically this reduction in the apparent resolution of the model is desired in order to be able to reasonably display very large models.
Args:
p0:

‘i_step’ step-by value for the I, J, K directions

p1:

‘j_step’ step-by value for the I, J, K directions

p2:

‘k_step’ step-by value for the I, J, K directions

Examples:
# 
# This example causes the i and j directions to have cells 
# that are made up of 4 original cells each. However, in 
# the k direction, the original thickness is retained. 
# 
ensight.data_partbuild.begin()
ensight.data_partbuild.domain("all")
ensight.data_partbuild.description("coarse_in_ij_part")
ensight.data_partbuild.noderange_i(1,39)
ensight.data_partbuild.noderange_j(1,15)
ensight.data_partbuild.noderange_k(1,28)
ensight.data_partbuild.nodestep(2,2,1)
ensight.data_partbuild.nodedelta(0,0,0)
ensight.data_partbuild.create()
ensight.data_partbuild.end()
Returns:

zero on success, non-zero on error