PICurv 0.1.0
A Parallel Particle-In-Cell Solver for Curvilinear LES
Loading...
Searching...
No Matches
rhs.h
Go to the documentation of this file.
1#ifndef RHS_H
2#define RHS_H
3
4#include "variables.h" // Provides definitions for UserCtx, SimCtx, IBMNodes, etc.
5#include "logging.h"
6/*================================================================================*
7 * CORE NUMERICAL KERNELS *
8 *================================================================================*/
9
10PetscErrorCode Viscous(UserCtx *user, Vec Ucont, Vec Ucat, Vec Visc);
11
12PetscErrorCode Convection(UserCtx *user, Vec Ucont, Vec Ucat, Vec Conv);
13
14/**
15 * @brief Computes the Right-Hand Side (RHS) of the momentum equations.
16 *
17 * This function calculates the contribution of the convective and diffusive terms.
18 * It is called by the momentum solvers (e.g., RungeKutta).
19 *
20 * @param user The UserCtx for a single block.
21 * @param Rhs The PETSc Vec where the RHS result will be stored.
22 * @return PetscErrorCode 0 on success.
23 */
24extern PetscErrorCode FormFunction1(UserCtx *user, Vec Rhs);
25
26
27#endif // RHS_H
Logging utilities and macros for PETSc-based applications.
PetscErrorCode Viscous(UserCtx *user, Vec Ucont, Vec Ucat, Vec Visc)
Definition rhs.c:580
PetscErrorCode Convection(UserCtx *user, Vec Ucont, Vec Ucat, Vec Conv)
Definition rhs.c:87
PetscErrorCode FormFunction1(UserCtx *user, Vec Rhs)
Computes the Right-Hand Side (RHS) of the momentum equations.
Definition rhs.c:1231
Main header file for a complex fluid dynamics solver.
User-defined context containing data specific to a single computational grid level.
Definition variables.h:630