Skip to content

Polycrystalline tensile specimen generation and meshing software

Notifications You must be signed in to change notification settings

tokarevart/tenspec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tenspec

Polycrystalline tensile specimen generation and meshing software.

Installation

  1. Install Gmsh and Neper. They must be available at the terminal as the commands gmsh and neper at run time.
  2. 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.

Usage

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.

Dimensions

Set them in --dims option in the order l1 l2 le r1 r2 r3

Example

$ 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

About

Polycrystalline tensile specimen generation and meshing software

Topics

Resources

Stars

Watchers

Forks