C unit tests for particle statistics kernels and CSV output. More...
Go to the source code of this file.
Functions | |
| static PetscErrorCode | TestComputeParticleMSDWritesCSV (void) |
| Tests MSD CSV generation for a populated particle swarm. | |
| static PetscErrorCode | TestComputeParticleMSDDimensionalizedColumns (void) |
| Tests that a dimensionalizing post-processor reports MSD columns physically. | |
| static PetscErrorCode | TestComputeParticleMSDEmptySwarmNoOutput (void) |
| Tests that empty swarms do not emit MSD CSV output. | |
| int | main (int argc, char **argv) |
| Runs the unit-post-statistics PETSc test binary. | |
C unit tests for particle statistics kernels and CSV output.
Definition in file test_statistics.c.
|
static |
Tests MSD CSV generation for a populated particle swarm.
Definition at line 16 of file test_statistics.c.
|
static |
Tests that a dimensionalizing post-processor reports MSD columns physically.
Two particles at x = +/-1 (solver units) about the origin, step 1, dt = 1. At L = 2 and U = 4 the time column is scaled by L/U = 0.5, MSD by L^2 = 4, and the RMS radius and centre of mass by L; the relative error is unchanged.
Definition at line 75 of file test_statistics.c.
|
static |
Tests that empty swarms do not emit MSD CSV output.
Definition at line 136 of file test_statistics.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-post-statistics PETSc test binary.
Definition at line 166 of file test_statistics.c.