To facilitate post-processing with ParaView, nanoFluidX and nFX[c] 2021.1 and above produce Python state files. These state files are intended as a starting point for post-processing needs and are fully compatible with ParaView 5.9.1 and above. The state files are written to the PVSTATE directory at the root of the case directory. nanoFluidX state files reference files from OUTPUT, PREVIEW, PHASEINFO, PROBE and MOTION directories. nFX[c] state file references files from PostJobName and MOTION directories. Currently there are four types of state files:

Particle Data - particles.py

This state file uses raw particle field data and may be slow.
1. Loads OUTPUT/particles.pvd and renames it to case name
2. Adds a Threshold filter per FLUID phase and renames them to the phase name
3. Adds an SPH Volume Interpolator per FLUID phase and sets spatial steps and resolution to dx and interpolation volume extents to domain size of the case.
4. Loads MOTION/motion_movingwalls.cfg UTM file, renames it to MOVINGWALLS and activates Ignore Time
5. Adds an Extract Block filter to allow selective visualization of MOVINGWALL phases
6. Loads MOTION/motion_walls.cfg UTM file, renames it to WALLS and activates Ignore Time
7. Adds an Extract Block filter to allow selective visualization of WALL phases and hides them
8. MOTION/*.cfg files load relevant UTM and STL files.

Interpolated Data - PostJobName.py and preview.py

These state files use interpolated field data and are the recommended state files for most post-processing needs.
1. nanoFluidX: Loads PREVIEW/particles.pvd and renames it to case name
2. nFX[c]: Loads PostJobName/AllVars/interpData.pvd and renames it to PostJobName
2. Loads MOTION/motion_movingwalls.cfg UTM file, renames it to MOVINGWALLS and activates Ignore Time
3. Adds an Extract Block filter to allow selective visualization of MOVINGWALL phases
4. Loads MOTION/motion_walls.cfg UTM file, renames it to WALLS and activates Ignore Time
5. Adds an Extract Block filter to allow selective visualization of WALL phases and hides them
6. MOTION/*.cfg files load relevant UTM and STL files.
Phase Integrated Data - phaseinfo_*.py
This state file quickly plots the most frequently used variables in phaseinfo files and circumvents the need to import data in Microsoft Excel or similar packages. The state file may be used to follow the progress of a simulation during runtime.
Note: All other variables not plotted by default are also accessible from the pipeline. Usable as of ParaView 5.9.0.
1. Loads all files under PHASEINFO and renames them to phasename Data
2. Adds a Plot Data filter per file and renames them to phasename Plot
3. Assigns a color to each variable in all phaseinfo files on a round robin basis. This is intended to reduce the chances of repeating colors on the same variable of different phaseinfo files.
4. Assigns a legend name to each variable as columnname phasename to help with distinguishing the lines in plot layouts.
6. Adds the following layouts and sets the relevant axes titles per FLUID phaseinfo:
1. Fluid CoM: FLUID phase center of mass in X, Y and Z
2. Fluid nRho: number of particles satisfying $\rho /\rho 0>1.1$ and $\rho /\rho 0>1.2$ conditions for each FLUID phase
Probe Information - probeinfo_*.py

This state file quickly plots the most frequently used variables in probeinfo files and circumvents the need to import data in Microsoft Excel or similar packages. The state file may be used to follow the progress of a simulation during runtime.

Note: All other variables not plotted by default are also accessible from the pipeline. Usable as of ParaView 5.9.0.
1. Loads all files under PROBE and renames them to probename_probetype Data
2. Adds a Plot Data filter per file and renames them to probename_probetype Plot
3. Assigns a color to each variable in all probeinfo files on a round robin basis. This is intended to reduce the chances of repeating colors on the same variable of different probeinfo files.
4. Assigns a legend name to each variable as columnname probename_probetype to help with distinguishing the lines in plot layouts.
6. Adds the following layouts and sets the relevant axes titles per volume probe:
1. Volprobe Pressure: pressure versus time for each volume probe
2. Volprobe Density: density versus time for each volume probe
7. Adds the following layouts and sets the relevant axes titles per surface and floowrate probes:
1. Srf/flrprobe nPart: number of sampled particles versus time per probe
2. Srf/flrprobe Velocity: average velocity of the sampled particles versus time per probe
3. Srf/flrprobe Flowrate: total volume flowrate for all phases versus time per probe
8. Adds the following layouts and sets the relevant axes titles per solid probe:
1. Sld probe Force: force versus time for each solid probe
2. Sld probe Torque: torque versus time for each solid probe sampling a MOVINGWALL phase

Particle Data - particles.pvd

Raw particle field data can be loaded by opening /OUTPUT/particles.pvd.

Interpolated Data - interpData.pvd

Intepolated field data can be loaded by opening /<PostJobName>/AllVars/interpData.pvd.

Time Averaged Interpolated Data - timeAverage_AllVars.vti

Time averaged intepolated field data can be loaded by opening /<PostJobName>/AllVars/timeAverage_AllVars.vti.

STL Wall Bodies - motion_walls.cfg and motion_movingwalls.cfg

STL files for the wall bodies can be loaded by opening /MOTION/motion_walls.cfg and /MOTION/motion_movingwalls.cfg

Phase Information - phaseinfo_*.txt

Phase information can be loaded by opening /PHASEINFO/<phasename_info.txt

Probe Information - probeinfo_*.txt

Probe information can be loaded by opening /PROBEINFO/<probename_info.txt