programmer's documentation
Macros | 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_math.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_walldistance.h"
Include dependency graph for cs_walldistance.c:

Macros

#define _dp3   cs_math_3_dot_product
 

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_setup (cs_equation_t *eq, cs_property_t *diff_pty, int wall_ml_id)
 Setup an new equation related to the wall distance. More...
 
void cs_walldistance_compute (const cs_mesh_t *mesh, const cs_time_step_t *time_step, double dt_cur, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *cdoq, bool do_logcvg, cs_equation_t *eq)
 Compute the wall distance. More...
 

Macro Definition Documentation

◆ _dp3

#define _dp3   cs_math_3_dot_product

Function Documentation

◆ _compute_cdofb()

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

◆ _compute_cdovb()

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

◆ cs_walldistance_compute()

void cs_walldistance_compute ( const cs_mesh_t mesh,
const cs_time_step_t time_step,
double  dt_cur,
const cs_cdo_connect_t connect,
const cs_cdo_quantities_t cdoq,
bool  do_logcvg,
cs_equation_t *  eq 
)

Compute the wall distance.

Parameters
[in]meshpointer to a cs_mesh_t structure
[in]time_steppointer to a cs_time_step_t structure
[in]dt_curcurrent value of the time step
[in]connectpointer to a cs_cdo_connect_t structure
[in]cdoqpointer to a cs_cdo_quantities_t structure
[in]do_logcvgoutput information on convergence or not
[in,out]eqpointer to the related cs_equation_t structure

◆ cs_walldistance_setup()

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