Skip to content
  • David DeMarle's avatar
    A new reader for GE/LANL's TRUCHAS simulation files · ab244c3e
    David DeMarle authored
    Truchas is a 3D Multiphysics Simulation of Metal Casting and Processing
    Read about it here: https://github.com/truchas
    
    fill out boilerplate to begin a reader
    hook in hdf5 and read actual geometry
    read in real topology
    start on time and attributes
    hook up temporal dimension
    hook up block segregation
    start to cleanup
    caching hdf5 fd, timesteps, and geometry now.
    cache blockids and topology array
    cleanup cell and block construction
      reorder loop to traverse longest (cells) once and shortest
      (blocks) repeatedly
    clean up access to timestep and check array types
    get array names early and reuse
      will allow GUI to select which to load
      also simplifies heavy data reading code
    start to hook up array and block selection, fix a point array bug
    hook up block selection
    take a swipe at comp warnings
    fix garbage arrays
    correct point arrays
       Essentially I forgot before that point data doesn't have to be
       split up into various block.
       In next optimization pass I will do this much more cleanly.
    optimize by caching blocks and topology
    remove the onerous string compares on every cell to optimize
    fix bug where skipping blocks resulted in no blocks being loaded
    keep one master set of point aligned arrays and share it
    let arrays be either double or int
    fix comp warnings
    prevent stale arrays from hanging around once unselected
    run the doxy and spacing scripts to modernize style
    ab244c3e