Focused geometric-periodic boundary tests. More...
#include "test_support.h"#include "Metric.h"#include "Boundaries.h"#include "walkingsearch.h"#include "setup.h"Go to the source code of this file.
Functions | |
| static PetscErrorCode | DestroyBoundaryHandler (BoundaryCondition **bc_ptr) |
| Destroys one boundary-condition handler allocated by a periodic test. | |
| static void | MarkXPeriodic (UserCtx *user) |
| Marks the x faces as periodic for periodic-transfer harnesses. | |
| static void | MarkYPeriodic (UserCtx *user) |
| Marks the y faces as periodic for periodic-transfer harnesses. | |
| static PetscErrorCode | TestPeriodicConfigurationRequiresPairedFaces (void) |
| Tests periodic configuration rejects an unpaired geometric periodic face. | |
| static PetscErrorCode | TestPeriodicGeometryStoresTranslation (void) |
| Tests constant translational periodic geometry is accepted and stored. | |
| static PetscErrorCode | TestLocateParticleWrapsThroughPeriodicFace (void) |
| Tests that a particle beyond either x-periodic face re-enters through the paired face, shifted by the seam translation. | |
| static PetscErrorCode | TestLocateParticleWrapsThroughOffAxisSeam (void) |
| An off-axis seam: a rotated x-periodic grid validates the rotated translation and wraps by it. | |
| static PetscErrorCode | TestPeriodicGeometryStoresMixedTranslations (void) |
| Tests mixed periodic directions are validated and stored independently. | |
| static PetscErrorCode | TestPeriodicGeometryRejectsVaryingTranslation (void) |
| Tests non-translational seam geometry fails before metric construction. | |
| static PetscErrorCode | TestPeriodicFaceCenterCoordinateSynchronization (void) |
| Tests face-center coordinates remain geometrically continuous across a periodic seam. | |
| static PetscErrorCode | TestPeriodicQuickStencilPreparation (void) |
| Tests the dedicated QUICK outer-ghost repair for cell-centered inputs. | |
| static PetscErrorCode | TestPeriodicGeometricFactoryAssignment (void) |
| Tests periodic geometric factory construction. | |
| static PetscErrorCode | TestApplyMetricsPeriodicBCsSynchronizesAj (void) |
| Tests periodic metric transfer through the aggregate periodic-metrics helper. | |
| static PetscErrorCode | TestSynchronizePeriodicCellFieldsCopiesMixedAxes (void) |
| Tests ordered cell-field synchronization across two periodic directions. | |
| static PetscErrorCode | TestSynchronizePeriodicFaceFieldsCopiesMixedAxes (void) |
| Tests ordered persistent synchronization for an I-face scalar metric. | |
| static PetscErrorCode | TestSynchronizePeriodicStaggeredFieldsCopiesMixedAxes (void) |
| Tests ordered persistent synchronization for component-staggered Ucont. | |
| static PetscErrorCode | TestFinalizePostProjectionCellFieldsMixedBoundaries (void) |
| Tests mixed-boundary post-projection cell finalization and Ucont preservation. | |
| static PetscErrorCode | TestContra2CartPeriodicUcatFinalization (void) |
| Verifies reconstructed Ucat periodic duplicates and local values are finalized. | |
| int | main (int argc, char **argv) |
| Runs the focused geometric-periodic PETSc test binary. | |
Focused geometric-periodic boundary tests.
Definition in file test_periodic_dev.c.
|
static |
Destroys one boundary-condition handler allocated by a periodic test.
Definition at line 16 of file test_periodic_dev.c.
|
static |
Marks the x faces as periodic for periodic-transfer harnesses.
Definition at line 34 of file test_periodic_dev.c.
|
static |
Marks the y faces as periodic for periodic-transfer harnesses.
Definition at line 46 of file test_periodic_dev.c.
|
static |
Tests periodic configuration rejects an unpaired geometric periodic face.
Definition at line 58 of file test_periodic_dev.c.
|
static |
Tests constant translational periodic geometry is accepted and stored.
Definition at line 80 of file test_periodic_dev.c.
|
static |
Tests that a particle beyond either x-periodic face re-enters through the paired face, shifted by the seam translation.
Definition at line 111 of file test_periodic_dev.c.
|
static |
An off-axis seam: a rotated x-periodic grid validates the rotated translation and wraps by it.
Rotates the grid 30 degrees about z, so the x seam translation gains a y component, then checks that the validated translation is the rotated one and that a particle beyond -Xi re-enters at the +Xi end shifted by it.
Definition at line 187 of file test_periodic_dev.c.
|
static |
Tests mixed periodic directions are validated and stored independently.
Definition at line 255 of file test_periodic_dev.c.
|
static |
Tests non-translational seam geometry fails before metric construction.
Definition at line 280 of file test_periodic_dev.c.
|
static |
Tests face-center coordinates remain geometrically continuous across a periodic seam.
Definition at line 310 of file test_periodic_dev.c.
|
static |
Tests the dedicated QUICK outer-ghost repair for cell-centered inputs.
Definition at line 355 of file test_periodic_dev.c.
|
static |
Tests periodic geometric factory construction.
Definition at line 401 of file test_periodic_dev.c.
|
static |
Tests periodic metric transfer through the aggregate periodic-metrics helper.
Definition at line 417 of file test_periodic_dev.c.
|
static |
Tests ordered cell-field synchronization across two periodic directions.
Definition at line 465 of file test_periodic_dev.c.
|
static |
Tests ordered persistent synchronization for an I-face scalar metric.
Definition at line 547 of file test_periodic_dev.c.
|
static |
Tests ordered persistent synchronization for component-staggered Ucont.
Definition at line 610 of file test_periodic_dev.c.
|
static |
Tests mixed-boundary post-projection cell finalization and Ucont preservation.
Definition at line 667 of file test_periodic_dev.c.
|
static |
Verifies reconstructed Ucat periodic duplicates and local values are finalized.
Definition at line 737 of file test_periodic_dev.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the focused geometric-periodic PETSc test binary.
Definition at line 770 of file test_periodic_dev.c.