FreeCAD and ParaView - epicf/ef GitHub Wiki
FreeCAD
FreeCAD module allows to visualize placement of particle sources and inner regions inside computation domain. Ultimately, it generates config file, which can be used by Ef.
To intall module, create a symlink from freecad
folder in ef distribution to FreeCAD module folder:
ln -s /your-ef-dir/freecad/ ~/.FreeCAD/Mod/ef
To use it:
- Create new document in FreeCAD.
- Activate Ef workbench.
- Press 'New minimal ef config' command.
- Add particle sources and inner regions (for these commands to be available, select at least one object in the
ef_conf
group). - Modify properties of the objects.
- When ready, press 'Generate .conf file' command to export config file.
ParaView
Paraview can be used to visualize results of simulation. Install the plugin by command
ln -s /your-ef-dir/paraview/ef.py ~/.config/ParaView/Macros/ef.py
(striktly speaking, it is not a plugin, but a macros).
To use it:
- Press 'ef' macro-command button. Select and load file to visualize.
- Change particles representation ( color by px/py/pz value, etc ... )
- Hide them, when they are no longer necessary.
- To visualize values on the grid, select
spat_mesh_grid
object from the pipeline. Change it's representation tovolume
. - Select quality to visualize (potential/charge density/E_x etc).
ParaView is a very powerful visualization tool. It is capable to perform postprocessing of data. For example, it is possible to visualize a potential on a given plane ('slice' filter, see figure below), show only particle with energies above certain value ('threshold' filter), etc. Consult ParaView tutorial for various possibilities.