My Project
programmer's documentation
Functions
cs_user_lagr_volume_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_volume_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_volume_conditions.c:

Functions

void cs_user_lagr_volume_conditions (void)
 Define particle volume conditions. More...
 
void cs_lagr_user_internal_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, cs_lagr_tracking_state_t *tracking_state)
 Handling of a particle interaction with a interior face of type CS_LAGR_BC_USER. More...
 

Function Documentation

◆ cs_lagr_user_internal_interaction()

void cs_lagr_user_internal_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,
cs_lagr_tracking_state_t tracking_state 
)

Handling of a particle interaction with a interior face of type CS_LAGR_BC_USER.

Parameters
[in,out]particlespointer to particle set
[in]p_idparticle id
[in]face_idinterior 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,out]tracking_stateparticle tracking state

◆ cs_user_lagr_volume_conditions()

void cs_user_lagr_volume_conditions ( void  )

Define particle volume conditions.

This is used for the definition of volume injections, based on predefined volume zones (cs_zone_t).