Go to the source code of this file.
Functions | |
| PetscBool | VerificationDiffusivityOverrideActive (const SimCtx *simCtx) |
| Reports whether a verification-only diffusivity override is active. | |
| PetscErrorCode | ApplyVerificationDiffusivityOverride (UserCtx *user) |
| Populates the Eulerian diffusivity field from a verification-only source override. | |
| PetscBool | VerificationScalarOverrideActive (const SimCtx *simCtx) |
| Reports whether a verification-only scalar override is active. | |
| PetscErrorCode | ApplyVerificationScalarOverrideToParticles (UserCtx *user) |
Populates the particle Psi field from a verification-only source override. | |
| PetscErrorCode | VerificationFieldCompile (const char *text, VerificationFieldConfig *field) |
| Compiles a verification field's expression, in physical x, y, z and t, and enables the field. | |
| PetscErrorCode | VerificationFieldsCreate (SimCtx *simCtx) |
Reads and compiles the configured verification fields (-verification_*_expr). | |
| 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 point. | |
| PetscErrorCode | SetVerificationScalarOnParticles (UserCtx *user, ParticleFieldId particle_field_id) |
| Writes the configured verification scalar profile onto a particle swarm scalar field. | |
| PetscErrorCode | SetVerificationScalarAtCellCenters (UserCtx *user, Vec targetVec) |
| Writes the configured verification scalar profile at physical cell centers into a scalar Vec. | |
| PetscBool VerificationDiffusivityOverrideActive | ( | const SimCtx * | simCtx | ) |
Reports whether a verification-only diffusivity override is active.
| simCtx | Simulation context. |
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.
| PetscErrorCode ApplyVerificationDiffusivityOverride | ( | UserCtx * | user | ) |
Populates the Eulerian diffusivity field from a verification-only source override.
| [in,out] | user | Block-local context whose Diffusivity vector will be filled. |
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.
| PetscBool VerificationScalarOverrideActive | ( | const SimCtx * | simCtx | ) |
Reports whether a verification-only scalar override is active.
| simCtx | Simulation context. |
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 ApplyVerificationScalarOverrideToParticles | ( | UserCtx * | user | ) |
Populates the particle Psi field from a verification-only source override.
| [in,out] | user | Block-local context whose particle scalar field will be filled. |
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 VerificationFieldCompile | ( | const char * | text, |
| VerificationFieldConfig * | field | ||
| ) |
Compiles a verification field's expression, in physical x, y, z and t, and enables the field.
| [in] | text | Expression text. |
| [in,out] | field | Field to set; a previous expression is released. |
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 (-verification_*_expr).
| simCtx | Simulation context. |
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.
| simCtx | Simulation context. |
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 point.
| [in] | simCtx | Simulation context, for the scales. |
| [in] | field | Enabled verification field. |
| [in] | point | Solver-unit position. |
| [in] | solver_time | Solver-unit time. |
| [out] | value | The expression's physical value. |
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.
| PetscErrorCode SetVerificationScalarOnParticles | ( | UserCtx * | user, |
| ParticleFieldId | particle_field_id | ||
| ) |
Writes the configured verification scalar profile onto a particle swarm scalar field.
| [in,out] | user | Block-local context providing particle positions. |
| [in] | particle_field_id | Typed identity of the scalar swarm field to overwrite. |
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 | ||
| ) |
Writes the configured verification scalar profile at physical cell centers into a scalar Vec.
| [in] | user | Block-local context providing the cell-center coordinates. |
| [in,out] | targetVec | Scalar Vec on user->da storage to fill with analytical reference values. |
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.