PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
 
Loading...
Searching...
No Matches
solvers.h
Go to the documentation of this file.
1#ifndef SOLVERS_H
2#define SOLVERS_H
3
4#include "variables.h" // Provides definitions for UserCtx, SimCtx, IBMNodes, etc.
5#include "momentumsolvers.h"
6#include "rhs.h"
7#include "logging.h"
8#include "poisson.h"
9#include "setup.h"
10#include "les.h"
11/*================================================================================*
12 * HIGH-LEVEL SOLVER ORCHESTRATOR *
13 *================================================================================*/
14
15/**
16 * @brief Orchestrates a single time step of the Eulerian fluid solver.
17 *
18 * This is the refactored, high-level entry point for advancing the fluid state
19 * from time t_n to t_{n+1}. It takes the master SimCtx as its primary argument.
20 *
21 * @param simCtx The master simulation context, containing all solver settings,
22 * multigrid structures, and data vectors.
23 * @return PetscErrorCode 0 on success.
24 */
25PetscErrorCode FlowSolver(SimCtx *simCtx);
26
27/**
28 * @brief Releases the solver objects FlowSolver() keeps for the run.
29 *
30 * The Newton--Krylov momentum solve context lives here because only the simulator links the
31 * momentum solvers; FinalizeSimulation(), shared with the post-processor, releases the rest.
32 * Call it before FinalizeSimulation(). Blocks that never built one are skipped.
33 *
34 * @param simCtx The master simulation context.
35 * @return PetscErrorCode 0 on success.
36 */
37PetscErrorCode FlowSolver_Destroy(SimCtx *simCtx);
38
39#endif // SOLVERS_H
Logging utilities and macros for PETSc-based applications.
Pressure-Poisson projection: the multigrid pressure-correction solve, the pressure update,...
PetscErrorCode FlowSolver_Destroy(SimCtx *simCtx)
Releases the solver objects FlowSolver() keeps for the run.
Definition solvers.c:202
PetscErrorCode FlowSolver(SimCtx *simCtx)
Orchestrates a single time step of the Eulerian fluid solver.
Definition solvers.c:9
Main header file for a complex fluid dynamics solver.
The master context for the entire simulation.
Definition variables.h:916