Offline post-processing tool driving the derived-output pipelines. More...
Go to the source code of this file.
Functions | |
| PetscErrorCode | SetupPostProcessSwarm (UserCtx *user, PostProcessParams *pps) |
| Implementation of SetupPostProcessSwarm(). | |
| PetscErrorCode | EulerianDataProcessingPipeline (UserCtx *user, PostProcessParams *pps) |
| Implementation of EulerianDataProcessingPipeline(). | |
| PetscErrorCode | WriteEulerianFile (UserCtx *user, PostProcessParams *pps, PetscInt ti) |
| Implementation of WriteEulerianFile(). | |
| static PetscErrorCode | WriteWindowStatistics (UserCtx *user, PostProcessParams *pps, const PicurvWindowDefinition *definition, const PicurvWindowStorage *storage, PetscBool want_vtk, PetscBool want_csv, PetscInt ti) |
| Writes one window's or ensemble's derived output for a step. | |
| static PetscErrorCode | FillStatisticsEnsemble (UserCtx *user, PostProcessParams *pps, PetscInt index, PicurvWindowStorage *storage) |
| Fills one recipe ensemble's storage from the loaded step. | |
| PetscErrorCode | FieldStatisticsPipeline (UserCtx *user, PostProcessParams *pps, PetscInt ti) |
| Implementation of FieldStatisticsPipeline(). | |
| PetscErrorCode | ParticleDataProcessingPipeline (UserCtx *user, PostProcessParams *pps) |
| Implementation of ParticleDataProcessingPipeline(). | |
| PetscErrorCode | GlobalStatisticsPipeline (UserCtx *user, PostProcessParams *pps, PetscInt ti) |
| Implementation of GlobalStatisticsPipeline(). | |
| PetscErrorCode | WriteParticleFile (UserCtx *user, PostProcessParams *pps, PetscInt ti) |
| Implementation of WriteParticleFile(). | |
| PetscErrorCode | ResolvePostProcessingSteps (PostProcessParams *pps, PetscInt **steps, PetscInt *count) |
| Implementation of ResolvePostProcessingSteps(). | |
| int | main (int argc, char **argv) |
| Entry point for the postprocessor executable. | |
Offline post-processing tool driving the derived-output pipelines.
Reads committed checkpoint bundles over a step range and dispatches the Eulerian, Lagrangian, particle-statistics, and field-statistics pipelines that a recipe selected, writing one output family per enabled pipeline.
Definition in file postprocessor.c.
| PetscErrorCode SetupPostProcessSwarm | ( | UserCtx * | user, |
| PostProcessParams * | pps | ||
| ) |
Implementation of SetupPostProcessSwarm().
Creates a new, dedicated DMSwarm for post-processing tasks.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 21 of file postprocessor.c.
| PetscErrorCode EulerianDataProcessingPipeline | ( | UserCtx * | user, |
| PostProcessParams * | pps | ||
| ) |
Implementation of EulerianDataProcessingPipeline().
Parses the processing pipeline string and executes the requested kernels.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 105 of file postprocessor.c.
| PetscErrorCode WriteEulerianFile | ( | UserCtx * | user, |
| PostProcessParams * | pps, | ||
| PetscInt | ti | ||
| ) |
Implementation of WriteEulerianFile().
Orchestrates the writing of a combined, multi-field VTK file for a single time step.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 197 of file postprocessor.c.
|
static |
Writes one window's or ensemble's derived output for a step.
Local to this translation unit. The .vts carries every requested output pointwise; with csv and homogeneous directions selected, a profile CSV carries them merged over those directions.
Definition at line 299 of file postprocessor.c.
|
static |
Fills one recipe ensemble's storage from the loaded step.
Local to this translation unit. A particle ensemble takes each cell's particles as its samples; an Eulerian one takes the cell's own state as its single sample, which is one accepted state of unit weight. A dimensionalized post run has already scaled what it loaded, so the storage is marked as holding physical units and derivation applies no further scale.
Definition at line 360 of file postprocessor.c.
| PetscErrorCode FieldStatisticsPipeline | ( | UserCtx * | user, |
| PostProcessParams * | pps, | ||
| PetscInt | ti | ||
| ) |
Implementation of FieldStatisticsPipeline().
Derives and writes field statistics for the windows a recipe requests.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 383 of file postprocessor.c.
| PetscErrorCode ParticleDataProcessingPipeline | ( | UserCtx * | user, |
| PostProcessParams * | pps | ||
| ) |
Implementation of ParticleDataProcessingPipeline().
Parses and executes the particle pipeline using a robust two-pass approach.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 499 of file postprocessor.c.
| PetscErrorCode GlobalStatisticsPipeline | ( | UserCtx * | user, |
| PostProcessParams * | pps, | ||
| PetscInt | ti | ||
| ) |
Implementation of GlobalStatisticsPipeline().
Executes the global statistics pipeline, computing aggregate reductions over all particles.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 571 of file postprocessor.c.
| PetscErrorCode WriteParticleFile | ( | UserCtx * | user, |
| PostProcessParams * | pps, | ||
| PetscInt | ti | ||
| ) |
Implementation of WriteParticleFile().
Writes particle data to a VTP file using the Prepare-Write-Cleanup pattern.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 620 of file postprocessor.c.
| PetscErrorCode ResolvePostProcessingSteps | ( | PostProcessParams * | pps, |
| PetscInt ** | steps, | ||
| PetscInt * | count | ||
| ) |
Implementation of ResolvePostProcessingSteps().
Resolve the ordered steps one post-processing run processes.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/postprocessor.h.
Definition at line 674 of file postprocessor.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Entry point for the postprocessor executable.
Initializes PETSc, loads post-processing inputs, executes the requested pipelines, and finalizes runtime resources before exit.
Definition at line 747 of file postprocessor.c.