![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "bft_error.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_blas.h"
#include "cs_halo.h"
#include "cs_halo_perio.h"
#include "cs_log.h"
#include "cs_mesh.h"
#include "cs_field.h"
#include "cs_gradient.h"
#include "cs_gradient_perio.h"
#include "cs_ext_neighborhood.h"
#include "cs_mesh_quantities.h"
#include "cs_parameters.h"
#include "cs_prototypes.h"
#include "cs_timer.h"
#include "cs_convection_diffusion_balance.h"
Macros | |
#define | THR_MIN 128 |
Functions | |
void | bilsc2 (const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_int_t *const iconvp, const cs_int_t *const idiffp, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const ircflp, const cs_int_t *const ischcp, const cs_int_t *const isstpp, const cs_int_t *const icvflb, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const ifaccp, const cs_int_t *const iwarnp, const cs_real_t *const blencp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, const cs_real_t *const relaxp, const cs_real_t *const thetap, cs_real_t pvar[], const cs_real_t pvara[], const cs_int_t bc_type[], const cs_int_t icvfli[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_t rhs[]) |
void | cs_convection_diffusion_scalar (int idtvar, int f_id, int iconvp, int idiffp, int nswrgp, int imligp, int ircflp, int ischcp, int isstpp, int icvflb, int inc, int imrgra, int iccocg, int ifaccp, int iwarnp, double blencp, double epsrgp, double climgp, double extrap, double relaxp, double thetap, cs_real_t *restrict pvar, const cs_real_t *restrict pvara, const cs_int_t bc_type[], const cs_int_t icvfli[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_t *restrict rhs) |
This function adds the explicit part of the convection/diffusion terms of a standard transport equation of a scalar field ![]() | |
#define THR_MIN 128 |
void bilsc2 | ( | const cs_int_t *const | idtvar, |
const cs_int_t *const | f_id, | ||
const cs_int_t *const | iconvp, | ||
const cs_int_t *const | idiffp, | ||
const cs_int_t *const | nswrgp, | ||
const cs_int_t *const | imligp, | ||
const cs_int_t *const | ircflp, | ||
const cs_int_t *const | ischcp, | ||
const cs_int_t *const | isstpp, | ||
const cs_int_t *const | icvflb, | ||
const cs_int_t *const | inc, | ||
const cs_int_t *const | imrgra, | ||
const cs_int_t *const | iccocg, | ||
const cs_int_t *const | ifaccp, | ||
const cs_int_t *const | iwarnp, | ||
const cs_real_t *const | blencp, | ||
const cs_real_t *const | epsrgp, | ||
const cs_real_t *const | climgp, | ||
const cs_real_t *const | extrap, | ||
const cs_real_t *const | relaxp, | ||
const cs_real_t *const | thetap, | ||
cs_real_t | pvar[], | ||
const cs_real_t | pvara[], | ||
const cs_int_t | bc_type[], | ||
const cs_int_t | icvfli[], | ||
const cs_real_t | coefap[], | ||
const cs_real_t | coefbp[], | ||
const cs_real_t | cofafp[], | ||
const cs_real_t | cofbfp[], | ||
const cs_real_t | i_massflux[], | ||
const cs_real_t | b_massflux[], | ||
const cs_real_t | i_visc[], | ||
const cs_real_t | b_visc[], | ||
cs_real_t | rhs[] | ||
) |
(end ignore by Doxygen)
void cs_convection_diffusion_scalar | ( | int | idtvar, |
int | f_id, | ||
int | iconvp, | ||
int | idiffp, | ||
int | nswrgp, | ||
int | imligp, | ||
int | ircflp, | ||
int | ischcp, | ||
int | isstpp, | ||
int | icvflb, | ||
int | inc, | ||
int | imrgra, | ||
int | iccocg, | ||
int | ifaccp, | ||
int | iwarnp, | ||
double | blencp, | ||
double | epsrgp, | ||
double | climgp, | ||
double | extrap, | ||
double | relaxp, | ||
double | thetap, | ||
cs_real_t *restrict | pvar, | ||
const cs_real_t *restrict | pvara, | ||
const cs_int_t | bc_type[], | ||
const cs_int_t | icvfli[], | ||
const cs_real_t | coefap[], | ||
const cs_real_t | coefbp[], | ||
const cs_real_t | cofafp[], | ||
const cs_real_t | cofbfp[], | ||
const cs_real_t | i_massflux[], | ||
const cs_real_t | b_massflux[], | ||
const cs_real_t | i_visc[], | ||
const cs_real_t | b_visc[], | ||
cs_real_t *restrict | rhs | ||
) |
This function adds the explicit part of the convection/diffusion terms of a standard transport equation of a scalar field .
More precisely, the right hand side is updated as follows:
Warning:
Options:
[in] | idtvar | indicator of the temporal scheme |
[in] | f_id | field id (or -1) |
[in] | iconvp | indicator
|
[in] | idiffp | indicator
|
[in] | nswrgp | number of reconstruction sweeps for the gradients |
[in] | imligp | clipping gradient method
|
[in] | ircflp | indicator
|
[in] | ischcp | indicator
|
[in] | isstpp | indicator
|
[in] | icvflb | global indicator of boundary convection flux
|
[in] | inc | indicator
|
[in] | imrgra | indicator
|
[in] | iccocg | indicator
|
[in] | ifaccp | indicator
|
[in] | iwarnp | verbosity |
[in] | blencp | fraction of upwinding |
[in] | epsrgp | relative precision for the gradient reconstruction |
[in] | climgp | clipping coeffecient for the computation of the gradient |
[in] | extrap | coefficient for extrapolation of the gradient |
[in] | relaxp | coefficient of relaxation |
[in] | thetap | weightening coefficient for the theta-schema,
|
[in] | pvar | solved variable (current time step) |
[in] | pvara | solved variable (previous time step) |
[in] | bc_type | boundary condition type |
[in] | icvfli | boundary face indicator array of convection flux
|
[in] | coefap | boundary condition array for the variable (Explicit part) |
[in] | coefbp | boundary condition array for the variable (Impplicit part) |
[in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
[in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
[in] | i_massflux | mass flux at interior faces |
[in] | b_massflux | mass flux at boundary faces |
[in] | i_visc | ![]() |
[in] | b_visc | ![]() |
[in,out] | smbrp | right hand side ![]() |