9.0
general documentation
Loading...
Searching...
No Matches
cs_mass_source_terms.h File Reference
#include "base/cs_base.h"
Include dependency graph for cs_mass_source_terms.h:

Go to the source code of this file.

Functions

void cs_mass_source_terms (int iterns, int dim, cs_lnum_t ncesmp, const cs_lnum_t icetsm[], int itpsmp[], const cs_real_t volume[], const cs_real_t pvara[], const cs_real_t smcelp[], const cs_real_t gamma[], cs_real_t st_exp[], cs_real_t st_imp[], cs_real_t gapinj[])
 Implicit and explicit mass source terms computation.

Function Documentation

◆ cs_mass_source_terms()

void cs_mass_source_terms ( int iterns,
int dim,
cs_lnum_t n_elts,
const cs_lnum_t elt_ids[],
int mst_type[],
const cs_real_t volume[],
const cs_real_t pvara[],
const cs_real_t mst_val[],
const cs_real_t gamma[],
cs_real_t st_exp[],
cs_real_t st_imp[],
cs_real_t gapinj[] )

Implicit and explicit mass source terms computation.

Arrays st_exp, st_imp, and gapinj are incremented, so should be initialized.

Parameters
[in]iternsiteration number on Navier-Stoke
[in]dimassociated field dimension
[in]n_eltsnumber of cells with mass source term
[in]elt_idssource mass cells pointer (1-based numbering)
[in]mst_typemass source type for the working variable
[in]volumecells volume
[in]pvaravariable value at time step beginning
[in]mst_valvalue of the variable associated with mass source
[in]gammavolume mass injection value
[in,out]st_expexplicit source term part linear in the variable
[in,out]st_impassociated value with tsexp to be stored in the matrix
[in,out]gapinjexplicit source term part independent of the variable