PART
A collector for one or many components used to toggle on and off views.
Syntax
PART(“name”) {parameters}
Qualifier
User-given name
Parameters
- name (string)
- User-given name of the command. The instance of a given command is referenced using this parameter.
- show_boundary_names (string)
- Comma separated list of boundary names to show. Note: Boundary names can be matched using unix style wildcards. _all selects all boundaries. For uFX based datasets using Ensight files, the string should include a * after the part name to account for the spaces within that name string.
- hide_boundary_names (string)
- Comma separated list of boundary names to hide.Note: Boundary names can be matched using unix style wildcards. _all selects all boundaries. For uFX based datasets using Ensight files, the string should include a * after the part name to account for the spaces within that name string.
- display_type (enum)
- Specify how to display the surface
- transparency (real)
- Level of transparency
- color_type (enum)
- Options: constant, contour
- contour_function (string)
- Scalar quantity to be displayed on part (pressure, velocity, etc., see Calculate Context Help). Used with color_type=contour.
- line_thickness (enum)
- Thickness of lines for mesh display, feature line display and contour_line display type.
- num_contours (integer)
- Number of contour lines to be displayed when display_type=contour_lines
- contour_line_min (real)
- Minimum value of the contour line range, when display_type=contour_lines
- contour_line_max (real)
- Maximum value of the contour line range, when display_type=contour_lines
- contour_colormap_style (enum)
- Type of contour coloring style, when color_type=contour.
- contour_color_numbers (integer)
- Number of discrete contour colors, when color_type=contour and contour_colormap_style=filled.
- vector_subset (boolean)
- Method used to subset the vectors displayed on the cut_plane, when display_type=vectors
- vector_subset_percentage (integer)
- Percentage of vectors to use, when display_type=vectors and vector_subset=on
- vector_scale_factor (real)
- Factor to scale vector tails by, when display_type=vectors
- vector_length_type (enum)
- Type of vector length scaling, when display_type=vectors
- constant_color (enum)
- Constant color of the part. Used with color_type=constant.
- legend_display (boolean)
- Flag to toggle on or off the visibility of the legend
- num_labels (integer)
- Number of labels used in legend
- legend_min (real)
- Minimum value in legend
- legend_max (real)
- Maximum value in legend
- legend_orientation (enum)
- Specify orientation of the legend
- legend_location (enum)
- Location of the legend on the image
- legend_use_local (enum)
- Boolean to control the local legend range. If active, will set for local entity range.
- legend_title (string)
- Legend name to be used for the provided contour function, defaults to internal name.
- threshold_clipping (boolean)
- Specify if the part should be clipped by the specified threshold
- threshold_function (string)
- Function to be used as threshold
- threshold_min (real)
- Minimum threshold value
- threshold_max (real)
- Maximum threshold value
- colormap_name (enum)
- Colormap name to use for displaying the scalar function values
Example
PART("Full vehicle - white"){
show_boundary_names = {"_all"}
hide_boundary_names = {"*_inv"}
display_type = solid
color_type = constant
constant_color = "white"}
}
PART("Static Cp Narrow"){
show_boundary_names = {"_all"}
hide_boundary_names = {"*uFX_domain*,*baffle_back*","*fluid_volume*","Belt*"}
display_type = solid
color_type = contour
contour_function = time_avg_pressure_coefficient
legend_title = "Cp Time Average"
legend_display = on
legend_min = minCp_medium
legend_max = maxCp_medium
legend_location = top_center
legend_orientation = horizontal
colormap_name = "Rainbow Desaturated"
}
IMAGE("Static Cp Narrow"){
parts = {"Static Cp Narrow"}
views = {"front","front_left_top","rear_left_top","rear","top","left","bottom","front_left_bottom","front_right_bottom"}
zoom_factors = {2.0,1.2,1.2,2.0,1.5,1.5,1.5,1.2,1.2}
image_type = static
}
PART("Static Cp More Narrow Contour Black"){
show_boundary_names = {"_all"}
hide_boundary_names = {"*uFX_domain*,*baffle_back*","*fluid_volume*","Belt*"}
display_type = contour_lines
contour_function = time_avg_pressure_coefficient
color_type = constant
constant_color = "black"
line_thickness = fine
num_contours = 6
contour_line_min = minCp_narrow
contour_line_max = maxCp_narrow
}
IMAGE("Static Cp More Narrow Contour Black"){
parts = {"Static Cp More Narrow","Static Cp More Narrow Contour Black"}
views = {"front"}
zoom_factors = {2.0}
image_type = static
}
PART("Drag Coefficient"){
show_boundary_names = {"_all"}
hide_boundary_names = {"*uFX_domain*,*baffle_back*","*fluid_volume*","Belt*"}
display_type = solid
color_type = contour
contour_function = time_avg_x_total_coefficient
legend_title = "Drag Coefficient"
legend_display = on
legend_min = minDrag_narrow
legend_max = maxDrag_narrow
legend_location = top_center
legend_orientation = horizontal
colormap_name = "Rainbow Desaturated"
}
IMAGE("Drag Coefficient Animation"){
parts = {"Drag Coefficient"}
views = {"front","front_left_top","}
zoom_factors = {2.0,1.2}
image_type = animation
start_frame = 1
end_frame = 200
frame_increment = 4
frame_rate = 5
}