My Project
programmer's documentation
Functions
cs_user_lagr_boundary_conditions.c File Reference
#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_boundary_zone.h"
#include "cs_math.h"
#include "cs_notebook.h"
#include "cs_parall.h"
#include "cs_parameters.h"
#include "cs_prototypes.h"
#include "cs_random.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_log.h"
#include "cs_lagr.h"
#include "cs_lagr_new.h"
#include "cs_lagr_tracking.h"
#include "cs_lagr_prototypes.h"
Include dependency graph for cs_user_lagr_boundary_conditions.c:

Functions

void cs_user_lagr_boundary_conditions (const int bc_type[])
 Define particle boundary conditions. More...
 
void cs_lagr_user_boundary_interaction (cs_lagr_particle_set_t *particles, cs_lnum_t p_id, cs_lnum_t face_id, const cs_real_t face_norm[3], const cs_real_t c_intersect[3], cs_real_t t_intersect, int b_zone_id, int *event_flag, cs_lagr_tracking_state_t *tracking_state)
 Handling of a particle interaction with a boundary of type CS_LAGR_BC_USER. More...
 

Function Documentation

◆ cs_lagr_user_boundary_interaction()

void cs_lagr_user_boundary_interaction ( cs_lagr_particle_set_t particles,
cs_lnum_t  p_id,
cs_lnum_t  face_id,
const cs_real_t  face_norm[3],
const cs_real_t  c_intersect[3],
cs_real_t  t_intersect,
int  b_zone_id,
int *  event_flag,
cs_lagr_tracking_state_t tracking_state 
)

Handling of a particle interaction with a boundary of type CS_LAGR_BC_USER.

Parameters
[in,out]particlespointer to particle set
[in]p_idparticle id
[in]face_idboundary face id
[in]face_normunit face (or face subdivision) normal
[in]c_intersectcoordinates of intersection with the face
[in]t_intersectrelative distance (in [0, 1]) of the intersection point with the face relative to the initial trajectory segment
[in]b_zone_idboundary zone id of the matching face
[in,out]event_flagevent flag in case events are available
[in,out]tracking_stateparticle tracking state

◆ cs_user_lagr_boundary_conditions()

void cs_user_lagr_boundary_conditions ( const int  bc_type[])

Define particle boundary conditions.

This is used for the definition of inlet and other boundaries, based on predefined boundary zones (cs_zone_t).

Parameters
[in]bc_typetype of the boundary faces