8.3
general documentation
cs_volume_mass_injection.cpp File Reference
#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.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_field_default.h"
#include "cs_field_pointer.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.cpp:

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 (void)
 Build the list and zone ids of cells with volume mass injection. More...
 
void cs_volume_mass_injection_eval (void)
 Evaluate contributions to volume mass injection. More...
 
void cs_volume_mass_injection_get_arrays (const cs_field_t *f, cs_lnum_t *n_elts, const cs_lnum_t **elt_ids, int **mst_type, cs_real_t **mst_val, cs_real_t **gamma)
 Return pointers to the mass source term arrays. 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 ( void  )

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

◆ cs_volume_mass_injection_eval()

void cs_volume_mass_injection_eval ( void  )

Evaluate contributions to volume mass injection.

◆ 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()

void cs_volume_mass_injection_get_arrays ( const cs_field_t f,
cs_lnum_t n_elts,
const cs_lnum_t **  elt_ids,
int **  mst_type,
cs_real_t **  mst_val,
cs_real_t **  gamma 
)

Return pointers to the mass source term arrays.

Parameters
[in]fpointer to associated field
[out]n_eltsnumber of cells with mass source terms
[out]elt_idspointer to source mass cells list (1-based numbering)//FIXME
[out]mst_typemass source types (0: ambient value, 1: s_val value)
[out]mst_valpointer to mass source values
[out]gammapointer to flow mass value