9.2
general documentation
cs_cf_compute.cpp File Reference

Computations for compressible flows. More...

#include "base/cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <mpi.h>
#include "bft/bft_printf.h"
#include "base/cs_array.h"
#include "alge/cs_balance.h"
#include "alge/cs_blas.h"
#include "base/cs_boundary_conditions_set_coeffs.h"
#include "cfbl/cs_cf_boundary_conditions.h"
#include "cfbl/cs_cf_thermo.h"
#include "alge/cs_convection_diffusion.h"
#include "alge/cs_divergence.h"
#include "base/cs_equation_iterative_solve.h"
#include "alge/cs_face_viscosity.h"
#include "base/cs_field_default.h"
#include "base/cs_field_operator.h"
#include "base/cs_field_pointer.h"
#include "base/cs_mem.h"
#include "base/cs_volume_mass_injection.h"
#include "base/cs_mass_source_terms.h"
#include "alge/cs_matrix_building.h"
#include "mesh/cs_mesh.h"
#include "mesh/cs_mesh_quantities.h"
#include "base/cs_parall.h"
#include "pprt/cs_physical_model.h"
#include "base/cs_porous_model.h"
#include "base/cs_prototypes.h"
#include "turb/cs_turbulence_model.h"
#include "base/cs_velocity_pressure.h"
#include "cfbl/cs_cf_compute.h"
+ Include dependency graph for cs_cf_compute.cpp:

Functions

void cs_compressible_pressure_ausm_mass_flux (cs_dispatch_context &ctx, const cs_real_3_t *vel, const cs_real_t *crom, const cs_real_t *brom, const cs_real_t *p, cs_field_bc_coeffs_t *bc_coeffs_v, cs_field_bc_coeffs_t *bc_coeffs_p, cs_real_t *imasfl, cs_real_t *bmasfl)
 Compute the "mass flux" at the faces for the CFL restriction computation and the solving of the pressure (AUSM+up scheme) More...
 
void cs_cf_convective_mass_flux (int iterns)
 Update the convective mass flux before the velocity prediction step. It is the first step of the compressible algorithm at each time iteration. More...
 
void cs_cf_cfl_compute (cs_real_t wcf[])
 Computation of the constraint for the CFL (compressible algorithm) More...
 

Detailed Description

Computations for compressible flows.

!

Function Documentation

◆ cs_cf_cfl_compute()

void cs_cf_cfl_compute ( cs_real_t  wcf[])

Computation of the constraint for the CFL (compressible algorithm)

Parameters
[in]wcfcompressible constraint

◆ cs_cf_convective_mass_flux()

void cs_cf_convective_mass_flux ( int  iterns)

Update the convective mass flux before the velocity prediction step. It is the first step of the compressible algorithm at each time iteration.

This function solves the continuity equation in pressure formulation and then updates the density and the mass flux.

Parameters
[in]iternsNavier-Stokes iteration number

◆ cs_compressible_pressure_ausm_mass_flux()

void cs_compressible_pressure_ausm_mass_flux ( cs_dispatch_context ctx,
const cs_real_3_t vel,
const cs_real_t crom,
const cs_real_t brom,
const cs_real_t p,
cs_field_bc_coeffs_t bc_coeffs_v,
cs_field_bc_coeffs_t bc_coeffs_p,
cs_real_t imasfl,
cs_real_t bmasfl 
)

Compute the "mass flux" at the faces for the CFL restriction computation and the solving of the pressure (AUSM+up scheme)

Parameters
[in]ctxdispatch context
[in]velvelocity vector
[in]cromcell density
[in]bromdensity at boundary faces
[in]pthermodynamic pressure
[in]bc_coeffs_vBC structure for velocity vector
[in]bc_coeffs_pBC structure for pressure
[out]imasflInternal faces mass flux
[out]bmasflBoundary faces mass flux