It is possible to run postprocessing analyzers within the VSimComposer environment. These analyzers can process data generated in a simulation and write that data to a .h5 file that can then be visualized like any other simulation data.
Here, we will discuss the basic process of using one of the many analyzers included with VSim. It is also possible to import custom analysis scripts. For more details on these, please see VSim Customization: Create Your Own Script.
In this section, we will go through the basics of running analyzers, and will incorporate the two stream example (visual setup) to illustrate the processes.
First we open an example and run a simulation in order to get some data to analyze. Open the two stream example and follow along:
See Fig. 92.
VSimComposer allows the user to select a analzer from the Analyze window. You can type in the name of an analyzer to filter and shorten the list or double-click any analyzer in the list. You can also select the Import Analyzer button at the bottom to import your own customized script.
For the two stream example, wait until the simulation run has completed and then click on the Analyze tab located below the Run tab on the left hand side of the screen.
See Fig. 93.
This process should be the same for both visual and text-based simulations.
However, there are different processes for keeping analyzers available for your simulation through closing and reopening. For visual setup, simply run your simulation and analyzer of choice as usual, and then return to the Setup tab and select the Save and Setup button in the top right. This process saves your analyzer in the .sdf file for your simulation.
The data generated from the execution of an analyzer will be stored as a .vsh5 file and is visualizable underneath the Visualize tab. Be aware that the analyzer may also produce data that it writes to the screen or as hdf5 output.
Finishing up with the two stream example, the data we got from computePtclNumDensity.py can be visualized through the following:
You can explore other visualization options in this window, or can rerun the simulation with different parameters to investigate further.