|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for runtime, particle, wall, and walltime-guard helpers. More...
#include "test_support.h"#include "BC_Handlers.h"#include "ParticleMotion.h"#include "ParticlePhysics.h"#include "ParticleSwarm.h"#include "interpolation.h"#include "initialcondition.h"#include "les.h"#include "runloop.h"#include "setup.h"#include "wallfunction.h"#include "walkingsearch.h"Go to the source code of this file.
Functions | |
| static PetscErrorCode | SyncRuntimeFieldGhosts (UserCtx *user) |
| Synchronizes the minimal runtime fixture's global fields into their persistent local ghosts. | |
| static PetscErrorCode | SeedSingleParticle (UserCtx *user, PetscInt ci, PetscInt cj, PetscInt ck, PetscReal x, PetscReal y, PetscReal z, PetscReal wx, PetscReal wy, PetscReal wz, PetscInt status_value) |
| Seeds one localized swarm particle with the cell, position, weight, and status data used by runtime tests. | |
| static PetscErrorCode | TestDistributeParticlesRemainderHandling (void) |
| Tests particle distribution remainder handling across ranks. | |
| static PetscErrorCode | TestIsParticleInsideBoundingBoxBasicCases (void) |
| Tests basic particle-inside-bounding-box classification cases. | |
| static PetscErrorCode | TestUpdateParticleWeightsComputesExpectedRatios (void) |
| Tests particle weight updates against expected ratios. | |
| static PetscErrorCode | TestUpdateParticlePositionWithoutBrownianContribution (void) |
| Tests particle position updates without Brownian forcing. | |
| static PetscErrorCode | TestUpdateParticlePositionDiffusivityGradientOnly (void) |
| Tests particle position updates driven only by diffusivity-gradient drift. | |
| static PetscErrorCode | TestUpdateParticleFieldIEMRelaxation (void) |
| Tests IEM relaxation updates for particle-carried fields. | |
| static PetscErrorCode | TestSetInitialInteriorFieldIgnoresNonUcontRequest (void) |
| Tests that non-Ucont requests do not modify interior field initialization. | |
| static PetscErrorCode | TestSetInitialInteriorFieldConstantProfileOnZInlet (void) |
| Tests constant-profile interior initialization on a Z-direction inlet. | |
| static PetscErrorCode | TestInterpolateAllFieldsToSwarmConstantFields (void) |
| Tests direct interpolation from Eulerian fields to one localized swarm particle. | |
| static PetscErrorCode | TestInterpolateAllFieldsToSwarmCornerAveragedConstantFields (void) |
| Tests the corner-averaged (legacy) interpolation path on constant fields. | |
| static PetscErrorCode | TestScatterAllParticleFieldsToEulerFieldsAveragesPsi (void) |
| Tests particle-to-grid scattering using known cell occupancy and scalar values. | |
| static PetscErrorCode | TestCalculateParticleCountPerCellCountsGlobalCellIDs (void) |
| Tests particle counting by geometric cell IDs using the production +1 storage shift. | |
| static PetscErrorCode | TestResetAllParticleStatusesLeavesLostParticlesUntouched (void) |
| Tests localized particle-status reset behavior for restart of the location workflow. | |
| static PetscErrorCode | TestCheckAndRemoveOutOfBoundsParticlesRemovesEscapedParticle (void) |
| Tests direct removal of particles that leave every rank bounding box. | |
| static PetscErrorCode | TestCheckAndRemoveLostParticlesRemovesLostEntries (void) |
| Tests direct removal of particles already marked LOST by the location workflow. | |
| static PetscErrorCode | TestCalculateBrownianDisplacementDeterministicSeed (void) |
| Tests Brownian displacement generation against a duplicated seeded RNG stream. | |
| static PetscErrorCode | TestUpdateAllParticlePositionsMovesSwarmEntries (void) |
| Tests swarm-wide particle position updates using the same transport path as the runtime loop. | |
| static PetscErrorCode | TestLocateAllParticlesInGridPriorCellFastPath (void) |
| Tests the location orchestrator fast path when a particle already carries a valid prior cell. | |
| static PetscErrorCode | TestLocateAllParticlesInGridGuessPathResolvesLocalParticle (void) |
| Tests the guess-then-verify orchestrator path for a local particle with an unknown prior cell. | |
| static PetscErrorCode | TestLocateParticleOrFindMigrationTargetCountsReSearch (void) |
| Verifies that later settlement passes increment re-search metrics. | |
| static PetscErrorCode | TestWallNoSlipAndFreeSlipHelpers (void) |
| Tests no-slip and free-slip wall helper kernels. | |
| static PetscErrorCode | TestWallModelScalarHelpers (void) |
| Tests wall-model scalar helper kernels. | |
| static PetscErrorCode | TestWallModelVelocityHelpers (void) |
| Tests closed-form and iterative wall-model velocity helpers against inverse reconstructions. | |
| static PetscErrorCode | TestWallFunctionVectorWrappers (void) |
| Tests the vector wall-function wrappers on a tangential reference flow. | |
| static PetscErrorCode | TestValidateDrivenFlowConfigurationNoDrivenHandlers (void) |
| Tests driven-flow validation when no driven handlers are present. | |
| static PetscErrorCode | TestComputeSmagorinskyConstantConstantModel (void) |
| Tests the constant Smagorinsky model helper path. | |
| static PetscErrorCode | TestMinimalFixtureMirrorsProductionDMLayout (void) |
| Tests that the shared minimal fixture mirrors the production DA contract. | |
| static PetscErrorCode | TestMinimalFixtureRegistersProductionSwarmFields (void) |
| Tests that the shared swarm fixture registers the production field set. | |
| static PetscErrorCode | TestUpdateSolverHistoryVectorsShiftsStates (void) |
| Tests solver history-vector shifting between time levels. | |
| static PetscErrorCode | TestGetOwnedCellRangeSingleRankAccounting (void) |
| Tests owned-cell range accounting on a single MPI rank. | |
| static PetscErrorCode | TestComputeAndStoreNeighborRanksSingleRank (void) |
| Tests neighbor-rank discovery on a single MPI rank. | |
| static PetscErrorCode | TestRuntimeWalltimeGuardParsesPositiveSeconds (void) |
| Tests parsing of positive runtime walltime metadata values. | |
| static PetscErrorCode | TestRuntimeWalltimeGuardEstimatorHelpers (void) |
| Tests walltime-guard estimator helper calculations. | |
| static PetscErrorCode | TestRuntimeWalltimeGuardTriggerDecision (void) |
| Tests runtime walltime-guard shutdown trigger decisions. | |
| int | main (int argc, char **argv) |
| Runs the unit-runtime PETSc test binary. | |
C unit tests for runtime, particle, wall, and walltime-guard helpers.
Definition in file test_runtime_kernels.c.
|
static |
Synchronizes the minimal runtime fixture's global fields into their persistent local ghosts.
Definition at line 23 of file test_runtime_kernels.c.
|
static |
Seeds one localized swarm particle with the cell, position, weight, and status data used by runtime tests.
Definition at line 44 of file test_runtime_kernels.c.
|
static |
Tests particle distribution remainder handling across ranks.
Definition at line 88 of file test_runtime_kernels.c.
|
static |
Tests basic particle-inside-bounding-box classification cases.
Definition at line 107 of file test_runtime_kernels.c.
|
static |
Tests particle weight updates against expected ratios.
Definition at line 136 of file test_runtime_kernels.c.
|
static |
Tests particle position updates without Brownian forcing.
Definition at line 159 of file test_runtime_kernels.c.
|
static |
Tests particle position updates driven only by diffusivity-gradient drift.
Definition at line 193 of file test_runtime_kernels.c.
|
static |
Tests IEM relaxation updates for particle-carried fields.
Definition at line 227 of file test_runtime_kernels.c.
|
static |
Tests that non-Ucont requests do not modify interior field initialization.
Definition at line 253 of file test_runtime_kernels.c.
|
static |
Tests constant-profile interior initialization on a Z-direction inlet.
Definition at line 272 of file test_runtime_kernels.c.
|
static |
Tests direct interpolation from Eulerian fields to one localized swarm particle.
Definition at line 303 of file test_runtime_kernels.c.
|
static |
Tests the corner-averaged (legacy) interpolation path on constant fields.
Definition at line 355 of file test_runtime_kernels.c.
|
static |
Tests particle-to-grid scattering using known cell occupancy and scalar values.
Definition at line 408 of file test_runtime_kernels.c.
|
static |
Tests particle counting by geometric cell IDs using the production +1 storage shift.
Definition at line 443 of file test_runtime_kernels.c.
|
static |
Tests localized particle-status reset behavior for restart of the location workflow.
Definition at line 474 of file test_runtime_kernels.c.
|
static |
Tests direct removal of particles that leave every rank bounding box.
Definition at line 505 of file test_runtime_kernels.c.
|
static |
Tests direct removal of particles already marked LOST by the location workflow.
Definition at line 536 of file test_runtime_kernels.c.
|
static |
Tests Brownian displacement generation against a duplicated seeded RNG stream.
Definition at line 568 of file test_runtime_kernels.c.
|
static |
Tests swarm-wide particle position updates using the same transport path as the runtime loop.
Definition at line 601 of file test_runtime_kernels.c.
|
static |
Tests the location orchestrator fast path when a particle already carries a valid prior cell.
Definition at line 666 of file test_runtime_kernels.c.
|
static |
Tests the guess-then-verify orchestrator path for a local particle with an unknown prior cell.
Definition at line 724 of file test_runtime_kernels.c.
|
static |
Verifies that later settlement passes increment re-search metrics.
Definition at line 782 of file test_runtime_kernels.c.
|
static |
Tests no-slip and free-slip wall helper kernels.
Definition at line 823 of file test_runtime_kernels.c.
|
static |
Tests wall-model scalar helper kernels.
Definition at line 846 of file test_runtime_kernels.c.
|
static |
Tests closed-form and iterative wall-model velocity helpers against inverse reconstructions.
Definition at line 870 of file test_runtime_kernels.c.
|
static |
Tests the vector wall-function wrappers on a tangential reference flow.
Definition at line 904 of file test_runtime_kernels.c.
|
static |
Tests driven-flow validation when no driven handlers are present.
Definition at line 940 of file test_runtime_kernels.c.
|
static |
Tests the constant Smagorinsky model helper path.
Definition at line 955 of file test_runtime_kernels.c.
|
static |
Tests that the shared minimal fixture mirrors the production DA contract.
Definition at line 978 of file test_runtime_kernels.c.
|
static |
Tests that the shared swarm fixture registers the production field set.
Definition at line 1007 of file test_runtime_kernels.c.
|
static |
Tests solver history-vector shifting between time levels.
Definition at line 1058 of file test_runtime_kernels.c.
|
static |
Tests owned-cell range accounting on a single MPI rank.
Definition at line 1090 of file test_runtime_kernels.c.
|
static |
Tests neighbor-rank discovery on a single MPI rank.
Definition at line 1118 of file test_runtime_kernels.c.
|
static |
Tests parsing of positive runtime walltime metadata values.
Definition at line 1141 of file test_runtime_kernels.c.
|
static |
Tests walltime-guard estimator helper calculations.
Definition at line 1158 of file test_runtime_kernels.c.
|
static |
Tests runtime walltime-guard shutdown trigger decisions.
Definition at line 1184 of file test_runtime_kernels.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-runtime PETSc test binary.
Definition at line 1206 of file test_runtime_kernels.c.