To create more complex meshes one can use also tetrahedral mesh, which can be obtained (with one intermediate step) from 3D modeling software, like Blender. Software tools for 3D modeling usually do not provide mesh itself, however they can save some files, e.g. in STL format that can be directly used for mesh generation. Then, a mesh generating software is used, like Tetgen. This outputs .node and .ele files that GSvit can read.
Sample parameter file: cow.
A 300x300x300 computational domain with cow model, hit by total/scattered field source. The original model used for creating the mesh was provided courtesy of Yutaka Ohtake by the AIM@SHAPE Shape Repository.
Note that the mesh creation, namely the conversion from your favorite 3D modeler via Tetgen can be sometimes complicated process. In general it is good to start with simple objects and if the whole toolchain works, increase the complexity.
Here is an example of the procedure step-by-step, for much simpler object than a cow. We will use Blender for this. There are many manuals available for Blender so we won't repeate them (and we are not experts on Blender modeling anyway), so there are just few points what we can do to create a particle:
Once we have tetrahedral mesh prepared, we can add this to vector material objects file. Remove spherical particle that we used before and write
21 particle.1 0 0 90 100 100 30 30 30 0 3 1 0 0
This means adding mesh (type of object = 21), written in particle.1.ele and particle.1.node, using no material attributes, magnifying it by factor of 30,30,30 (in x,y,z direction) and shifting to 90, 100, 100. It will be filled with dielectric material with relative permittivity of 3. Note that particle needs to be within the force evaluation box. This is how it might look after setting it up, if you open the files in XSvit:
Sample parameter file: Blender particle.
A 300x300x300 computational domain with a tetrahedral mesh based particle model, hit by total/scattered field source. A force acting on particle is calculated as well.