|
PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
|
C unit tests for solver-side analytical and LES helper kernels. More...
#include "test_support.h"#include "AnalyticalSolutions.h"#include "BodyForces.h"#include "Filter.h"#include "les.h"#include "solvers.h"#include "momentumsolvers.h"Go to the source code of this file.
Functions | |
| static PetscErrorCode | TestLESTestFilterPaths (void) |
| Tests LES test-filter helper paths for representative cases. | |
| static PetscErrorCode | TestAnalyticalGeometrySelection (void) |
| Tests analytical geometry selection for supported analytical solutions. | |
| static PetscErrorCode | TestAnalyticalScalarVerificationHelpers (void) |
| Tests analytical scalar verification helper routines. | |
| static PetscErrorCode | TestAnalyticalSolutionEngineDispatch (void) |
| Tests analytical solution engine ZERO_FLOW, UNIFORM_FLOW, and unknown-type dispatch. | |
| static PetscErrorCode | TestAnalyticalSolutionEngineTaylorGreenSamples (void) |
| Tests exact Taylor-Green samples on selected Eulerian interior and boundary points. | |
| static PetscErrorCode | TestAnalyticalSolutionForParticlesDispatch (void) |
| Tests particle analytical-solution dispatch for TGV3D, UNIFORM_FLOW, and non-analytical no-op paths. | |
| static PetscErrorCode | TestComputeEddyViscosityLESDeterministicField (void) |
| Tests deterministic LES eddy-viscosity computation on a linear velocity field. | |
| static PetscErrorCode | TestFlowSolverRejectsUnsupportedMomentumSolverType (void) |
| Tests FlowSolver guardrails for unsupported momentum solver selections. | |
| static PetscErrorCode | TestDrivenChannelFlowSource (void) |
| Tests driven-channel flow source-term evaluation. | |
| static void | MomSetAllBC (UserCtx *user, BCType t) |
| Sets the mathematical BC type on all six faces of a test UserCtx. | |
| static PetscErrorCode | MomFillLocalCmpnts (DM fda, Vec lvec, PetscReal x, PetscReal y, PetscReal z) |
| Fills a local Cmpnts vector (ghosts included) with a uniform vector value. | |
| static PetscErrorCode | MomFillLocalScalar (DM da, Vec lvec, PetscReal v) |
| Fills a local scalar vector (ghosts included) with a uniform value. | |
| static PetscErrorCode | MomSetLocalScalarCell (DM da, Vec lvec, PetscInt ci, PetscInt cj, PetscInt ck, PetscReal v) |
| Sets a single local-scalar cell value (e.g. | |
| static PetscErrorCode | TestMomentumBDFCoefficient (void) |
| static PetscErrorCode | MomMakeUnitGridP (SimCtx **simCtx, UserCtx **user, PetscInt n, PetscBool px, PetscBool py, PetscBool pz, BCType bc) |
| static PetscErrorCode | MomMakeUnitGrid (SimCtx **simCtx, UserCtx **user, PetscInt n, BCType bc) |
| static PetscErrorCode | TestMomentumStabilityCenteredConvection (void) |
| static PetscErrorCode | TestMomentumStabilityQuickInterior (void) |
| static PetscErrorCode | TestMomentumStabilityQuickBoundary (void) |
| static PetscErrorCode | TestMomentumStabilityViscousLongitudinal (void) |
| static PetscErrorCode | TestMomentumStabilityViscousScalesWithNu (void) |
| static PetscErrorCode | TestMomentumStabilityLESEddyViscosity (void) |
| static PetscErrorCode | TestMomentumStabilityOneSidedViscous (void) |
| static PetscErrorCode | TestMomentumStabilityReadOnly (void) |
| static PetscErrorCode | MomSetCartesianMetrics (UserCtx *user, PetscReal dx, PetscReal dy, PetscReal dz) |
| Sets uniform Cartesian metrics for spacing (dx,dy,dz) on all cell and face arrays. | |
| static PetscErrorCode | MomFillUcontXRamp (DM fda, Vec lvec, PetscReal slope) |
| Fills lUcont.x as a linear ramp slope*i (nonzero discrete contravariant divergence). | |
| static PetscErrorCode | MomFillUcatShearY (DM fda, Vec lvec, PetscReal gamma) |
| Fills lUcat as a linear shear u=(gamma*j,0,0) so |grad u|_inf = gamma. | |
| static PetscErrorCode | TestMomentumStabilityAnisotropicViscous (void) |
| static PetscErrorCode | TestMomentumStabilityDirectionalQuick (void) |
| static PetscErrorCode | TestMomentumStabilityOneSidedDirections (void) |
| static PetscErrorCode | TestMomentumStabilityActiveRowMask (void) |
| static PetscErrorCode | TestMomentumStabilityValidation (void) |
| static PetscErrorCode | TestMomentumStabilityCandidateBCDivergence (void) |
| static PetscErrorCode | TestMomentumStabilityCandidateDShear (void) |
| static PetscErrorCode | TestMomentumStabilityWallSuppression (void) |
| static PetscErrorCode | TestMomentumStabilityReadOnlyExact (void) |
| static PetscErrorCode | TestMomentumActiveRowsHelper (void) |
| static PetscErrorCode | TestMomentumStabilityErrorReentry (void) |
| static PetscErrorCode | TestMomentumBDFResidualCombination (void) |
| int | main (int argc, char **argv) |
| Runs the unit-solver PETSc test binary. | |
C unit tests for solver-side analytical and LES helper kernels.
Definition in file test_solver_kernels.c.
|
static |
Tests LES test-filter helper paths for representative cases.
Definition at line 18 of file test_solver_kernels.c.
|
static |
Tests analytical geometry selection for supported analytical solutions.
Definition at line 58 of file test_solver_kernels.c.
|
static |
Tests analytical scalar verification helper routines.
Definition at line 109 of file test_solver_kernels.c.
|
static |
Tests analytical solution engine ZERO_FLOW, UNIFORM_FLOW, and unknown-type dispatch.
Definition at line 183 of file test_solver_kernels.c.
|
static |
Tests exact Taylor-Green samples on selected Eulerian interior and boundary points.
Definition at line 262 of file test_solver_kernels.c.
|
static |
Tests particle analytical-solution dispatch for TGV3D, UNIFORM_FLOW, and non-analytical no-op paths.
Definition at line 333 of file test_solver_kernels.c.
|
static |
Tests deterministic LES eddy-viscosity computation on a linear velocity field.
Definition at line 411 of file test_solver_kernels.c.
|
static |
Tests FlowSolver guardrails for unsupported momentum solver selections.
Definition at line 464 of file test_solver_kernels.c.
|
static |
Tests driven-channel flow source-term evaluation.
Definition at line 487 of file test_solver_kernels.c.
Sets the mathematical BC type on all six faces of a test UserCtx.
| user | Test user context. |
| t | BCType to assign to every face (e.g. PERIODIC, INLET). |
Definition at line 551 of file test_solver_kernels.c.
|
static |
Fills a local Cmpnts vector (ghosts included) with a uniform vector value.
| fda | Vector DM owning lvec. |
| lvec | Local Cmpnts vector to fill. |
| x,y,z | Uniform component values. |
Definition at line 568 of file test_solver_kernels.c.
|
static |
Fills a local scalar vector (ghosts included) with a uniform value.
| da | Scalar DM owning lvec. |
| lvec | Local scalar vector to fill. |
| v | Uniform value. |
Definition at line 589 of file test_solver_kernels.c.
|
static |
Sets a single local-scalar cell value (e.g.
to mark one nvert solid).
| da | Scalar DM owning lvec. |
| lvec | Local scalar vector. |
| ci,cj,ck | Cell indices to set. |
| v | Value to assign. |
Definition at line 611 of file test_solver_kernels.c.
|
static |
Definition at line 626 of file test_solver_kernels.c.
|
static |
Definition at line 646 of file test_solver_kernels.c.
|
static |
Definition at line 672 of file test_solver_kernels.c.
|
static |
Definition at line 681 of file test_solver_kernels.c.
|
static |
Definition at line 699 of file test_solver_kernels.c.
|
static |
Definition at line 714 of file test_solver_kernels.c.
|
static |
Definition at line 729 of file test_solver_kernels.c.
|
static |
Definition at line 744 of file test_solver_kernels.c.
|
static |
Definition at line 757 of file test_solver_kernels.c.
|
static |
Definition at line 771 of file test_solver_kernels.c.
|
static |
Definition at line 788 of file test_solver_kernels.c.
|
static |
Sets uniform Cartesian metrics for spacing (dx,dy,dz) on all cell and face arrays.
| user | Test user context. |
| dx,dy,dz | Cartesian cell spacings. |
Definition at line 818 of file test_solver_kernels.c.
|
static |
Fills lUcont.x as a linear ramp slope*i (nonzero discrete contravariant divergence).
| fda | Vector DM. |
| lvec | Local Cmpnts vector. |
| slope | Ramp slope. |
Definition at line 842 of file test_solver_kernels.c.
|
static |
Fills lUcat as a linear shear u=(gamma*j,0,0) so |grad u|_inf = gamma.
| fda | Vector DM. |
| lvec | Local Cmpnts vector. |
| gamma | Shear rate. |
Definition at line 863 of file test_solver_kernels.c.
|
static |
Definition at line 879 of file test_solver_kernels.c.
|
static |
Definition at line 893 of file test_solver_kernels.c.
|
static |
Definition at line 908 of file test_solver_kernels.c.
|
static |
Definition at line 936 of file test_solver_kernels.c.
|
static |
Definition at line 960 of file test_solver_kernels.c.
|
static |
Definition at line 984 of file test_solver_kernels.c.
|
static |
Definition at line 999 of file test_solver_kernels.c.
|
static |
Definition at line 1020 of file test_solver_kernels.c.
|
static |
Definition at line 1037 of file test_solver_kernels.c.
|
static |
Definition at line 1067 of file test_solver_kernels.c.
|
static |
Definition at line 1093 of file test_solver_kernels.c.
|
static |
Definition at line 1124 of file test_solver_kernels.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Runs the unit-solver PETSc test binary.
Definition at line 1173 of file test_solver_kernels.c.