Tools for working with mecsemTracer data.
Contributors: Cristian & David
Run pip install git+ssh://git@github.com/MECSEM/pysemfoam.git with your venv activated to install.
VTP data from the raytracer must be preprocessed before usage. This is done by running python -m pysemfoam.preprocessor with the appropriate parameters. Append --help to see them. I always recommend specifying the optical axis instead of letting the program autodetermine it.
The preprocessor will generate a compressed ".msc" data file. This file can be loaded using the pysemfoam.codec.PyMECSEMDataReader class. The load() method returns the processed data array. This array can be passed into a pysemfoam.ray.RayDataManager class which handles interpolation. See the provided examples for more information.