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... | |
Computations for compressible flows.
!
| void cs_cf_cfl_compute | ( | cs_real_t | wcf[] | ) |
Computation of the constraint for the CFL (compressible algorithm)
| [in] | wcf | compressible constraint |
| 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.
| [in] | iterns | Navier-Stokes iteration number |
| 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)
| [in] | ctx | dispatch context |
| [in] | vel | velocity vector |
| [in] | crom | cell density |
| [in] | brom | density at boundary faces |
| [in] | p | thermodynamic pressure |
| [in] | bc_coeffs_v | BC structure for velocity vector |
| [in] | bc_coeffs_p | BC structure for pressure |
| [out] | imasfl | Internal faces mass flux |
| [out] | bmasfl | Boundary faces mass flux |