Skip to content

module myna.application.cubit.vtk_to_exodus_region.app

Define the application class functionality for the CubitVtkToExodusApp class


class CubitVtkToExodusApp

Myna application to convert an ExaCA VTK file with an ID array into an Exodus mesh with the original ID array stored on the corresponding mesh blocks.

method CubitVtkToExodusApp.__init__

__init__()

property CubitVtkToExodusApp.component

Return the corresponding component class. This will be None if class name is not in the Component lookup dictionary


property CubitVtkToExodusApp.name


property CubitVtkToExodusApp.path


property CubitVtkToExodusApp.template

Set the path to the template directory based on the path to the app directory


method CubitVtkToExodusApp.build_sculpt_command

build_sculpt_command(exodus_prefix, vtk_data)

Build the Sculpt command for meshing the SPN volume.


method CubitVtkToExodusApp.ensure_exodus_variable

ensure_exodus_variable(exodus_object, variable_name, dtype)

Ensure an Exodus variable exists and return it.


method CubitVtkToExodusApp.execute

execute()

Execute all cubit/vtk_to_exodus_region cases.


method CubitVtkToExodusApp.format_sculpt_float

format_sculpt_float(value)

Format overlay-grid coordinates as plain decimal floats for Sculpt.


method CubitVtkToExodusApp.generate_material_id_file

generate_material_id_file(vtk_data_array, output_directory)

Convert a VTK file with a material ID field into a Cubit-compatible material id file (.spn) and return dictionary with metadata


method CubitVtkToExodusApp.get_centroid_bbox_size

get_centroid_bbox_size()

Return the configured centroid clip size as x, y, z lengths.


method CubitVtkToExodusApp.get_centroid_clip_voi

get_centroid_clip_voi(vtk_data)

Return a centroid-centered VOI for the configured bounding box.


method CubitVtkToExodusApp.get_clipped_vti_path

get_clipped_vti_path(case_directory)

Return the cache path for a centroid-clipped VTI file.


method CubitVtkToExodusApp.get_orientation_chunk_size

get_orientation_chunk_size(exodus_file, num_blocks)

Get the number of blocks to map per serial orientation segment.


method CubitVtkToExodusApp.get_overlay_grid_bounds

get_overlay_grid_bounds(vtk_data)

Return overlay-grid bounds that align Sculpt cells to VTK sample points.


method CubitVtkToExodusApp.get_region_neighbor_counts

get_region_neighbor_counts(grain_ids, region_mask)

Count face-adjacent neighboring grain ids for a connected region.


method CubitVtkToExodusApp.get_replacement_grain_id

get_replacement_grain_id(neighbor_counts)

Choose the neighboring grain id with the strongest shared interface.


method CubitVtkToExodusApp.get_vtk_file_data

get_vtk_file_data(vtk_file)

Extract the downsampled data object from a VTK/VTI image file.


method CubitVtkToExodusApp.load_vtk_image_data

load_vtk_image_data(vtk_file)

Load legacy VTK structured points or XML image data.


method CubitVtkToExodusApp.merge_small_grain_regions

merge_small_grain_regions(vtk_data)

Merge small regions and enforce one contiguous region per grain id.


method CubitVtkToExodusApp.mesh_all_cases

mesh_all_cases()

Generate Exodus mesh files for all cases in the Myna workflow step


method CubitVtkToExodusApp.mesh_vtk_file

mesh_vtk_file(vtk_file, exodus_file)

Meshes a VTK file containing a structured points array based on the specified array name (self.args.field)


method CubitVtkToExodusApp.parse_execute_arguments

parse_execute_arguments()

method CubitVtkToExodusApp.prepare_vtk_input_file

prepare_vtk_input_file(vtk_file, case_directory)

Return the input image file to mesh, caching a centroid clip when requested.


method CubitVtkToExodusApp.write_clipped_vti

write_clipped_vti(vtk_file, clipped_vti_file)

Clip the source image around its centroid and write a cached VTI file.


method CubitVtkToExodusApp.write_exodus_block_data

write_exodus_block_data(exodus_object, elem_orig_ids, df_ref_ids, exodus_file)

Write original grain ids and Euler-angle block data to the Exodus file.


This file was automatically generated via lazydocs.