8.3
general documentation
cs_mass_source_terms.cpp File Reference
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "cs_array.h"
#include "cs_base.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_mass_source_terms.h"
+ Include dependency graph for cs_mass_source_terms.cpp:

Functions

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. More...
 

Detailed Description

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