Go to the source code of this file.
|
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...
|
|
void | cs_volume_mass_injection_get_arrays (const cs_field_t *f, cs_lnum_t *ncesmp, cs_lnum_t **icetsm, int **itpsmp, cs_real_t **smcelp, cs_real_t **gamma) |
| Return pointers to the mass source term arrays. More...
|
|
◆ cs_volume_mass_injection_eval_t
Function pointer to update cell values in a given zone for volume mass injection.
- Note
- if the input pointer is non-NULL, it must point to valid data when the selection function is called, so either:
- that value or structure should not be temporary (i.e. local);
- post-processing output must be ensured using cs_post_write_meshes() with a fixed-mesh writer before the data pointed to goes out of scope;
- Parameters
-
◆ 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_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 |
◆ 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] | 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] |
◆ 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.
◆ cs_volume_mass_injection_get_arrays()
Return pointers to the mass source term arrays.
- Parameters
-
[in] | f | pointer to associated field |
[out] | ncesmp | number of cells with mass source terms |
[out] | icetsm | pointet to source mass cells list (1-based numbering) |
[out] | itpsmp | mass source type for the working variable (see cs_user_mass_source_terms) |
[out] | s_type | mass source types (0: ambient value, 1: s_val value) |
[out] | smcelp | pointer to mass source values |
[out] | gamma | pointer to flow mass value |