Command Line Interface

automesh --help

     @@@@@@@@@@@@@@@@
      @@@@  @@@@@@@@@@
     @@@@  @@@@@@@@@@@
    @@@@  @@@@@@@@@@@@    automesh: Automatic mesh generation
      @@    @@    @@      Chad B. Hovey <chovey@sandia.gov>
      @@    @@    @@      Michael R. Buche <mrbuche@sandia.gov>
    @@@@@@@@@@@@  @@@
    @@@@@@@@@@@  @@@@     Notes:
    @@@@@@@@@@ @@@@@ @    - Input/output file types are inferred.
     @@@@@@@@@@@@@@@@     - Scaling is applied before translation.

Usage: automesh [COMMAND]

Commands:
  convert  Converts between segmentation input file types
  mesh     Creates a finite element mesh from a segmentation
  smooth   Applies smoothing to an existing mesh file
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Example

Convert a Numpy segmentation file to an Abaqus input file:

automesh mesh --input single.npy --output single.inp

The terminal output:

    automesh 0.1.10
     Reading single.npy
        Done 141.917µs
     Meshing single.inp
        Done 155.628µs
     Writing single.inp
        Done 150.88µs

The resulting Abaqus input file:

*HEADING
autotwin.automesh
version 0.1.10
autogenerated on 2024-10-15 18:00:00.989487426 UTC
**
*NODE, NSET=ALLNODES
    1,      0.000000e0,      0.000000e0,      0.000000e0
    2,      1.000000e0,      0.000000e0,      0.000000e0
    3,      0.000000e0,      1.000000e0,      0.000000e0
    4,      1.000000e0,      1.000000e0,      0.000000e0
    5,      0.000000e0,      0.000000e0,      1.000000e0
    6,      1.000000e0,      0.000000e0,      1.000000e0
    7,      0.000000e0,      1.000000e0,      1.000000e0
    8,      1.000000e0,      1.000000e0,      1.000000e0
**
*ELEMENT, TYPE=C3D8R, ELSET=EB1
    1,    1,    2,    4,    3,    5,    6,    8,    7
**
*SOLID SECTION, ELSET=EB1, MATERIAL=Default-Steel