Go to the source code of this file.
Functions | |
| PetscErrorCode | VerificationFieldCompile (const char *text, VerificationFieldConfig *field) |
| Compiles a verification field's expression and enables the field. | |
| PetscErrorCode | VerificationFieldsCreate (SimCtx *simCtx) |
| Reads and compiles the configured verification fields. | |
| PetscErrorCode | VerificationFieldsDestroy (SimCtx *simCtx) |
| Releases the compiled verification fields. | |
| PetscErrorCode | VerificationFieldEvaluate (const SimCtx *simCtx, const VerificationFieldConfig *field, Cmpnts point, PetscReal solver_time, PetscReal *value) |
| Evaluates a verification field at a solver-unit point and time. | |
| PetscBool | VerificationDiffusivityOverrideActive (const SimCtx *simCtx) |
| Reports whether the verification-only diffusivity override is enabled. | |
| PetscBool | VerificationScalarOverrideActive (const SimCtx *simCtx) |
| Reports whether the verification-only scalar override is enabled. | |
| PetscErrorCode | ApplyVerificationDiffusivityOverride (UserCtx *user) |
| Fills the Eulerian diffusivity field from the configured verification profile. | |
| PetscErrorCode | ApplyVerificationScalarOverrideToParticles (UserCtx *user) |
Fills the particle Psi field from the configured verification scalar profile. | |
| PetscErrorCode | SetVerificationScalarOnParticles (UserCtx *user, ParticleFieldId particle_field_id) |
| Implementation of SetVerificationScalarOnParticles(). | |
| PetscErrorCode | SetVerificationScalarAtCellCenters (UserCtx *user, Vec targetVec) |
| Implementation of SetVerificationScalarAtCellCenters(). | |
Variables | |
| static const char *const | kVerificationVariableNames [4] = {"x", "y", "z", "t"} |
| Names a verification field's expression reads, in the order of its values. | |
| PetscErrorCode VerificationFieldCompile | ( | const char * | text, |
| VerificationFieldConfig * | field | ||
| ) |
Compiles a verification field's expression and enables the field.
Compiles a verification field's expression, in physical x, y, z and t, and enables the field.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 14 of file verification_sources.c.
| PetscErrorCode VerificationFieldsCreate | ( | SimCtx * | simCtx | ) |
Reads and compiles the configured verification fields.
Reads and compiles the configured verification fields (-verification_*_expr).
See include/verification_sources.h for the public parameter and return contract.
Definition at line 28 of file verification_sources.c.
| PetscErrorCode VerificationFieldsDestroy | ( | SimCtx * | simCtx | ) |
Releases the compiled verification fields.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 53 of file verification_sources.c.
| PetscErrorCode VerificationFieldEvaluate | ( | const SimCtx * | simCtx, |
| const VerificationFieldConfig * | field, | ||
| Cmpnts | point, | ||
| PetscReal | solver_time, | ||
| PetscReal * | value | ||
| ) |
Evaluates a verification field at a solver-unit point and time.
Evaluates a verification field at a point.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 67 of file verification_sources.c.
| PetscBool VerificationDiffusivityOverrideActive | ( | const SimCtx * | simCtx | ) |
Reports whether the verification-only diffusivity override is enabled.
Reports whether a verification-only diffusivity override is active.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 85 of file verification_sources.c.
| PetscBool VerificationScalarOverrideActive | ( | const SimCtx * | simCtx | ) |
Reports whether the verification-only scalar override is enabled.
Reports whether a verification-only scalar override is active.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 97 of file verification_sources.c.
| PetscErrorCode ApplyVerificationDiffusivityOverride | ( | UserCtx * | user | ) |
Fills the Eulerian diffusivity field from the configured verification profile.
Populates the Eulerian diffusivity field from a verification-only source override.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 109 of file verification_sources.c.
| PetscErrorCode ApplyVerificationScalarOverrideToParticles | ( | UserCtx * | user | ) |
Fills the particle Psi field from the configured verification scalar profile.
Populates the particle Psi field from a verification-only source override.
See include/verification_sources.h for the public parameter and return contract.
Definition at line 169 of file verification_sources.c.
| PetscErrorCode SetVerificationScalarOnParticles | ( | UserCtx * | user, |
| ParticleFieldId | particle_field_id | ||
| ) |
Implementation of SetVerificationScalarOnParticles().
Writes the configured verification scalar profile onto a particle swarm scalar field.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/verification_sources.h.
Definition at line 189 of file verification_sources.c.
| PetscErrorCode SetVerificationScalarAtCellCenters | ( | UserCtx * | user, |
| Vec | targetVec | ||
| ) |
Implementation of SetVerificationScalarAtCellCenters().
Writes the configured verification scalar profile at physical cell centers into a scalar Vec.
Full API contract (arguments, ownership, side effects) is documented with the header declaration in include/verification_sources.h.
Definition at line 235 of file verification_sources.c.
|
static |
Names a verification field's expression reads, in the order of its values.
Definition at line 8 of file verification_sources.c.