|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
Functions | |
| require_numpy () | |
| Import NumPy, which this checker needs to read the binary VTK payload. | |
| read_vts_point_arrays (path) | |
Read appended raw Float64 point arrays from a PICurv .vts. | |
| read_checkpoint_periodicity (run_dir) | |
| Read the periodicity the solver recorded in any committed checkpoint. | |
| newest_window_vts (viz_dir, window) | |
| Locate the highest-step derived statistics file for one window. | |
| check_periodic_wrap (arrays, nodes, periodic) | |
| Verify every derived array wraps across each periodic layout boundary. | |
| main (argv=None) | |
| Run the consistency check. | |
Variables | |
| str | USAGE = "usage: check_statistics_nodal_consistency.py RUN_DIR VIZ_SUBDIR WINDOW_NAME" |
| check_statistics_nodal_consistency.require_numpy | ( | ) |
Import NumPy, which this checker needs to read the binary VTK payload.
Definition at line 32 of file check_statistics_nodal_consistency.py.
| check_statistics_nodal_consistency.read_vts_point_arrays | ( | path | ) |
Read appended raw Float64 point arrays from a PICurv .vts.
| [in] | path | VTK structured-grid file path. |
Definition at line 41 of file check_statistics_nodal_consistency.py.
| check_statistics_nodal_consistency.read_checkpoint_periodicity | ( | run_dir | ) |
Read the periodicity the solver recorded in any committed checkpoint.
| [in] | run_dir | Run directory to search. |
Definition at line 70 of file check_statistics_nodal_consistency.py.
| check_statistics_nodal_consistency.newest_window_vts | ( | viz_dir, | |
| window | |||
| ) |
Locate the highest-step derived statistics file for one window.
| [in] | viz_dir | Directory holding the post-processing output. |
| [in] | window | Window name. |
Definition at line 87 of file check_statistics_nodal_consistency.py.
| check_statistics_nodal_consistency.check_periodic_wrap | ( | arrays, | |
| nodes, | |||
| periodic | |||
| ) |
Verify every derived array wraps across each periodic layout boundary.
Independent of whether the flow is turbulent, so a steady case still guards the layout boundary. An interior-only producer leaves the two boundary planes holding different partial averages, which this detects directly.
| [in] | arrays | Name-to-array mapping from read_vts_point_arrays(). |
| [in] | nodes | Node extent per direction, in i, j, k order. |
| [in] | periodic | Per-direction periodicity in i, j, k order. |
Definition at line 105 of file check_statistics_nodal_consistency.py.
| check_statistics_nodal_consistency.main | ( | argv = None | ) |
Run the consistency check.
| [in] | argv | Optional argument override for tests. |
Definition at line 141 of file check_statistics_nodal_consistency.py.
| str check_statistics_nodal_consistency.USAGE = "usage: check_statistics_nodal_consistency.py RUN_DIR VIZ_SUBDIR WINDOW_NAME" |
Definition at line 24 of file check_statistics_nodal_consistency.py.