#include "variables.h"Go to the source code of this file.
Functions | |
| PetscErrorCode | AnalyticalSolutionEngine (SimCtx *simCtx) |
Sets the Eulerian fields from the case's source (-ic_source_*) at the step's time. | |
| PetscErrorCode | AnalyticalFieldDestroy (SimCtx *simCtx) |
| Release what AnalyticalSolutionEngine() keeps from step to step, if anything. | |
| PetscBool | AnalyticalFieldSupportsInterpolationError (const SimCtx *simCtx) |
| Reports whether the analytical field can be compared with interpolated particle velocities. | |
| PetscErrorCode | SetAnalyticalSolutionForParticles (Vec tempVec, SimCtx *simCtx) |
| Evaluates the analytical velocity at particle positions. | |
| PetscErrorCode AnalyticalSolutionEngine | ( | SimCtx * | simCtx | ) |
Sets the Eulerian fields from the case's source (-ic_source_*) at the step's time.
Sets the fluxes on every face, Ubcs on every boundary face, and Ucat and P at the cell centres. A source that does not read t is evaluated once. Collective.
| simCtx | The main simulation context, containing configuration and state. |
Sets the Eulerian fields from the case's source (-ic_source_*) at the step's time.
The field is the case's source, evaluated at the step's time. As on an inlet, a source that does not read t is evaluated once.
Definition at line 158 of file AnalyticalSolutions.c.
| PetscErrorCode AnalyticalFieldDestroy | ( | SimCtx * | simCtx | ) |
Release what AnalyticalSolutionEngine() keeps from step to step, if anything.
| simCtx | Simulation context. |
Release what AnalyticalSolutionEngine() keeps from step to step, if anything.
Definition at line 88 of file AnalyticalSolutions.c.
| PetscBool AnalyticalFieldSupportsInterpolationError | ( | const SimCtx * | simCtx | ) |
Reports whether the analytical field can be compared with interpolated particle velocities.
It must be evaluable at any point, a Cartesian source reading only x, y, z and t, and must vary in space: interpolating a uniform field has no error to measure.
| simCtx | Simulation context, after AnalyticalSolutionEngine(). |
Reports whether the analytical field can be compared with interpolated particle velocities.
Definition at line 113 of file AnalyticalSolutions.c.
| PetscErrorCode SetAnalyticalSolutionForParticles | ( | Vec | tempVec, |
| SimCtx * | simCtx | ||
| ) |
Evaluates the analytical velocity at particle positions.
| tempVec | The PETSc Vec containing particle positions, replaced by the velocities. |
| simCtx | The simulation context. |
Evaluates the analytical velocity at particle positions.
Only a pointwise source reaches here; see AnalyticalFieldSupportsInterpolationError().
Definition at line 199 of file AnalyticalSolutions.c.