svalinn / parastell

Parametric 3-D CAD modeling toolset for stellarator fusion devices
MIT License
27 stars 12 forks source link

Adds support for meshing in-vessel components #178

Closed tokamaster closed 1 day ago

tokamaster commented 1 week ago

This pull request introduces a method for generating a tetrahedral mesh of individual in-vessel components and exporting the mesh in .h5m format. The process involves the following steps:

  1. Importing the STEP file: The method imports the STEP file corresponding to the component.
  2. Mesh Generation: Using Cubit, a tetrahedral mesh is created for the imported component.
  3. Exporting Mesh: The resulting meshed volume is exported in .exo format, which is then converted to .h5m using MOAB.

When using the method, the names of the in-vessel components must match the names specified in the radial build dictionary. Also, the mesh size can be customized using the mesh_size argument. More information on mesh sizing functions can be found here.