Computes numerical flux from conservative variables. More...
#include "flux.h"
Go to the source code of this file.
Macros | |
| #define | max(a, b) (((a) > (b)) ? (a) : (b)) |
Functions | |
| void | ns_flux_container (UCFD_FLOAT *u, UCFD_FLOAT *nf, UCFD_FLOAT *f) |
| Computes flux for Navier-Stokes equations. More... | |
| void | rans_flux_container (UCFD_FLOAT *u, UCFD_FLOAT *nf, UCFD_FLOAT *f) |
| Computes flux for RANS equations. More... | |
| ucfd_status_t | rans_source_jacobian (UCFD_FLOAT *uf, UCFD_FLOAT tmat[NTURBVARS][NTURBVARS], UCFD_FLOAT *dsrc) |
| Computes source term Jacobian matrix for RANS equations. More... | |
Computes numerical flux from conservative variables.
======================================================================================================================
Non-physical value correction included.
Definition in file flux.c.
| void ns_flux_container | ( | UCFD_FLOAT * | u, |
| UCFD_FLOAT * | nf, | ||
| UCFD_FLOAT * | f | ||
| ) |
Computes flux for Navier-Stokes equations.
Computes Euler/Navier-Stokes flux vector.
Jacobian matrix is replaced by first-order flux function, typically Rusanov flux is implemented.
Therefore, only convective flux is used.
Variable description :
rho : Density
et : Total Energy
temp : \(\rho^2 \times (u^2 + v^2)\)
contrav : Contravariant velocity
Definition at line 29 of file flux.c.

| void rans_flux_container | ( | UCFD_FLOAT * | u, |
| UCFD_FLOAT * | nf, | ||
| UCFD_FLOAT * | f | ||
| ) |
Computes flux for RANS equations.
Computes convective flux for RANS one- or two-equations.
Similar to the Navier-Stokes equations, RANS equations can be reformulated into the finite-volume framework.
It contains conservative variables, convective/viscous flux, and source term. Convective flux in RANS equations is computed simply by multiplying conservative variables and contravariant velocity.
Definition at line 77 of file flux.c.

| ucfd_status_t rans_source_jacobian | ( | UCFD_FLOAT * | uf, |
| UCFD_FLOAT | tmat[NTURBVARS][NTURBVARS], | ||
| UCFD_FLOAT * | dsrc | ||
| ) |