Header file for numerical flux funtions. More...


Go to the source code of this file.
Macros | |
| #define | BETAST 0.09 |
| #define | GAMMA 1.4 |
| #define | PMIN 1e-13 |
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... | |
| void | print_configure () |
Header file for numerical flux funtions.
Declaration of convective flux for Navier-Stokes and RANS equations.
Definition in file flux.h.
| void ns_flux_container | ( | UCFD_FLOAT * | u, |
| UCFD_FLOAT * | nf, | ||
| UCFD_FLOAT * | f | ||
| ) |
Computes flux for Navier-Stokes equations.
| u | Conservative vector |
| nf | Surface vector |
| f | Flux vector |
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 print_configure | ( | ) |
| void rans_flux_container | ( | UCFD_FLOAT * | u, |
| UCFD_FLOAT * | nf, | ||
| UCFD_FLOAT * | f | ||
| ) |
Computes flux for RANS equations.
| u | Conservative vector |
| nf | Surface vector |
| f | Flux vector |
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 | ||
| ) |