My Project
programmer's documentation
Functions
cs_lagr_new.h File Reference
#include "cs_defs.h"
#include "cs_lagr_particle.h"
Include dependency graph for cs_lagr_new.h:

Go to the source code of this file.

Functions

void cs_lagr_new (cs_lagr_particle_set_t *particles, 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 *particles, 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...
 
void cs_lagr_new_particle_init (const cs_lnum_t particle_range[2], int time_id, const cs_real_t visc_length[])
 Initialization for new particles. More...
 

Function Documentation

◆ cs_lagr_new()

void cs_lagr_new ( cs_lagr_particle_set_t particles,
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]particlespointer 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

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

Parameters
[in,out]particlespointer 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[] 
)

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)

◆ cs_lagr_new_v()

void cs_lagr_new_v ( cs_lagr_particle_set_t particles,
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]particlespointer 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]particlespointer 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