|
My Project
programmer's documentation
|
Go to the documentation of this file. 1 #ifndef __CS_LAGR_EVENT_H__
2 #define __CS_LAGR_EVENT_H__
53 #define CS_EVENT_INFLOW (1 << 0)
56 #define CS_EVENT_OUTFLOW (1 << 1)
59 #define CS_EVENT_REBOUND (1 << 2)
62 #define CS_EVENT_DEPOSITION (1 << 3)
65 #define CS_EVENT_RESUSPENSION (1 << 4)
68 #define CS_EVENT_ROLL_OFF (1 << 5)
71 #define CS_EVENT_ROLL_ON (1 << 6)
74 #define CS_EVENT_FOULING (1 << 7)
272 assert(event_set->
e_am->
count[attr] > 0);
274 return (
unsigned char *)event_set->
e_buffer
292 inline static const void *
297 assert(event_set->
e_am->
count[attr] > 0);
321 assert(event_set->
e_am->
count[attr] > 0);
345 assert(event_set->
e_am->
count[attr] > 0);
349 + event_set->
e_am->
displ[attr])) = value;
369 assert(event_set->
e_am->
count[attr] > 0);
393 assert(event_set->
e_am->
count[attr] > 0);
397 + event_set->
e_am->
displ[attr])) = value;
const cs_lagr_event_attribute_map_t * cs_lagr_event_get_attr_map(void)
Return const pointer to the main event attribute map structure.
Definition: cs_lagr_event.c:527
static void * cs_lagr_events_attr(cs_lagr_event_set_t *event_set, cs_lnum_t event_id, cs_lagr_event_attribute_t attr)
Get pointer to a current attribute of a given event in a set.
Definition: cs_lagr_event.h:268
cs_lnum_t n_events_max
Definition: cs_lagr_event.h:133
static cs_lnum_t cs_lagr_events_get_lnum(const cs_lagr_event_set_t *event_set, cs_lnum_t event_id, cs_lagr_event_attribute_t attr)
Get attribute value of type cs_lnum_t of a given event in a set.
Definition: cs_lagr_event.h:317
void cs_lagr_event_set_destroy(cs_lagr_event_set_t **events)
Definition: cs_lagr_event.c:589
Definition: cs_lagr_event.h:98
void cs_lagr_event_finalize(void)
Destroy event set map if it exists.
Definition: cs_lagr_event.c:506
Definition: cs_lagr_event.h:90
Definition: cs_lagr_event.h:89
cs_lagr_event_set_t * cs_lagr_event_set_boundary_interaction(void)
Definition: cs_lagr_event.c:769
Definition: cs_lagr_event.h:91
#define END_C_DECLS
Definition: cs_defs.h:468
const char * cs_lagr_event_get_attr_name(cs_lagr_event_attribute_t attr)
Return name associated with a given attribute.
Definition: cs_lagr_event.c:542
Definition: cs_lagr_particle.h:210
const cs_lagr_event_attribute_map_t * e_am
Definition: cs_lagr_event.h:135
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
int count[CS_LAGR_N_E_ATTRIBUTES]
Definition: cs_lagr_event.h:119
cs_lagr_event_set_t * cs_lagr_event_set_create(void)
Definition: cs_lagr_event.c:568
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_datatype_t
Definition: cs_defs.h:260
unsigned char * e_buffer
Definition: cs_lagr_event.h:136
cs_lnum_t n_events
Definition: cs_lagr_event.h:132
void cs_lagr_event_get_attr_info(const cs_lagr_event_set_t *events, cs_lagr_event_attribute_t attr, size_t *extents, size_t *size, ptrdiff_t *displ, cs_datatype_t *datatype, int *count)
Get data extents for a given event attribute.
Definition: cs_lagr_event.c:621
void cs_lagr_event_set_dump(const cs_lagr_event_set_t *events)
Dump a cs_lagr_event_set_t structure.
Definition: cs_lagr_event.c:692
Definition: cs_lagr_particle.h:169
Definition: cs_lagr_event.h:105
static void cs_lagr_events_set_lnum(cs_lagr_event_set_t *event_set, cs_lnum_t event_id, cs_lagr_event_attribute_t attr, cs_lnum_t value)
Set attribute value of type cs_lnum_t of a given event in a set.
Definition: cs_lagr_event.h:340
cs_lagr_event_attribute_t
Definition: cs_lagr_event.h:87
void cs_lagr_event_initialize(void)
Define event map based on defined options.
Definition: cs_lagr_event.c:390
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
void cs_lagr_event_attr_in_range(int attr)
Check if an event attribute is in a valid range.
Definition: cs_lagr_event.c:652
void cs_lagr_event_set_resize(cs_lagr_event_set_t *event_set, cs_lnum_t min_size)
Definition: cs_lagr_event.c:668
Definition: cs_lagr_event.h:130
ptrdiff_t displ[CS_LAGR_N_E_ATTRIBUTES]
Definition: cs_lagr_event.h:121
Definition: cs_lagr_event.h:94
void cs_lagr_event_init_from_particle(cs_lagr_event_set_t *events, cs_lagr_particle_set_t *particles, cs_lnum_t event_id, cs_lnum_t particle_id)
Definition: cs_lagr_event.c:721
size_t lb
Definition: cs_lagr_event.h:109
static const void * cs_lagr_events_attr_const(const cs_lagr_event_set_t *event_set, cs_lnum_t event_id, cs_lagr_event_attribute_t attr)
Get const pointer to current attribute data of a given event in a set.
Definition: cs_lagr_event.h:293
size_t extents
Definition: cs_lagr_event.h:107
static void cs_lagr_events_set_real(cs_lagr_event_set_t *event_set, cs_lnum_t event_id, cs_lagr_event_attribute_t attr, cs_real_t value)
Set attribute value of type cs_real_t of a given event in a set.
Definition: cs_lagr_event.h:388
static cs_real_t cs_lagr_events_get_real(const cs_lagr_event_set_t *event_set, cs_lnum_t event_id, cs_lagr_event_attribute_t attr)
Get attribute value of type cs_real_t of a given event in a set.
Definition: cs_lagr_event.h:365