Skip to content

Gnerates nodes and volumes from gmsh grid for nodal or particle simulations

License

Notifications You must be signed in to change notification settings

IaPCS/gmsh-to-nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmsh-to-paticles

Generates nodes and volumes from gmsh grid for nodal or particle simulations

Install

Requirements

``sudo pip3 install -r requirements.txt`

Development

Any changes made in the source file will immediately be changed in the installed package:

sudo python3 setup.py develop

Production

sudo python3 setup.py install

Usage

Standalone

python3 convert.py -i <inputfile> -o <outputfile> -t <type> -d <index> -r <rotation>

Parameters:

  • -i : Path to the mesh file
  • -o : Path to the output file (Do not add any file extension)
  • -t : Type of the mesh elements (Only quad and triangles are supported)
  • -d : Add the index of each node to the CSV output (Default is True)
  • '-r' : Rotate the nodes by the given degress (Default is zero degrees)

Examples

2D

Mesh generated with gmesh Nodes and volumes at the center of the cell
Mesh Exodus

About

Gnerates nodes and volumes from gmsh grid for nodal or particle simulations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages