Polycrystalline tensile specimen generation and meshing software.
- Install Gmsh and Neper.
They must be available at the terminal as the commands
gmsh
andneper
at run time. - Install tenspec with
cargo install --git https://github.com/tokarevart/tenspec.git
. If you want to install Rust/Cargo, this is probably the easiest way: https://www.rustup.rs.
First use tess
module to generate initial tesselation,
then use reg
module to regularize that tesselation
and only then mesh regularized tesselation with mesh
module.
Every time you use a module its last result is cached
in ./tenspec-cache
directory, so, for example, you don't need
to generate and regularize tesselation multiple times to create meshes with
different characteristic length.
Set them in --dims
option in the order l1 l2 le r1 r2 r3
$ tenspec tess -n 20 --dims 25 8 1 6 2 6
$ tenspec reg --fmax 20 --sel 3 --mloop 5
$ tenspec mesh --cl 3 -o tenspec-rough.msh # shown in the image below
$ tenspec mesh --cl 1 -o tenspec.msh2
$ tenspec mesh --cl 0.3 -o tenspec-fine.key