Skip to content

How Do I

Greg Sjaardema edited this page Feb 2, 2019 · 10 revisions

How Do I

  • Apply displacements at a particular step to the coordinates?

    • Grepos -- DEFORM STEP {step#}
    • The displacements at the specified step will be added to the coordinates of the model and then the displacements at that step will be zeroed. All other displacements and fields will be left as is.
  • Delete all elements with a specified field value?

    • Algebra -- FILTER ELEMENT {variable} {LT|LE|EQ|GE|GT} {value} TIME {time_step}
  • Convert structured mesh to unstructured mesh

    • struc_to_unstruc {input.cgns} {output.exodus}
    • Input currently is limited to CGNS which is the only current input format which supports structured mesh.
    • Output is Exodus, but could easily be modified to permit unstructured CGNS output.
    • It is primarily a tool that I used to test my CGNS reader/writer during development, but it should work for most CGNS structured meshes. Parallel is still somewhat a work in progress, but serial should work.
  • get a list of the times with better precision (i.e. 1729.34124) than the “explore” “list times” command gives me:

    • In Explore -- precision {low|normal|high|#digits}
    • This also controls the precision of field value output and other floating point data (coordinates, ...)
  • strip out all but the last solution from an exodus file?

    • ejoin – steps LAST
    • grepos … delete step 1 to 29
    • algebra … save all<newline>nintv 1
    • epu -- epu -auto -steps LAST {filename.##.00} (If files are decomposed for parallel)
  • write an input file that can be read by {codename}.

    • You can just redirect input: {codename} < {input_file}
  • Determine which element blocks are adjacent (share nodes) or which sidesets touch which element blocks?

    • io_info -- io_info --adjacencies {filename}
    • The output will show which blocks and surfaces are adjacent to which other blocks/surfaces.