|
My Project
programmer's documentation
|
Go to the documentation of this file. 1 #ifndef __CS_LAGR_STAT_H__
2 #define __CS_LAGR_STAT_H__
141 const void *particle,
Definition: cs_lagr_particle.h:176
cs_field_t * cs_lagr_stat_get_stat_weight(int class_id)
Return statistical weight.
Definition: cs_lagr_stat.c:5742
Definition: cs_lagr_stat.h:57
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.c:3956
Definition: cs_lagr_stat.h:67
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.c:3815
Definition: cs_lagr_stat.h:119
Definition: cs_lagr_stat.h:114
Definition: cs_lagr_stat.h:109
Definition: cs_lagr_stat.h:193
cs_lagr_stat_options_t * cs_glob_lagr_stat_options
Definition: cs_lagr_stat.c:311
cs_real_t threshold
Definition: cs_lagr_stat.h:217
cs_lagr_stat_moment_t
Definition: cs_lagr_stat.h:55
Definition: cs_lagr_stat.h:94
Definition: cs_lagr_stat.h:78
Definition: cs_lagr_stat.h:111
void cs_lagr_stat_deactivate_attr(int attr_id)
Deactivate Lagrangian statistics for a given particle attribute.
Definition: cs_lagr_stat.c:4254
int idstnt
Definition: cs_lagr_stat.h:203
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.c:3748
#define END_C_DECLS
Definition: cs_defs.h:468
int cs_lagr_stat_type_to_attr_id(int stat_type)
Return attribute id associated with a given statistics type.
Definition: cs_lagr_stat.c:4289
Definition: cs_lagr_stat.h:79
void cs_lagr_stat_deactivate(int stat_type)
Deactivate Lagrangian statistics for a given statistics type.
Definition: cs_lagr_stat.c:4214
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
Definition: cs_lagr_stat.h:66
Definition: cs_lagr_stat.h:99
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
int nstist
Definition: cs_lagr_stat.h:213
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
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.c:3882
Definition: cs_lagr_stat.h:90
void cs_lagr_stat_update(void)
Update particle statistics for a given time step.
Definition: cs_lagr_stat.c:4674
Definition: cs_lagr_stat.h:108
void cs_lagr_stat_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition: cs_lagr_stat.c:5342
void cs_lagr_stat_activate_attr(int attr_id)
Activate Lagrangian statistics for a given particle attribute.
Definition: cs_lagr_stat.c:4238
void cs_lagr_stat_map_cell_dt(const cs_real_t *dt)
Map time step values array for Lagrangian statistics.
Definition: cs_lagr_stat.c:4370
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.c:4186
void cs_lagr_stat_log_iteration(void)
Log moment definition information for a given iteration.
Definition: cs_lagr_stat.c:5197
Definition: cs_lagr_stat.h:69
Definition: cs_lagr_stat.h:58
void cs_lagr_stat_restart_read(void)
Read particle statistics restart info if needed.
Definition: cs_lagr_stat.c:4591
int isuist
Definition: cs_lagr_stat.h:199
Definition: cs_lagr_stat.h:105
int cs_lagr_stat_type_by_name(const char *name)
Determine a basic statistic type by its base name.
Definition: cs_lagr_stat.c:4310
cs_lagr_stat_restart_t
Definition: cs_lagr_stat.h:75
Definition: cs_lagr_stat.h:102
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
cs_lagr_stat_group_t
Definition: cs_lagr_stat.h:64
void cs_lagr_stat_activate(int stat_type)
Activate Lagrangian statistics for a given statistics type.
Definition: cs_lagr_stat.c:4129
Definition: cs_lagr_stat.h:115
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:87
Definition: cs_lagr_stat.h:107
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
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.c:4079
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.c:4271
Definition: cs_lagr_stat.h:77
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.c:4575
cs_lagr_stat_type_t
Definition: cs_lagr_stat.h:86
Definition: cs_lagr_event.h:130
Definition: cs_field_pointer.h:65
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.c:4715
cs_real_t cs_lagr_stat_get_moment_age(cs_field_t *f)
Return statistics age for a given moment.
Definition: cs_lagr_stat.c:5793
void cs_lagr_stat_prepare(void)
Prepare particle statistics for a given time step.
Definition: cs_lagr_stat.c:4608
void cs_lagr_stat_initialize(void)
Lagrangian statistics initialization.
Definition: cs_lagr_stat.c:4389
void cs_lagr_stat_log_setup(void)
Log moment definition setup information.
Definition: cs_lagr_stat.c:5078
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.c:5705
Field descriptor.
Definition: cs_field.h:124
void cs_lagr_stat_finalize(void)
Destroy all moments management metadata.
Definition: cs_lagr_stat.c:5059
Definition: cs_lagr_stat.h:113
cs_real_t cs_lagr_stat_get_age(void)
Return global volume statistics age.
Definition: cs_lagr_stat.c:5765