#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"
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... | |
Volume mass injection and associated source terms computation.
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.
[in] | n_cells | number of cells in mass source term zones |
[out] | cell_num | numbers (1-based) cells in mass source term zones |
[out] | cell_zone_id | associated zone ids |
Evaluate contributions to volume mass injection.
[in] | nvar | total number of variables |
[in] | ncesmp | number of cells with mass source term |
[in] | itypsm | mass source type for the working variable size: [nvar][ncesmp] |
[in] | smacel | values of the variables associated to the mass source (for the pressure variable, smacel is the mass flux) size: [nvar][ncesmp] |
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.