#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"
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. More... | |
Mass source terms computation.
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.
[in] | iterns | iteration number on Navier-Stoke |
[in] | dim | associated field dimension |
[in] | ncesmp | number of cells with mass source term |
[in] | icetsm | source mass cells pointer (1-based numbering) |
[in] | itpsmp | mass source type for the working variable |
[in] | volume | cells volume |
[in] | pvara | variable value at time step beginning |
[in] | smcelp | value of the variable associated with mass source |
[in] | gamma | flow mass value |
[in,out] | st_exp | explicit source term part linear in the variable |
[in,out] | st_imp | associated value with tsexp to be stored in the matrix |
[out] | gapinj | explicit source term part independent of the variable |