My Project
programmer's documentation
|
#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"
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... | |
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.
[in,out] | particles | pointer to particle set |
[in] | p_id | particle id |
[in] | face_id | boundary face id |
[in] | face_norm | unit face (or face subdivision) normal |
[in] | c_intersect | coordinates of intersection with the face |
[in] | t_intersect | relative distance (in [0, 1]) of the intersection point with the face relative to the initial trajectory segment |
[in] | b_zone_id | boundary zone id of the matching face |
[in,out] | event_flag | event flag in case events are available |
[in,out] | tracking_state | particle tracking state |
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).
[in] | bc_type | type of the boundary faces |