Skip to content

module myna.application.exaca.meltpool


function aggregate_melt_times

aggregate_melt_times(
    exaca_input,
    export_name='melt_time.vtu',
    verbose=False,
    decimal_precision=8
)

Reads an ExaCA input file to load the associated temperature files and generate a VTK file with the melt times of each point ("ts") and the gradient of the melt times ("dts_x", "dts_y", "dts_z")

Args:

  • exaca_input: (str) path to ExaCA input file
  • export_name: (str) name of exported .vtu file
  • verbose: (bool) controls output written to stdout
  • decimal_precision: (int) controls the precision for merging XYZ coordinates between different temperature files

function merge_melt_times_with_rgb

merge_melt_times_with_rgb(
    file_rgb,
    file_melt,
    export_file,
    decimal_precision=8,
    verbose=False,
    num_ref_ids=10000
)

Merges an ExaCA VTK file with RGB values with the melt time .vtu file generated by aggregate_melt_times().

Args:

  • file_rgb: (str) path to ExaCA VTK with RGB values
  • file_melt: (str) path to the .vtu file with melt times
  • export_file: (str) name of exported .vtk file
  • decimal_precision: (int) controls the precision for merging XYZ coordinates between different temperature files
  • verbose: (bool) controls output written to stdout
  • num_ref_ids: (int) number of reference ids used for ExaCA grain ids, allows for adding a "Reference ID" as a data field

This file was automatically generated via lazydocs.