8.3
general documentation
cs_cf_boundary_flux.cpp File Reference
#include "cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bft_printf.h"
#include "bft_error.h"
#include "cs_cf_boundary_conditions.h"
#include "cs_cf_thermo.h"
#include "cs_field_pointer.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_cf_boundary_flux.h"
+ Include dependency graph for cs_cf_boundary_flux.cpp:

Functions

void cs_cf_boundary_analytical_flux (const cs_lnum_t f_id, const cs_real_t *val_ext_en, const cs_real_t *val_ext_p, const cs_real_3_t *val_ext_v)
 Computes the analytical flux at the boundary for Euler and Energy. More...
 
void cs_cf_boundary_rusanov (const cs_lnum_t f_id, const cs_real_t *val_ext_en, cs_real_t *val_ext_p, cs_real_3_t *val_ext_v)
 Computes the Rusanov flux at the boundary for Euler and Energy. More...
 

Function Documentation

◆ cs_cf_boundary_analytical_flux()

void cs_cf_boundary_analytical_flux ( const cs_lnum_t  f_id,
const cs_real_t val_ext_en,
const cs_real_t val_ext_p,
const cs_real_3_t val_ext_v 
)

Computes the analytical flux at the boundary for Euler and Energy.

The Euler equations used to compute the flux are:

\begin{eqnarray*}
   \der{\rho}{t} + \divs \left(\rho\vect{u}\right) &=&0
\\ \der{\rho \vect{u}}{t} + \divv \left(\vect{u}\otimes\rho\vect{u}\right)&=&0
\\ \der{E}{t} + \divs \left(\rho\vect{u} E\right) &=&0
\end{eqnarray*}

Parameters
[in]f_idface id
[in]val_ext_enDirichlet value for the total energy
[in]val_ext_pDirichlet value for the pressure
[in]val_ext_vDirichlet value for the velocity

◆ cs_cf_boundary_rusanov()

void cs_cf_boundary_rusanov ( const cs_lnum_t  f_id,
const cs_real_t val_ext_en,
cs_real_t val_ext_p,
cs_real_3_t val_ext_v 
)

Computes the Rusanov flux at the boundary for Euler and Energy.

d rho /dt + div rho u = 0 d rho u /dt + div rho u u + grad P = 0 d E /dt + div rho u E + div u P = 0

Parameters
[in]f_idface id
[in]val_ext_enDirichlet value for the total energy
[in,out]val_ext_pDirichlet value for the pressure
[in,out]val_ext_vDirichlet value for the velocity