My Project
programmer's documentation
Functions
cs_lagr_new.c File Reference
#include "cs_defs.h"
#include <limits.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <float.h>
#include <assert.h>
#include "bft_printf.h"
#include "bft_error.h"
#include "bft_mem.h"
#include "cs_base.h"
#include "cs_halo.h"
#include "cs_log.h"
#include "cs_interface.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_adjacencies.h"
#include "cs_mesh_quantities.h"
#include "cs_order.h"
#include "cs_parall.h"
#include "cs_physical_model.h"
#include "cs_random.h"
#include "cs_search.h"
#include "cs_timer_stats.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_lagr_clogging.h"
#include "cs_lagr_deposition_model.h"
#include "cs_lagr_roughness.h"
#include "cs_lagr_dlvo.h"
#include "cs_lagr_stat.h"
#include "cs_lagr.h"
#include "cs_lagr_tracking.h"
#include "cs_lagr_new.h"
Include dependency graph for cs_lagr_new.c:

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

◆ 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