9.2
general documentation
cs_lagr_new.h File Reference
+ Include dependency graph for cs_lagr_new.h:

Go to the source code of this file.

Functions

void cs_lagr_new_particle_init (const cs_lnum_t particle_range[2], int time_id, const cs_real_t visc_length[], const cs_lagr_injection_set_t *zis)
 Initialization for new particles. More...
 
void cs_lagr_new (cs_lagr_particle_set_t &p_set, cs_lnum_t n_faces, const cs_lnum_t face_ids[], const cs_lnum_t face_particle_idx[])
 Inject a series of particles at random positions on given faces. More...
 
void cs_lagr_new_v (cs_lagr_particle_set_t &p_set, cs_lnum_t n_cells, const cs_lnum_t cell_ids[], const cs_lnum_t cell_particle_idx[])
 Inject a series of particles at random positions on given cells. More...
 

Function Documentation

◆ cs_lagr_new()

void cs_lagr_new ( cs_lagr_particle_set_t p_set,
cs_lnum_t  n_faces,
const cs_lnum_t  face_ids[],
const cs_lnum_t  face_particle_idx[] 
)

Inject a series of particles at random positions on given faces.

The fluid velocity and other variables and attributes are computed here.

Parameters
[in,out]p_setref to particle set
[in]n_facesnumber of faces in zone
[in]face_idsids of faces in zone
[in]face_particle_idxstarting index of added particles for each face in zone

◆ cs_lagr_new_particle_init()

void cs_lagr_new_particle_init ( const cs_lnum_t  particle_range[2],
int  time_id,
const cs_real_t  visc_length[],
const cs_lagr_injection_set_t zis 
)

Initialization for new particles.

The fluid velocity seen is computed here.

Parameters
[in]particle_rangestart and past-the-end ids of new particles for this zone and class
[in]time_idassociated time id (0: current, 1: previous)
[in]visc_lengthviscous layer thickness (size: number of mesh boundary faces)
[in]zisinjection data for this zone and set

◆ cs_lagr_new_v()

void cs_lagr_new_v ( cs_lagr_particle_set_t p_set,
cs_lnum_t  n_cells,
const cs_lnum_t  cell_ids[],
const cs_lnum_t  cell_particle_idx[] 
)

Inject a series of particles at random positions on given cells.

Warning
Currently works only for tri and quadrangular faces.

The fluid velocity and other variables and attributes are computed here.

Parameters
[in,out]p_setref to particle set
[in]n_cellsnumber of cells in zone
[in]cell_idsids of cells in zone
[in]cell_particle_idxstarting index of added particles for each cell in zone
Warning
Currently works only for tri and quadrangular faces.

The fluid velocity and other variables and attributes are computed here.

Parameters
[in,out]p_setpointer to particle set
[in]n_cellsnumber of cells in zone
[in]cell_idsids of cells in zone
[in]cell_particle_idxstarting index of added p_set for each cell in zone