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

Go to the source code of this file.

Enumerations

enum  cs_lagr_tracking_state_t {
  CS_LAGR_PART_TO_SYNC, CS_LAGR_PART_TO_SYNC_NEXT, CS_LAGR_PART_TREATED, CS_LAGR_PART_STUCK,
  CS_LAGR_PART_MERGED, CS_LAGR_PART_OUT, CS_LAGR_PART_ERR
}
 

Functions

void cs_lagr_tracking_initialize (void)
 Initialize particle tracking subsystem. More...
 
void cs_lagr_tracking_particle_movement (const cs_real_t visc_length[])
 Apply one particle movement step. More...
 
void cs_lagr_tracking_finalize (void)
 Finalize Lagrangian module. More...
 
void cs_lagr_test_wall_cell (const void *particle, const cs_lagr_attribute_map_t *p_am, const cs_real_t visc_length[], cs_real_t *yplus, cs_lnum_t *face_id)
 Determine the number of the closest wall face from the particle as well as the corresponding wall normal distance (y_p^+) More...
 
void cs_lagr_get_cell_face_connectivity (cs_lnum_t **cell_face_idx, cs_lnum_t **cell_face_lst)
 Get pointers to cell face connectivity used in particle tracking. More...
 

Enumeration Type Documentation

◆ cs_lagr_tracking_state_t

Enumerator
CS_LAGR_PART_TO_SYNC 
CS_LAGR_PART_TO_SYNC_NEXT 
CS_LAGR_PART_TREATED 
CS_LAGR_PART_STUCK 
CS_LAGR_PART_MERGED 
CS_LAGR_PART_OUT 
CS_LAGR_PART_ERR 

Function Documentation

◆ cs_lagr_get_cell_face_connectivity()

void cs_lagr_get_cell_face_connectivity ( cs_lnum_t **  cell_face_idx,
cs_lnum_t **  cell_face_lst 
)

Get pointers to cell face connectivity used in particle tracking.

Parameters
[out]cell_face_idxcell face index
[out]cell_face_lstcell face connectivity (signed 1-to-n based, negative for boundary faces, positive for interior faces)

◆ cs_lagr_test_wall_cell()

void cs_lagr_test_wall_cell ( const void *  particle,
const cs_lagr_attribute_map_t p_am,
const cs_real_t  visc_length[],
cs_real_t yplus,
cs_lnum_t face_id 
)

Determine the number of the closest wall face from the particle as well as the corresponding wall normal distance (y_p^+)

Used for the deposition model.

Parameters
[in]particleparticle attributes for current time step
[in]p_ampointer to attributes map for current time step
[in]visc_lengthviscous layer thickness
[out]yplusassociated yplus value
[out]face_idassociated neighbor wall face, or -1

◆ cs_lagr_tracking_finalize()

void cs_lagr_tracking_finalize ( void  )

Finalize Lagrangian module.

◆ cs_lagr_tracking_initialize()

void cs_lagr_tracking_initialize ( void  )

Initialize particle tracking subsystem.

◆ cs_lagr_tracking_particle_movement()

void cs_lagr_tracking_particle_movement ( const cs_real_t  visc_length[])

Apply one particle movement step.

Parameters
[in]visc_lengthviscous layer thickness