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#include "Metric.h"
7
8PetscErrorCode Viscous(UserCtx *user, Vec Ucont, Vec Ucat, Vec Visc);
9
10PetscErrorCode Convection(UserCtx *user, Vec Ucont, Vec Ucat, Vec Conv);
11
12/**
13 * @brief Computes the Right-Hand Side (RHS) of the momentum equations.
14 *
15 * This function calculates the contribution of the convective and diffusive terms.
16 * It is called by the momentum solvers (e.g., RungeKutta).
17 *
18 * @param user The UserCtx for a single block.
19 * @param Rhs The PETSc Vec where the RHS result will be stored.
20 * @return PetscErrorCode 0 on success.
21 */
22extern PetscErrorCode ComputeRHS(UserCtx *user, Vec Rhs);
23
24
25#endif // RHS_H
Logging utilities and macros for PETSc-based applications.
PetscErrorCode Viscous(UserCtx *user, Vec Ucont, Vec Ucat, Vec Visc)
Definition rhs.c:504
PetscErrorCode Convection(UserCtx *user, Vec Ucont, Vec Ucat, Vec Conv)
Definition rhs.c:5
PetscErrorCode ComputeRHS(UserCtx *user, Vec Rhs)
Computes the Right-Hand Side (RHS) of the momentum equations.
Definition rhs.c:1159
Main header file for a complex fluid dynamics solver.
User-defined context containing data specific to a single computational grid level.
Definition variables.h:661