1. Workflow
1.1. Using MagnetTools to define Design
-
create optimized axi geometry
-
run
opt2yml
to create the cfg files for HiFiMagnet Salome Plugin
1.2. Using HiFiMagnet Salome Plugin to create CAD and generate meshes
-
fill in the missing data into Salome yaml cfg files
-
run the CAD generation
-
eventually add
Air
-
mesh
-
improve the mesh
1.3. Prepare the mesh for HPC
The mesh created with HiFiMagnet Salome is in med
format.
Depending on the version of Feel++ used this format may not be supported.
So before running any simulation you have to convert the mesh to gmsh V2
format:
gmsh -bin -0 mesh.med -o mesh.msh
Then you have eventually to partition the mesh to use it on HPC:
feelpp_mesh_partitioner [--msh.scale=0.001] --ifile mesh.msh -ofile mesh-np4 --part 4 --nochdir
where part
denotes the number of processors (4 in our example) you want to use.
The option --msh.scale=0.001
enables to rescale the mesh file.
This will create new files mesh-np4.json
and mesh-np4.h5
ready for running.
HiFiMagnet Salome CAD geometries are defined in As a consequence, do not forget to rescale the mesh before running simulation.
Use |