Quick Start#

A first polycrystal in a minute: a tessellation of 100 cells (grains), regularized, and meshed into finite elements.

  1. Install Neper (see Installation).

  2. Generate the tessellation:

    $ neper -T -n 100 -reg 1
    

    This writes the Tessellation File (.tess) n100-id1.tess, a Voronoi tessellation of 100 cells in a unit cube (option -n). Option -reg regularizes it, that is, removes its small edges and faces, so that it can be meshed with high-quality elements.

  3. Mesh the tessellation:

    $ neper -M n100-id1.tess
    

    This writes the Mesh File (.msh) n100-id1.msh, made of 10-node tetrahedral elements (one element set per cell). It can be used directly by FEPX (as simulation.msh), whose results Neper post-processes with the Simulation Module (-S).

  4. Visualize the tessellation and the mesh:

    $ neper -V n100-id1.tess -print tess
    $ neper -V n100-id1.tess,n100-id1.msh -showelt1d all -print mesh
    

    This writes the PNG images tess.png and mesh.png:

    tess mesh

Next: Tessellation Module (-T), Meshing Module (-M) and Visualization Module (-V) describe the modules, and Tutorials gives more examples (see in particular Meshing a Tessellation (-T, -M)).