programmer's documentation
Functions
cs_walldistance.c File Reference
#include "cs_defs.h"
#include <errno.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include <bft_mem.h>
#include <bft_printf.h>
#include "cs_mesh.h"
#include "cs_post.h"
#include "cs_mesh_location.h"
#include "cs_field.h"
#include "cs_cdo.h"
#include "cs_param.h"
#include "cs_reco.h"
#include "cs_cdo_toolbox.h"
#include "cs_walldistance.h"
Include dependency graph for cs_walldistance.c:

Functions

static void _compute_cdofb (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_equation_t *eq, const cs_field_t *field, cs_real_t dist[])
 Compute the wall distance for a face-based scheme. More...
 
static void _compute_cdovb (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_field_t *field, cs_real_t dist[])
 Compute the wall distance for a vertex-based scheme. More...
 
void cs_walldistance_compute (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, const cs_equation_t *eq)
 Compute the wall distance. More...
 
void cs_walldistance_setup (cs_equation_t *eq, cs_property_t *diff_pty, int wall_ml_id)
 Setup an new equation related to the wall distance. More...
 

Function Documentation

static void _compute_cdofb ( const cs_cdo_connect_t connect,
const cs_cdo_quantities_t cdoq,
const cs_equation_t *  eq,
const cs_field_t field,
cs_real_t  dist[] 
)
static

Compute the wall distance for a face-based scheme.

Parameters
[in]connectpointer to a cs_cdo_connect_t structure
[in]cdoqpointer to a cs_cdo_quantities_t structure
[in]eqpointer to the associated cs_equation_t structure
[in]fieldpointer to a cs_field_t structure
[in,out]distarray storing the wall distance to compute
static void _compute_cdovb ( const cs_cdo_connect_t connect,
const cs_cdo_quantities_t cdoq,
const cs_field_t field,
cs_real_t  dist[] 
)
static

Compute the wall distance for a vertex-based scheme.

Parameters
[in]connectpointer to a cs_cdo_connect_t structure
[in]cdoqpointer to a cs_cdo_quantities_t structure
[in]fieldpointer to a cs_field_t structure
[in,out]distarray storing the wall distance to compute
void cs_walldistance_compute ( const cs_cdo_connect_t connect,
const cs_cdo_quantities_t cdoq,
const cs_equation_t *  eq 
)

Compute the wall distance.

Parameters
[in]connectpointer to a cs_cdo_connect_t structure
[in]cdoqpointer to a cs_cdo_quantities_t structure
[in]eqpointer to the associated cs_equation_t structure
void cs_walldistance_setup ( cs_equation_t *  eq,
cs_property_t *  diff_pty,
int  wall_ml_id 
)

Setup an new equation related to the wall distance.

Parameters
[in]eqpointer to the associated cs_equation_t structure
[in]diff_ptypointer to a cs_property_t structure
[in]wall_ml_idid of the mesh location related to wall boundaries