|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for Poisson, RHS, body-force, and diffusivity helpers. More...
Go to the source code of this file.
Functions | |
| static PetscErrorCode | EnsurePoissonAndRhsVectors (UserCtx *user) |
| Allocates Poisson/RHS support vectors required by the tests. | |
| static PetscErrorCode | TestUpdatePressureAddsPhi (void) |
| Tests that pressure updates add the correction potential. | |
| static PetscErrorCode | TestPoissonRHSZeroDivergence (void) |
| Tests that the Poisson RHS is zero for zero-divergence velocity. | |
| static PetscErrorCode | TestComputeBodyForcesDispatcher (void) |
| Tests the body-force dispatcher across supported source terms. | |
| static PetscErrorCode | TestComputeEulerianDiffusivityMolecularOnly (void) |
| Tests Eulerian diffusivity for the molecular-only configuration. | |
| static PetscErrorCode | TestConvectionZeroField (void) |
| Tests that convection vanishes for a quiescent field. | |
| static PetscErrorCode | TestViscousUniformField (void) |
| Tests that viscous terms vanish for a uniform field. | |
| static PetscErrorCode | TestComputeRHSZeroFieldNoForcing (void) |
| Tests that the full RHS remains zero without forcing on a quiescent field. | |
| static PetscErrorCode | TestComputeEulerianDiffusivityGradientConstantField (void) |
| Tests diffusivity-gradient computation on a constant field. | |
| static PetscErrorCode | TestComputeEulerianDiffusivityVerificationLinearX (void) |
| Tests verification-driven linear diffusivity override and its gradient. | |
| static PetscErrorCode | TestPoissonNullSpaceFunctionRemovesMean (void) |
| Tests that the Poisson null-space operator removes the mean from a constant field. | |
| static PetscErrorCode | TestPoissonLHSNewAssemblesOperator (void) |
| Tests that Poisson matrix assembly produces a populated operator on a tiny Cartesian grid. | |
| static PetscErrorCode | TestProjectionZeroPhiLeavesVelocityUnchanged (void) |
| Tests that projection leaves a zero pressure-correction field unchanged. | |
| static PetscErrorCode | TestProjectionLinearPhiCorrectsVelocity (void) |
| Tests that projection applies the expected x-direction correction for a linear pressure field. | |
| int | main (int argc, char **argv) |
| Runs the unit-poisson-rhs PETSc test binary. | |
C unit tests for Poisson, RHS, body-force, and diffusivity helpers.
Definition in file test_poisson_rhs.c.
|
static |
Allocates Poisson/RHS support vectors required by the tests.
Definition at line 15 of file test_poisson_rhs.c.
|
static |
Tests that pressure updates add the correction potential.
Definition at line 30 of file test_poisson_rhs.c.
|
static |
Tests that the Poisson RHS is zero for zero-divergence velocity.
Definition at line 51 of file test_poisson_rhs.c.
|
static |
Tests the body-force dispatcher across supported source terms.
Definition at line 85 of file test_poisson_rhs.c.
|
static |
Tests Eulerian diffusivity for the molecular-only configuration.
Definition at line 139 of file test_poisson_rhs.c.
|
static |
Tests that convection vanishes for a quiescent field.
Definition at line 167 of file test_poisson_rhs.c.
|
static |
Tests that viscous terms vanish for a uniform field.
Definition at line 194 of file test_poisson_rhs.c.
|
static |
Tests that the full RHS remains zero without forcing on a quiescent field.
Definition at line 221 of file test_poisson_rhs.c.
|
static |
Tests diffusivity-gradient computation on a constant field.
Definition at line 248 of file test_poisson_rhs.c.
|
static |
Tests verification-driven linear diffusivity override and its gradient.
Definition at line 269 of file test_poisson_rhs.c.
|
static |
Tests that the Poisson null-space operator removes the mean from a constant field.
Definition at line 316 of file test_poisson_rhs.c.
|
static |
Tests that Poisson matrix assembly produces a populated operator on a tiny Cartesian grid.
Definition at line 346 of file test_poisson_rhs.c.
|
static |
Tests that projection leaves a zero pressure-correction field unchanged.
Definition at line 382 of file test_poisson_rhs.c.
|
static |
Tests that projection applies the expected x-direction correction for a linear pressure field.
Definition at line 408 of file test_poisson_rhs.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-poisson-rhs PETSc test binary.
Definition at line 451 of file test_poisson_rhs.c.