C unit tests for post-processing kernel functions. More...
Go to the source code of this file.
Functions | |
| static PetscErrorCode | TestComputeSpecificKE (void) |
| Tests specific turbulent kinetic energy computation on particle data. | |
| static PetscErrorCode | TestComputeDisplacement (void) |
| Tests particle displacement computation against reference positions. | |
| static PetscErrorCode | TestComputeNodalAverageScalar (void) |
| Tests nodal averaging of scalar cell-centered data. | |
| static PetscErrorCode | TestComputeNodalAverageQcrit (void) |
| Tests that the cell-centred Q-criterion can be averaged to nodes. | |
| static PetscErrorCode | TestNormalizeRelativeField (void) |
| Tests normalization of one field relative to a reference field. | |
| static PetscErrorCode | TestDimensionalizePressureField (void) |
| Tests dimensionalization of pressure data from nondimensional values. | |
| static PetscErrorCode | TestDimensionalizeFieldUsesCatalogDimensions (void) |
| Tests that each field is scaled by the dimension its catalog entry records. | |
| static PetscErrorCode | TestComputeQCriterionDimensionalizedScalesByLengthSquared (void) |
| Tests that a dimensionalized Q-criterion carries (U_ref/L_ref)^2, not U_ref^2. | |
| static PetscErrorCode | TestComputeQCriterionZeroFlow (void) |
| Tests Q-criterion computation for a quiescent velocity field. | |
| int | main (int argc, char **argv) |
| Runs the unit-post PETSc test binary. | |
C unit tests for post-processing kernel functions.
Definition in file test_postprocessing.c.
|
static |
Tests specific turbulent kinetic energy computation on particle data.
Definition at line 13 of file test_postprocessing.c.
|
static |
Tests particle displacement computation against reference positions.
Definition at line 46 of file test_postprocessing.c.
|
static |
Tests nodal averaging of scalar cell-centered data.
Definition at line 79 of file test_postprocessing.c.
|
static |
Tests that the cell-centred Q-criterion can be averaged to nodes.
Qcrit is computed at cell centres and a .vts carries point data only, so writing it directly placed every value half a cell from its node. It now goes through the same nodal average as P, which needs it catalogued for the ghost refresh.
Definition at line 108 of file test_postprocessing.c.
|
static |
Tests normalization of one field relative to a reference field.
Definition at line 133 of file test_postprocessing.c.
|
static |
Tests dimensionalization of pressure data from nondimensional values.
Definition at line 172 of file test_postprocessing.c.
|
static |
Tests that each field is scaled by the dimension its catalog entry records.
At L=2, U=3, rho=5: velocity scales by U, a face flux by U L^2, pressure and the pressure correction by rho U^2, and the dimensionless solid marker not at all. A name in neither catalog is refused instead of being left unscaled.
Definition at line 197 of file test_postprocessing.c.
|
static |
Tests that a dimensionalized Q-criterion carries (U_ref/L_ref)^2, not U_ref^2.
Ucat is already dimensional when Q is computed, but the metrics are not, so the result must be divided by L_ref^2.
Definition at line 238 of file test_postprocessing.c.
|
static |
Tests Q-criterion computation for a quiescent velocity field.
Definition at line 284 of file test_postprocessing.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-post PETSc test binary.
Definition at line 313 of file test_postprocessing.c.