My Project
programmer's documentation
|
Go to the source code of this file.
Data Structures | |
struct | cs_lagr_attribute_map_t |
struct | cs_lagr_particle_set_t |
Macros | |
#define | CS_LAGR_PART_TO_DELETE (1 << 0) |
#define | CS_LAGR_PART_FIXED (1 << 1) |
#define | CS_LAGR_PART_DEPOSITED (1 << 2) |
#define | CS_LAGR_PART_ROLLING (1 << 3) |
#define | CS_LAGR_PART_IMPOSED_MOTION (1 << 4) |
#define | CS_LAGR_PART_DEPOSITION_FLAGS |
Functions | |
void | cs_lagr_particle_attr_initialize (void) |
Define particle map based on defined options. More... | |
const cs_lagr_attribute_map_t * | cs_lagr_particle_get_attr_map (void) |
Return const pointer to the main particle attribute map structure. More... | |
void | cs_lagr_particle_set_create (void) |
void | cs_lagr_particle_finalize (void) |
Destroy main particle set and map if they exist. More... | |
void | cs_lagr_part_copy (cs_lnum_t dest, cs_lnum_t src) |
Copy attributes from one particle to another. More... | |
void | cs_lagr_get_attr_info (const cs_lagr_particle_set_t *particles, int time_id, cs_lagr_attribute_t attr, size_t *extents, size_t *size, ptrdiff_t *displ, cs_datatype_t *datatype, int *count) |
Get data extents for a given particle attribute. More... | |
int | cs_lagr_check_attr_query (const cs_lagr_particle_set_t *particles, cs_lagr_attribute_t attr, cs_datatype_t datatype, int stride, int component_id) |
Check that query for a given particle attribute is valid. More... | |
void | cs_lagr_particle_attr_in_range (int attr) |
Check if a particle attribute is in a valid range. More... | |
cs_lagr_particle_set_t * | cs_lagr_get_particle_set (void) |
Return pointer to the main cs_lagr_particle_set_t structure. More... | |
static void * | cs_lagr_particles_attr (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get pointer to a current attribute of a given particle in a set. More... | |
static const void * | cs_lagr_particles_attr_const (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get const pointer to current attribute data of a given particle in a set. More... | |
static void * | cs_lagr_particles_attr_n (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr) |
Get pointer to attribute data of a given particle in a set at a given time. More... | |
static const void * | cs_lagr_particles_attr_n_const (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr) |
Get const pointer to attribute data of a given particle in a set at a given time. More... | |
static int | cs_lagr_particles_get_flag (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int mask) |
Get flag value with a selected mask for a given particle in a set. More... | |
static void | cs_lagr_particles_set_flag (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int mask) |
Set flag value with a selected mask for a given particle in a set. More... | |
static void | cs_lagr_particles_unset_flag (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int mask) |
Unset flag value with a selected mask for a given particle in a set. More... | |
static cs_lnum_t | cs_lagr_particles_get_lnum (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_lnum_t of a given particle in a set. More... | |
static cs_lnum_t | cs_lagr_particles_get_lnum_n (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_lnum_t of a given particle in a set at a given time. More... | |
static void | cs_lagr_particles_set_lnum (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr, cs_lnum_t value) |
Set attribute value of type cs_lnum_t of a given particle in a set. More... | |
static void | cs_lagr_particles_set_lnum_n (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr, cs_lnum_t value) |
Set attribute value of type cs_lnum_t of a given particle in a set at a given time. More... | |
static cs_gnum_t | cs_lagr_particles_get_gnum (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_gnum_t of a given particle in a set. More... | |
static cs_gnum_t | cs_lagr_particles_get_gnum_n (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_gnum_t of a given particle in a set at a given time. More... | |
static void | cs_lagr_particles_set_gnum (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr, cs_gnum_t value) |
Set attribute value of type cs_gnum_t of a given particle in a set. More... | |
static void | cs_lagr_particles_set_gnum_n (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr, cs_gnum_t value) |
Set attribute value of type cs_gnum_t of a given particle in a set at a given time. More... | |
static cs_real_t | cs_lagr_particles_get_real (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_real_t of a given particle in a set. More... | |
static cs_real_t | cs_lagr_particles_get_real_n (const cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_real_t of a given particle in a set at a given time. More... | |
static void | cs_lagr_particles_set_real (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr, cs_real_t value) |
Set attribute value of type cs_real_t of a given particle in a set. More... | |
static void | cs_lagr_particles_set_real_n (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, int time_id, cs_lagr_attribute_t attr, cs_real_t value) |
Set attribute value of type cs_real_t of a given particle in a set at a given time. More... | |
static cs_real_t * | cs_lagr_particles_source_terms (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get pointer to 2nd order scheme source terms for an attribute of a given particle in a set. More... | |
static const cs_real_t * | cs_lagr_particles_source_terms_const (cs_lagr_particle_set_t *particle_set, cs_lnum_t particle_id, cs_lagr_attribute_t attr) |
Get const pointer to 2nd order scheme source terms an attribute of a given particle in a set. More... | |
static void * | cs_lagr_particle_attr (void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get pointer to current attribute data of a particle. More... | |
static const void * | cs_lagr_particle_attr_const (const void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get const pointer to current attribute data of a particle. More... | |
static void * | cs_lagr_particle_attr_n (void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr) |
Get pointer to attribute data of a particle at a given time. More... | |
static const void * | cs_lagr_particle_attr_n_const (const void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr) |
Get const pointer to attribute data of a particle at a given time. More... | |
static cs_lnum_t | cs_lagr_particle_get_lnum (const void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get attribute value of type cs_lnum_t of a given particle in a set. More... | |
static cs_lnum_t | cs_lagr_particle_get_lnum_n (const void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_lnum_t of a given particle at a given time. More... | |
static void | cs_lagr_particle_set_lnum (void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr, cs_lnum_t value) |
Set attribute value of type cs_lnum_t of a given particle. More... | |
static void | cs_lagr_particle_set_lnum_n (void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr, cs_lnum_t value) |
Set attribute value of type cs_lnum_t of a given particle at a given time. More... | |
static cs_gnum_t | cs_lagr_particle_get_gnum (const void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get attribute value of type cs_gnum_t of a given particle in a set. More... | |
static cs_gnum_t | cs_lagr_particle_get_gnum_n (const void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_gnum_t of a given particle at a given time. More... | |
static void | cs_lagr_particle_set_gnum (void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr, cs_gnum_t value) |
Set attribute value of type cs_gnum_t of a given particle. More... | |
static void | cs_lagr_particle_set_gnum_n (void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr, cs_gnum_t value) |
Set attribute value of type cs_gnum_t of a given particle at a given time. More... | |
static cs_real_t | cs_lagr_particle_get_real (const void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get attribute value of type cs_real_t of a given particle in a set. More... | |
static cs_real_t | cs_lagr_particle_get_real_n (const void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr) |
Get attribute value of type cs_real_t of a given particle at a given time. More... | |
static void | cs_lagr_particle_set_real (void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr, cs_real_t value) |
Set attribute value of type cs_real_t of a given particle. More... | |
static void | cs_lagr_particle_set_real_n (void *particle, const cs_lagr_attribute_map_t *attr_map, int time_id, cs_lagr_attribute_t attr, cs_real_t value) |
Set attribute value of type cs_real_t of a given particle at a given time. More... | |
static cs_real_t * | cs_lagr_particle_source_term (void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get pointer to 2nd order scheme attribute source terms of a particle. More... | |
static const cs_real_t * | cs_lagr_particle_source_term_const (void *particle, const cs_lagr_attribute_map_t *attr_map, cs_lagr_attribute_t attr) |
Get pointer to 2nd order scheme attribute source terms of a particle. More... | |
int | cs_lagr_particle_set_resize (cs_lnum_t n_min_particles) |
Resize particle set buffers if needed. More... | |
void | cs_lagr_set_reallocation_factor (double f) |
Set reallocation factor for particle sets. More... | |
unsigned long long | cs_lagr_get_n_g_particles_max (void) |
Get global maximum number of particles. More... | |
void | cs_lagr_set_n_g_particles_max (unsigned long long n_g_particles_max) |
Set global maximum number of particles. More... | |
void | cs_lagr_particles_current_to_previous (cs_lagr_particle_set_t *particles, cs_lnum_t particle_id) |
Copy current attributes to previous attributes. More... | |
void | cs_lagr_particle_set_dump (const cs_lagr_particle_set_t *particles) |
Dump a cs_lagr_particle_set_t structure. More... | |
void | cs_lagr_set_n_user_variables (int n_user_variables) |
Set number of user particle variables. More... | |
Variables | |
const char * | cs_lagr_attribute_name [] |
cs_lagr_particle_set_t * | cs_glob_lagr_particle_set |
#define CS_LAGR_PART_DEPOSITED (1 << 2) |
particle is deposited
#define CS_LAGR_PART_DEPOSITION_FLAGS |
Flag sets (useful for cancelling nay flag of a set)
particle is in flow
#define CS_LAGR_PART_FIXED (1 << 1) |
particle is fixed, no resuspension possible
#define CS_LAGR_PART_IMPOSED_MOTION (1 << 4) |
particle motion is prescribed
#define CS_LAGR_PART_ROLLING (1 << 3) |
particle is rolling
#define CS_LAGR_PART_TO_DELETE (1 << 0) |
Flags specifying general event attributes
particle will be deleted
enum cs_lagr_attribute_t |
Prefedined particle attributes
int cs_lagr_check_attr_query | ( | const cs_lagr_particle_set_t * | particles, |
cs_lagr_attribute_t | attr, | ||
cs_datatype_t | datatype, | ||
int | stride, | ||
int | component_id | ||
) |
Check that query for a given particle attribute is valid.
[in] | particles | associated particle set |
[in] | attr | attribute whose values are required |
[in] | datatype | associated value type |
[in] | stride | number of values per particle |
[in] | component_id | if -1 : extract the whole attribute if >0 : id of the component to extract |
void cs_lagr_get_attr_info | ( | const cs_lagr_particle_set_t * | particles, |
int | time_id, | ||
cs_lagr_attribute_t | attr, | ||
size_t * | extents, | ||
size_t * | size, | ||
ptrdiff_t * | displ, | ||
cs_datatype_t * | datatype, | ||
int * | count | ||
) |
Get data extents for a given particle attribute.
For attributes not currently present, the displacement and data size should be -1 and 0 respectively.
[in] | particles | associated particle set |
[in] | time_id | associated time id (0: current, 1: previous) |
[in] | attr | particle attribute |
[out] | extents | size (in bytes) of particle structure, or NULL |
[out] | size | size (in bytes) of attribute in particle structure, or NULL |
[out] | displ | displacement (in bytes) in particle structure, or NULL |
[out] | datatype | datatype of associated attribute, or NULL |
[out] | count | number of type values associated with attribute, or NULL |
unsigned long long cs_lagr_get_n_g_particles_max | ( | void | ) |
cs_lagr_particle_set_t* cs_lagr_get_particle_set | ( | void | ) |
Return pointer to the main cs_lagr_particle_set_t structure.
Copy attributes from one particle to another.
The random value associated with the particle is modified.
dest | id (0-based) of destination particle |
src | id (0-based) of source particle |
|
inlinestatic |
Get pointer to current attribute data of a particle.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
|
inlinestatic |
Get const pointer to current attribute data of a particle.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
void cs_lagr_particle_attr_in_range | ( | int | attr | ) |
Check if a particle attribute is in a valid range.
If this is not the case, a fatal error is provoked.
[in] | attr | particle attribute |
void cs_lagr_particle_attr_initialize | ( | void | ) |
Define particle map based on defined options.
|
inlinestatic |
Get pointer to attribute data of a particle at a given time.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Get const pointer to attribute data of a particle at a given time.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
void cs_lagr_particle_finalize | ( | void | ) |
Destroy main particle set and map if they exist.
const cs_lagr_attribute_map_t* cs_lagr_particle_get_attr_map | ( | void | ) |
Return const pointer to the main particle attribute map structure.
|
inlinestatic |
Get attribute value of type cs_gnum_t of a given particle in a set.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_gnum_t of a given particle at a given time.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_lnum_t of a given particle in a set.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_lnum_t of a given particle at a given time.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_real_t of a given particle in a set.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_real_t of a given particle at a given time.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
void cs_lagr_particle_set_create | ( | void | ) |
Allocate main cs_lagr_particle_set_t structure.
void cs_lagr_particle_set_dump | ( | const cs_lagr_particle_set_t * | particles | ) |
Dump a cs_lagr_particle_set_t structure.
[in] | particles | cs_lagr_particle_t structure to dump |
|
inlinestatic |
Set attribute value of type cs_gnum_t of a given particle.
[in,out] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_gnum_t of a given particle at a given time.
[in,out] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_lnum_t of a given particle.
[in,out] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_lnum_t of a given particle at a given time.
[in,out] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_real_t of a given particle.
[in,out] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_real_t of a given particle at a given time.
[in,out] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
[in] | value | value to assign |
int cs_lagr_particle_set_resize | ( | cs_lnum_t | n_min_particles | ) |
Resize particle set buffers if needed.
By default, the total number of particles is not limited. A global limit may be set using cs_lagr_set_n_g_particles_max.
[in] | n_min_particles | minimum number of particles required |
|
inlinestatic |
Get pointer to 2nd order scheme attribute source terms of a particle.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
|
inlinestatic |
Get pointer to 2nd order scheme attribute source terms of a particle.
[in] | particle | pointer to particle data |
[in] | attr_map | pointer to attribute map |
[in] | attr | requested attribute id |
|
inlinestatic |
Get pointer to a current attribute of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Get const pointer to current attribute data of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Get pointer to attribute data of a given particle in a set at a given time.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Get const pointer to attribute data of a given particle in a set at a given time.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
void cs_lagr_particles_current_to_previous | ( | cs_lagr_particle_set_t * | particles, |
cs_lnum_t | particle_id | ||
) |
Copy current attributes to previous attributes.
[in,out] | particles | associated particle set |
[in] | particle_id | id of particle |
|
inlinestatic |
Get flag value with a selected mask for a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | mask | requested attribute flag value |
|
inlinestatic |
Get attribute value of type cs_gnum_t of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_gnum_t of a given particle in a set at a given time.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_lnum_t of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_lnum_t of a given particle in a set at a given time.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_real_t of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Get attribute value of type cs_real_t of a given particle in a set at a given time.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
|
inlinestatic |
Set flag value with a selected mask for a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | mask | attribute flag value to set |
|
inlinestatic |
Set attribute value of type cs_gnum_t of a given particle in a set.
[in,out] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_gnum_t of a given particle in a set at a given time.
[in,out] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_lnum_t of a given particle in a set.
[in,out] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_lnum_t of a given particle in a set at a given time.
[in,out] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_real_t of a given particle in a set.
[in,out] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Set attribute value of type cs_real_t of a given particle in a set at a given time.
[in,out] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | time_id | 0 for current, 1 for previous |
[in] | attr | requested attribute id |
[in] | value | value to assign |
|
inlinestatic |
Get pointer to 2nd order scheme source terms for an attribute of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Get const pointer to 2nd order scheme source terms an attribute of a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | attr | requested attribute id |
|
inlinestatic |
Unset flag value with a selected mask for a given particle in a set.
[in] | particle_set | pointer to particle set |
[in] | particle_id | particle id |
[in] | mask | attribute flag value to set |
void cs_lagr_set_n_g_particles_max | ( | unsigned long long | n_g_particles_max | ) |
void cs_lagr_set_n_user_variables | ( | int | n_user_variables | ) |
Set number of user particle variables.
[in] | n_user_variables | number of user variables |
void cs_lagr_set_reallocation_factor | ( | double | f | ) |
Set reallocation factor for particle sets.
This factor determines the multiplier used for reallocations when the particle set's buffers are too small to handle the new number of particles.
[in] | f | reallocation size multiplier |
cs_lagr_particle_set_t* cs_glob_lagr_particle_set |
Pointer to the main particle set
const char* cs_lagr_attribute_name[] |
Names of particle attributes