-
Notifications
You must be signed in to change notification settings - Fork 9
FreeCAD and ParaView
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 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.
Find us on VKontakte Facebook ResearchGate
- Home
- Motivation and Goals
- Alternatives
- Current Features and Development Roadmap
- What It Is and How It Works
- Preprints and Published Works
- Installation
- Quick start
-
Examples
Single Particle- Single Particle in Free Space
- Single Particle In Uniform Magnetic Field
-
Single Particle In Uniform Electric Field
Electron Beams - Ribbon Beam Contour
- Contour of Ribbon Beam In Uniform Magnetic Field
- Axially Symmetric Beam Contour
- Contour of Axially Symmetric Beam In Uniform Magnetic Field
-
Potential well of cylindrical beam in tube
Other - Conducting Sphere Potential
- Child-Langmuir Law for Planar Diode
- FreeCAD and ParaView
- Code structure
- Supported Config File Sections