6.3
general documentation
cs_volume_mass_injection.c File Reference
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "cs_array.h"
#include "cs_base.h"
#include "cs_equation_param.h"
#include "cs_field.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_parall.h"
#include "cs_time_step.h"
#include "cs_volume_mass_injection.h"
+ Include dependency graph for cs_volume_mass_injection.c:

Functions

void cs_volume_mass_injection_flag_zones (void)
 Flag volume zones with the appropriate CS_VOLUME_ZONE_MASS_SOURCE_TERM flag when at least one volume mass injection on that zone is present. More...
 
void cs_volume_mass_injection_build_lists (cs_lnum_t n_cells, cs_lnum_t cell_num[], int cell_zone_id[])
 Build the list and zone ids of cells with volume mass injection. More...
 
void cs_volume_mass_injection_eval (int nvar, cs_lnum_t ncesmp, int itypsm[], cs_real_t smacel[])
 Evaluate contributions to volume mass injection. More...
 

Detailed Description

Volume mass injection and associated source terms computation.

Function Documentation

◆ cs_volume_mass_injection_build_lists()

void cs_volume_mass_injection_build_lists ( cs_lnum_t  n_cells,
cs_lnum_t  cell_num[],
int  cell_zone_id[] 
)

Build the list and zone ids of cells with volume mass injection.

Parameters
[in]n_cellsnumber of cells in mass source term zones
[out]cell_numnumbers (1-based) cells in mass source term zones
[out]cell_zone_idassociated zone ids

◆ cs_volume_mass_injection_eval()

void cs_volume_mass_injection_eval ( int  nvar,
cs_lnum_t  ncesmp,
int  itypsm[],
cs_real_t  smacel[] 
)

Evaluate contributions to volume mass injection.

Parameters
[in]nvartotal number of variables
[in]ncesmpnumber of cells with mass source term
[in]itypsmmass source type for the working variable size: [nvar][ncesmp]
[in]smacelvalues of the variables associated to the mass source (for the pressure variable, smacel is the mass flux) size: [nvar][ncesmp]

◆ cs_volume_mass_injection_flag_zones()

void cs_volume_mass_injection_flag_zones ( void  )

Flag volume zones with the appropriate CS_VOLUME_ZONE_MASS_SOURCE_TERM flag when at least one volume mass injection on that zone is present.

This is necessary for the reverse zone indexing required by the legacy code to function with defintions that are partially unrolled an not purely zone-based.