3D structured/unstructured/tetrahedral/hexahedral multi-block mesh generator with boolean operations based on gmsh
- 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
pip install -r requirements/prod.txt
- Create or download input file
- Create mesh
python gmsh_scripts/run.py matrix.json
Complex mesh from examples
python -m gmsh_scripts all_heater_plug.json
pin install gmsh_scripts[viz]
python -m gmsh_scripts all_heater_plug.json --plot
Examples Click them!
![Multilayerd Cylinder](https://github.com/images/simple_cylinder.png)
![Simple Torus](https://github.com/images/simple_torus.png)
![Simple Tokamak](https://github.com/images/simple_tokamak.png)
![Simple Stellarator](https://github.com/images/simple_stellarator.png)
![Wells](https://github.com/romanzes637/gmsh_scripts/raw/master/images/wells_parent.png?raw=true)
![Cross section 1](https://github.com/romanzes637/gmsh_scripts/raw/master/images/cross_section_1.png?raw=true)
![Cross section 2](https://github.com/romanzes637/gmsh_scripts/raw/master/images/cross_section_2.png?raw=true)
![Core](https://github.com/romanzes637/gmsh_scripts/raw/master/images/core.png?raw=true)
![Quarter layer](https://github.com/romanzes637/gmsh_scripts/raw/master/images/simple_quarter_layer.png?raw=true)
![Quarter layer with holes](https://github.com/romanzes637/gmsh_scripts/raw/master/images/quarter_layer_with_holes.png?raw=true)
Roman Pashkovsky
https://github.com/romanzes637
Made in Nuclear Safety Institute of the Russian Academy of Sciences (IBRAE RAN)