UCFD_SPARSE  v1.1
Documentation
Loading...
Searching...
No Matches
flux.h File Reference

Header file for numerical flux funtions. More...

#include "ucfd_types.h"
#include "config.h"
Include dependency graph for flux.h:
This graph shows which files directly or indirectly include this file:

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 ()
 

Detailed Description

Header file for numerical flux funtions.

Declaration of convective flux for Navier-Stokes and RANS equations.

Definition in file flux.h.

Macro Definition Documentation

◆ BETAST

#define BETAST   0.09

Definition at line 25 of file flux.h.

◆ GAMMA

#define GAMMA   1.4

Definition at line 28 of file flux.h.

◆ PMIN

#define PMIN   1e-13

Definition at line 31 of file flux.h.

Function Documentation

◆ ns_flux_container()

void ns_flux_container ( UCFD_FLOAT u,
UCFD_FLOAT nf,
UCFD_FLOAT f 
)

Computes flux for Navier-Stokes equations.

Parameters
uConservative vector
nfSurface vector
fFlux 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.

Here is the caller graph for this function:

◆ print_configure()

void print_configure ( )

◆ rans_flux_container()

void rans_flux_container ( UCFD_FLOAT u,
UCFD_FLOAT nf,
UCFD_FLOAT f 
)

Computes flux for RANS equations.

Parameters
uConservative vector
nfSurface vector
fFlux 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.

Here is the caller graph for this function:

◆ rans_source_jacobian()

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.

Parameters
betastbeta* value for kw-SST RANS model
ufConservative vector
tmatTurbulence Jacobian matrix
dsrcSource term derivatives vector

Definition at line 93 of file flux.c.

Here is the caller graph for this function: