1#ifndef __CS_LAGR_STAT_H__
2#define __CS_LAGR_STAT_H__
141 const void *particle,
#define BEGIN_C_DECLS
Definition cs_defs.h:542
double cs_real_t
Floating-point value.
Definition cs_defs.h:342
#define END_C_DECLS
Definition cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition cs_defs.h:335
@ dt
Definition cs_field_pointer.h:65
int cs_lagr_stat_accumulator_define(const char *name, int location_id, cs_lagr_stat_group_t stat_group, int class_id, cs_lagr_moment_p_data_t *p_data_func, cs_lagr_moment_e_data_t *e_data_func, void *data_input, int nt_start, double t_start, cs_lagr_stat_restart_t restart_mode)
Define a particle weight type statistic.
Definition cs_lagr_stat.cpp:4007
void cs_lagr_moment_p_data_t(const void *input, const void *particle, const cs_lagr_attribute_map_t *p_am, cs_real_t vals[])
Definition cs_lagr_stat.h:140
void cs_lagr_stat_activate_attr(int attr_id)
Activate Lagrangian statistics for a given particle attribute.
Definition cs_lagr_stat.cpp:4289
int cs_lagr_stat_particle_define(const char *name, int location_id, int stat_type, cs_lagr_stat_moment_t m_type, int class_id, int dim, int component_id, cs_lagr_moment_p_data_t *data_func, void *data_input, cs_lagr_moment_p_data_t *w_data_func, void *w_data_input, int nt_start, double t_start, cs_lagr_stat_restart_t restart_mode)
Define a particle-based statistic.
Definition cs_lagr_stat.cpp:3799
void cs_lagr_stat_deactivate_attr(int attr_id)
Deactivate Lagrangian statistics for a given particle attribute.
Definition cs_lagr_stat.cpp:4305
cs_lagr_stat_type_t
Definition cs_lagr_stat.h:86
@ CS_LAGR_STAT_VOLUME_FRACTION
Definition cs_lagr_stat.h:94
@ CS_LAGR_STAT_CUMULATIVE_WEIGHT
Definition cs_lagr_stat.h:90
@ CS_LAGR_STAT_E_CUMULATIVE_WEIGHT
Definition cs_lagr_stat.h:99
@ CS_LAGR_STAT_RESUSPENSION_MASS_FLUX
Definition cs_lagr_stat.h:108
@ CS_LAGR_STAT_ATTR
Definition cs_lagr_stat.h:119
@ CS_LAGR_STAT_FOULING_MASS_FLUX
Definition cs_lagr_stat.h:109
@ CS_LAGR_STAT_RESUSPENSION_CUMULATIVE_WEIGHT
Definition cs_lagr_stat.h:102
@ CS_LAGR_STAT_MASS_FLUX
Definition cs_lagr_stat.h:107
@ CS_LAGR_STAT_FOULING_CUMULATIVE_WEIGHT
Definition cs_lagr_stat.h:105
@ CS_LAGR_STAT_IMPACT_ANGLE
Definition cs_lagr_stat.h:111
@ CS_LAGR_STAT_IMPACT_VELOCITY
Definition cs_lagr_stat.h:113
@ CS_LAGR_STAT_FOULING_DIAMETER
Definition cs_lagr_stat.h:114
@ CS_LAGR_STAT_FOULING_COKE_FRACTION
Definition cs_lagr_stat.h:115
cs_lagr_stat_restart_t
Definition cs_lagr_stat.h:75
@ CS_LAGR_MOMENT_RESTART_EXACT
Definition cs_lagr_stat.h:79
@ CS_LAGR_MOMENT_RESTART_AUTO
Definition cs_lagr_stat.h:78
@ CS_LAGR_MOMENT_RESTART_RESET
Definition cs_lagr_stat.h:77
void cs_lagr_moment_m_data_t(const void *input, const cs_lagr_event_set_t *events, int location_id, int class_id, cs_real_t vals[])
Definition cs_lagr_stat.h:185
void cs_lagr_stat_map_cell_dt(const cs_real_t *dt)
Map time step values array for Lagrangian statistics.
Definition cs_lagr_stat.cpp:4421
void cs_lagr_stat_log_iteration(void)
Log moment definition information for a given iteration.
Definition cs_lagr_stat.cpp:5293
cs_lagr_stat_moment_t
Definition cs_lagr_stat.h:55
@ CS_LAGR_MOMENT_VARIANCE
Definition cs_lagr_stat.h:58
@ CS_LAGR_MOMENT_MEAN
Definition cs_lagr_stat.h:57
int cs_lagr_stat_event_define(const char *name, int location_id, int stat_type, cs_lagr_stat_group_t stat_group, cs_lagr_stat_moment_t m_type, int class_id, int dim, int component_id, cs_lagr_moment_e_data_t *data_func, void *data_input, cs_lagr_moment_e_data_t *w_data_func, void *w_data_input, int nt_start, double t_start, cs_lagr_stat_restart_t restart_mode)
Define an event-based statistic.
Definition cs_lagr_stat.cpp:3866
cs_lagr_stat_group_t
Definition cs_lagr_stat.h:64
@ CS_LAGR_STAT_GROUP_TRACKING_EVENT
Definition cs_lagr_stat.h:67
@ CS_LAGR_STAT_GROUP_PARTICLE
Definition cs_lagr_stat.h:66
@ CS_LAGR_STAT_GROUP_N_GROUPS
Definition cs_lagr_stat.h:69
void cs_lagr_stat_update_event(cs_lagr_event_set_t *events, cs_lagr_stat_group_t group)
Update event-based moment accumulators.
Definition cs_lagr_stat.cpp:4808
void cs_lagr_stat_finalize(void)
Destroy all moments management metadata.
Definition cs_lagr_stat.cpp:5155
void cs_lagr_stat_initialize(void)
Lagrangian statistics initialization.
Definition cs_lagr_stat.cpp:4440
int cs_lagr_stat_time_moment_define(const char *name, int location_id, int stat_type, cs_lagr_stat_moment_t m_type, int class_id, int dim, int component_id, cs_lagr_moment_m_data_t *data_func, void *data_input, int nt_start, double t_start, cs_lagr_stat_restart_t restart_mode)
Define a time moment associated to particle statistics.
Definition cs_lagr_stat.cpp:4130
void cs_lagr_stat_activate(int stat_type)
Activate Lagrangian statistics for a given statistics type.
Definition cs_lagr_stat.cpp:4180
cs_real_t cs_lagr_stat_get_moment_age(cs_field_t *f)
Return statistics age for a given moment.
Definition cs_lagr_stat.cpp:5894
void cs_lagr_stat_prepare(void)
Prepare particle statistics for a given time step.
Definition cs_lagr_stat.cpp:4701
void cs_lagr_moment_e_data_t(const void *input, const cs_lagr_event_set_t *events, cs_lnum_t id_range[2], cs_real_t vals[])
Definition cs_lagr_stat.h:161
cs_field_t * cs_lagr_stat_get_moment(int stat_type, cs_lagr_stat_group_t stat_group, cs_lagr_stat_moment_t m_type, int class_id, int component_id)
Return field associated with a given Lagrangian statistic, given a statistics type (i....
Definition cs_lagr_stat.cpp:5801
int cs_lagr_stat_type_from_attr_id(int attr_id)
Return statistics type associated with a given particle attribute id.
Definition cs_lagr_stat.cpp:4322
cs_field_t * cs_lagr_stat_get_stat_weight(int class_id)
Return statistical weight.
Definition cs_lagr_stat.cpp:5843
void cs_lagr_stat_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition cs_lagr_stat.cpp:5438
int cs_lagr_stat_type_to_attr_id(int stat_type)
Return attribute id associated with a given statistics type.
Definition cs_lagr_stat.cpp:4340
void cs_lagr_stat_log_setup(void)
Log moment definition setup information.
Definition cs_lagr_stat.cpp:5174
int cs_lagr_stat_type_by_name(const char *name)
Determine a basic statistic type by its base name.
Definition cs_lagr_stat.cpp:4361
cs_lagr_stat_options_t * cs_glob_lagr_stat_options
void cs_lagr_stat_activate_time_moment(int stat_type, cs_lagr_stat_moment_t moment)
Activate time moment for some predefined Lagrangian statistics types.
Definition cs_lagr_stat.cpp:4237
void cs_lagr_stat_restart_read(void)
Read particle statistics restart info if needed.
Definition cs_lagr_stat.cpp:4684
void cs_lagr_stat_update(void)
Update particle statistics for a given time step.
Definition cs_lagr_stat.cpp:4767
void cs_lagr_stat_deactivate(int stat_type)
Deactivate Lagrangian statistics for a given statistics type.
Definition cs_lagr_stat.cpp:4265
bool cs_lagr_stat_is_active(cs_lagr_stat_group_t group)
Indicate if a given statistics type has active statistics.
Definition cs_lagr_stat.cpp:4668
int cs_lagr_stat_mesh_define(const char *name, int location_id, cs_lagr_stat_group_t stat_group, int class_id, int dim, cs_lagr_moment_m_data_t *data_func, void *data_input, int nt_start, double t_start)
Define mesh-based statistic based on particles or particle events.
Definition cs_lagr_stat.cpp:3933
cs_real_t cs_lagr_stat_get_age(void)
Return global volume statistics age.
Definition cs_lagr_stat.cpp:5866
struct _cs_restart_t cs_restart_t
Definition cs_restart.h:95
Field descriptor.
Definition cs_field.h:158
Definition cs_lagr_particle.h:190
Definition cs_lagr_event.h:130
Definition cs_lagr_stat.h:193
int idstnt
Definition cs_lagr_stat.h:203
cs_real_t threshold
Definition cs_lagr_stat.h:217
int nstist
Definition cs_lagr_stat.h:213
int isuist
Definition cs_lagr_stat.h:199