|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for boundary factories, inlet ownership, and face helpers. More...
Go to the source code of this file.
Functions | |
| static PetscErrorCode | AppendBCParam (BC_Param **head, const char *key, const char *value) |
| Appends one key/value pair to a linked list of boundary-condition parameters. | |
| static PetscErrorCode | DestroyBoundaryHandler (BoundaryCondition **bc_ptr) |
| Destroys one boundary-condition handler allocated by a boundary test. | |
| static PetscInt | InteriorSampleIndex (PetscInt nodes) |
| Chooses a stable interior node index for face-sample assertions on tiny test grids. | |
| static PetscReal | GetFaceNormalComponent (Cmpnts value, BCFace face) |
| Extracts the velocity component aligned with the supplied boundary-face normal. | |
| static PetscReal | GetFaceOrientationSign (BCFace face) |
| Returns the sign convention used for face-normal flux expectations. | |
| static const char * | GetInletParamKey (BCFace face) |
| Maps an inlet face to the matching configuration key used by the handler parser. | |
| static PetscReal | GetFaceInteriorPointCount (const UserCtx *user, BCFace face) |
| Computes the number of face-interior sample points for a given boundary face. | |
| static PetscErrorCode | GetRepresentativeFaceSlots (const UserCtx *user, BCFace face, PetscInt *ucont_k, PetscInt *ucont_j, PetscInt *ucont_i, PetscInt *ubcs_k, PetscInt *ubcs_j, PetscInt *ubcs_i) |
Selects representative Ucont and Ubcs slots for face-matrix assertions. | |
| static PetscErrorCode | GetParabolicSampleSlots (const UserCtx *user, BCFace face, PetscInt *center_k, PetscInt *center_j, PetscInt *center_i, PetscInt *off_k, PetscInt *off_j, PetscInt *off_i, PetscInt *wall_k, PetscInt *wall_j, PetscInt *wall_i, PetscInt *ubcs_center_k, PetscInt *ubcs_center_j, PetscInt *ubcs_center_i) |
| Selects center, off-center, and wall-adjacent slots for parabolic-face checks. | |
| static void | ResetBoundaryFaceConfig (BoundaryFaceConfig *cfg) |
| Resets one boundary-face configuration entry to a neutral test-local baseline. | |
| static PetscErrorCode | TestCanRankServiceFaceMatchesInletWhenDefined (void) |
| Tests that face-service detection matches a defined inlet face. | |
| static PetscErrorCode | TestCanRankServiceInletFaceRequiresDefinition (void) |
| Tests that inlet-face service requires an inlet face to be defined. | |
| static PetscErrorCode | TestBoundaryConditionFactoryAssignments (void) |
| Tests the boundary-condition factory assignments for representative handlers. | |
| static PetscErrorCode | TestBoundaryConditionFactoryImplementedHandlerMatrix (void) |
| Tests the implemented-handler matrix exposed by the factory. | |
| static PetscErrorCode | TestBoundaryConditionFactoryRejectsUnsupportedHandler (void) |
| Tests that unsupported handler types are rejected by the factory. | |
| static PetscErrorCode | TestGetDeterministicFaceGridLocationFaceMatrix (void) |
| Tests deterministic inlet-face grid-location helpers across all faces. | |
| static PetscErrorCode | TestGetRandomCellAndLogicalCoordsOnInletFaceMatrix (void) |
| Tests random inlet-face cell selection across all supported faces. | |
| static PetscErrorCode | TestInletConstantVelocityHandlerBehavior (void) |
| Tests constant inlet handler initialization and face writes on a Z inlet. | |
| static PetscErrorCode | TestWallNoSlipHandlerFaceMatrix (void) |
| Tests wall no-slip application across the full face matrix. | |
| static PetscErrorCode | TestInletConstantVelocityHandlerFaceMatrix (void) |
| Tests constant-inlet initialization, flux accounting, and face writes across all faces. | |
| static PetscErrorCode | TestInletParabolicProfileHandlerBehavior (void) |
| Tests parabolic inlet handler shape on a tiny Z-face. | |
| static PetscErrorCode | TestInletParabolicProfileHandlerFaceMatrix (void) |
| Tests parabolic-inlet centerline, wall, and flux behavior across all faces. | |
| static PetscErrorCode | TestOutletConservationHandlerBehavior (void) |
| Tests outlet conservation handler correction and post-step flux accounting. | |
| static PetscErrorCode | TestOutletConservationHandlerFaceMatrix (void) |
| Tests outlet-conservation correction and flux accounting across all outlet faces. | |
| int | main (int argc, char **argv) |
| Runs the unit-boundaries PETSc test binary. | |
C unit tests for boundary factories, inlet ownership, and face helpers.
Definition in file test_boundaries.c.
|
static |
Appends one key/value pair to a linked list of boundary-condition parameters.
Definition at line 13 of file test_boundaries.c.
|
static |
Destroys one boundary-condition handler allocated by a boundary test.
Definition at line 33 of file test_boundaries.c.
|
static |
Chooses a stable interior node index for face-sample assertions on tiny test grids.
Definition at line 51 of file test_boundaries.c.
Extracts the velocity component aligned with the supplied boundary-face normal.
Definition at line 67 of file test_boundaries.c.
|
static |
Returns the sign convention used for face-normal flux expectations.
Definition at line 86 of file test_boundaries.c.
|
static |
Maps an inlet face to the matching configuration key used by the handler parser.
Definition at line 104 of file test_boundaries.c.
Computes the number of face-interior sample points for a given boundary face.
Definition at line 123 of file test_boundaries.c.
|
static |
Selects representative Ucont and Ubcs slots for face-matrix assertions.
Definition at line 142 of file test_boundaries.c.
|
static |
Selects center, off-center, and wall-adjacent slots for parabolic-face checks.
Definition at line 188 of file test_boundaries.c.
|
static |
Resets one boundary-face configuration entry to a neutral test-local baseline.
Definition at line 248 of file test_boundaries.c.
|
static |
Tests that face-service detection matches a defined inlet face.
Definition at line 262 of file test_boundaries.c.
|
static |
Tests that inlet-face service requires an inlet face to be defined.
Definition at line 293 of file test_boundaries.c.
|
static |
Tests the boundary-condition factory assignments for representative handlers.
Definition at line 316 of file test_boundaries.c.
|
static |
Tests the implemented-handler matrix exposed by the factory.
Definition at line 343 of file test_boundaries.c.
|
static |
Tests that unsupported handler types are rejected by the factory.
Definition at line 374 of file test_boundaries.c.
|
static |
Tests deterministic inlet-face grid-location helpers across all faces.
Definition at line 394 of file test_boundaries.c.
|
static |
Tests random inlet-face cell selection across all supported faces.
Definition at line 440 of file test_boundaries.c.
|
static |
Tests constant inlet handler initialization and face writes on a Z inlet.
Definition at line 512 of file test_boundaries.c.
|
static |
Tests wall no-slip application across the full face matrix.
Definition at line 563 of file test_boundaries.c.
|
static |
Tests constant-inlet initialization, flux accounting, and face writes across all faces.
Definition at line 611 of file test_boundaries.c.
|
static |
Tests parabolic inlet handler shape on a tiny Z-face.
Definition at line 689 of file test_boundaries.c.
|
static |
Tests parabolic-inlet centerline, wall, and flux behavior across all faces.
Definition at line 728 of file test_boundaries.c.
|
static |
Tests outlet conservation handler correction and post-step flux accounting.
Definition at line 805 of file test_boundaries.c.
|
static |
Tests outlet-conservation correction and flux accounting across all outlet faces.
Definition at line 862 of file test_boundaries.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-boundaries PETSc test binary.
Definition at line 943 of file test_boundaries.c.