Functions | |
| find_repo_root () | |
Locate the PICurv checkout from the shipped example or from a case picurv init made. | |
| load_spectra_helpers () | |
| Import the PICGRID and PETSc-Vec readers from generators/spectra.gen. | |
| read_window (checkpoint_dir, window, block) | |
| Resolve a statistics window by name inside one committed checkpoint bundle. | |
| homogeneous_statistics (checkpoint_dir, window_name, grid_path, block, homogeneous) | |
| Reduce one statistics window's velocity moments over homogeneous directions. | |
| friction_velocity_from_wall_model (csv_path, start, end) | |
| Mean wall shear the wall model applied over a time interval, as a velocity. | |
| main (argv=None) | |
| Entry point. | |
Variables | |
| REPO_ROOT = find_repo_root() | |
| SPECTRA_GEN = os.path.join(REPO_ROOT, "generators", "spectra.gen") | |
| dict | AXIS_TO_KJI = {"Xi": 2, "Eta": 1, "Zeta": 0} |
| dict | AXIS_TO_COMPONENT = {"Xi": 0, "Eta": 1, "Zeta": 2} |
| tuple | M2_PAIRS = ((0, 0), (0, 1), (0, 2), (1, 1), (1, 2), (2, 2)) |
| wall_normal_profile.find_repo_root | ( | ) |
Locate the PICurv checkout from the shipped example or from a case picurv init made.
In the repository this file sits four levels below the root. A copy inside an initialized case does not, so the case's .picurv-origin.json, found by walking up from this file, supplies the checkout it was made from.
Definition at line 68 of file wall_normal_profile.py.
| wall_normal_profile.load_spectra_helpers | ( | ) |
Import the PICGRID and PETSc-Vec readers from generators/spectra.gen.
Definition at line 103 of file wall_normal_profile.py.
| wall_normal_profile.read_window | ( | checkpoint_dir, | |
| window, | |||
| block | |||
| ) |
Resolve a statistics window by name inside one committed checkpoint bundle.
| [in] | checkpoint_dir | Checkpoint bundle directory holding checkpoint.meta. |
| [in] | window | Window name from monitor.yml. |
| [in] | block | Block index. |
Definition at line 118 of file wall_normal_profile.py.
| wall_normal_profile.homogeneous_statistics | ( | checkpoint_dir, | |
| window_name, | |||
| grid_path, | |||
| block, | |||
| homogeneous | |||
| ) |
Reduce one statistics window's velocity moments over homogeneous directions.
The covariance over the homogeneous set is the mean of the per-cell temporal covariance M2/W plus the spatial covariance of the per-cell time means: <u_a' u_b'> = mean(M2_ab / W) + mean(U_a U_b) - mean(U_a) mean(U_b).
| [in] | checkpoint_dir | Committed checkpoint bundle directory. |
| [in] | window_name | Statistics window name from monitor.yml. |
| [in] | grid_path | Canonical PICGRID path for the run. |
| [in] | block | Block index. |
| [in] | homogeneous | Axes to average over, as indices in (k, j, i) order. |
numpy, nodes ((KM, JM, IM, 3) node coordinates), window (its checkpoint.meta scalars), mean (remaining axes + (3,)) and covariance (remaining axes + (6,), in M2_PAIRS order). Definition at line 150 of file wall_normal_profile.py.
| wall_normal_profile.friction_velocity_from_wall_model | ( | csv_path, | |
| start, | |||
| end | |||
| ) |
Mean wall shear the wall model applied over a time interval, as a velocity.
Each wall_model.csv row carries the wall-face mean and standard deviation of u_tau, so the row's mean of u_tau^2 is mean^2 + rms^2.
| [in] | csv_path | Path to the run's wall_model.csv. |
| [in] | start | Window effective start, in solver time. |
| [in] | end | Window effective end, in solver time. |
Definition at line 194 of file wall_normal_profile.py.
| wall_normal_profile.main | ( | argv = None | ) |
Entry point.
| [in] | argv | Command-line style argument list supplied to the function. |
Definition at line 215 of file wall_normal_profile.py.
| wall_normal_profile.REPO_ROOT = find_repo_root() |
Definition at line 92 of file wall_normal_profile.py.
| wall_normal_profile.SPECTRA_GEN = os.path.join(REPO_ROOT, "generators", "spectra.gen") |
Definition at line 93 of file wall_normal_profile.py.
| dict wall_normal_profile.AXIS_TO_KJI = {"Xi": 2, "Eta": 1, "Zeta": 0} |
Definition at line 96 of file wall_normal_profile.py.
| dict wall_normal_profile.AXIS_TO_COMPONENT = {"Xi": 0, "Eta": 1, "Zeta": 2} |
Definition at line 98 of file wall_normal_profile.py.
| tuple wall_normal_profile.M2_PAIRS = ((0, 0), (0, 1), (0, 2), (1, 1), (1, 2), (2, 2)) |
Definition at line 100 of file wall_normal_profile.py.