gmsh_scripts
3D structured/unstructured/tetrahedral/hexahedral multi-block mesh generator
with boolean operations based on gmsh
Documentation
Installation
Pip
- Download and install Python
- Install gmsh_scripts
pip install gmsh-scripts
- Create or download input file
{
"metadata": {
"run": {
"factory": "occ"
}
},
"data": {
"class": "block.Matrix",
"matrix": [
[-1, 0, 1],
[-2, 0, 2],
[-3, 0, 3]
]
}
}
- Create mesh
python -m gmsh_scripts matrix.json
Github
- Download and install Python
- Download gmsh_scripts
- Install requirements
pip install -r requirements/prod.txt
- Create or download input file
- Create mesh
python gmsh_scripts/run.py matrix.json
Result
Complex mesh from examples
Create mesh
python -m gmsh_scripts all_heater_plug.json
Plot tree
pin install gmsh_scripts[viz]
python -m gmsh_scripts all_heater_plug.json --plot
Cite
gmsh
Geuzaine and J.-F. Remacle. Gmsh: a three-dimensional finite element mesh generator with built-in pre- and post-processing facilities. International Journal for Numerical Methods in Engineering 79(11), pp. 1309-1331, 2009
gmsh scripts
Butov R.A., Drobyishevsky N.I., Moiseenko E.V., Tokarev Yu. N. Mesh generation for radioactive waste management tasks. Radioactive Waste, 2021, no. 1 (14), pp. 87—95. DOI: 10.25283/2587-9707-2021-1-87-95. (In Russian)
Contacts
Roman Pashkovsky
https://github.com/romanzes637
romapasky@gmail.com
Made in Nuclear Safety Institute of the Russian Academy of Sciences (IBRAE RAN)