1 #ifndef __CS_TIME_MOMENT_H__
2 #define __CS_TIME_MOMENT_H__
170 const int field_id[],
171 const int component_id[],
176 const char *restart_name);
211 const void *data_input,
218 const char *restart_name);
257 const char **restart_name);
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:510
@ dt
Definition: cs_field_pointer.h:65
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:95
void cs_time_moment_restart_use_main(int use_main)
Indicate if restart API should use "main" instead of "auxiliary" file.
Definition: cs_time_moment.c:2586
void cs_time_moment_destroy_all(void)
Destroy all moments management metadata.
Definition: cs_time_moment.c:1498
void cs_time_moment_restart_read(cs_restart_t *restart)
Read restart moment data.
Definition: cs_time_moment.c:2603
void cs_time_moment_log_setup(void)
Log moment definition setup information.
Definition: cs_time_moment.c:2221
void cs_time_moment_restart_options_by_id(int restart_id, cs_time_moment_restart_t *restart_mode, const char **restart_name)
Define a moment restart mode and name by an id.
Definition: cs_time_moment.c:1804
const char * cs_time_moment_restart_name(int restart_id)
Return name of a given time moments in the restart file, if any (check also cs_time_moment_n_moments_...
Definition: cs_time_moment.c:1834
int cs_time_moment_n_moments(void)
Return the number of defined time moments.
Definition: cs_time_moment.c:1761
void() cs_time_moment_data_t(const void *input, cs_real_t *vals)
Definition: cs_time_moment.h:90
void cs_time_moment_log_iteration(void)
Log moment definition information for a given iteration.
Definition: cs_time_moment.c:2393
int cs_time_moment_n_moments_restart(void)
Return the number of time moments in the restart file, if any.
Definition: cs_time_moment.c:1775
const char * cs_time_moment_type_name[]
Definition: cs_time_moment.c:243
cs_time_moment_restart_t
Definition: cs_time_moment.h:65
@ CS_TIME_MOMENT_RESTART_AUTO
Definition: cs_time_moment.h:68
@ CS_TIME_MOMENT_RESTART_RESET
Definition: cs_time_moment.h:67
@ CS_TIME_MOMENT_RESTART_EXACT
Definition: cs_time_moment.h:69
int cs_time_moment_define_by_field_ids(const char *name, int n_fields, const int field_id[], const int component_id[], cs_time_moment_type_t type, int nt_start, double t_start, cs_time_moment_restart_t restart_mode, const char *restart_name)
Define a moment of a product of existing fields components.
Definition: cs_time_moment.c:1533
cs_time_moment_type_t
Definition: cs_time_moment.h:56
@ CS_TIME_MOMENT_VARIANCE
Definition: cs_time_moment.h:59
@ CS_TIME_MOMENT_MEAN
Definition: cs_time_moment.h:58
void cs_time_moment_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition: cs_time_moment.c:2671
int cs_time_moment_is_active(int moment_id)
Return 1 if moment is active, 0 if it is not active yet.
Definition: cs_time_moment.c:1887
cs_field_t * cs_time_moment_get_field(int moment_id)
Return pointer to field associated with a given moment.
Definition: cs_time_moment.c:1863
void cs_time_moment_map_cell_dt(const cs_real_t *dt)
Map time step values array for temporal moments.
Definition: cs_time_moment.c:1985
void cs_time_moment_reset(int moment_id)
Reset a time moment. Current iteration is set as starting time step for current moment.
Definition: cs_time_moment.c:1915
int cs_time_moment_define_by_func(const char *name, int location_id, int dim, bool is_intensive, cs_time_moment_data_t *data_func, const void *data_input, cs_time_moment_data_t *w_data_func, void *w_data_input, cs_time_moment_type_t type, int nt_start, double t_start, cs_time_moment_restart_t restart_mode, const char *restart_name)
Define a moment whose data values will be computed using a specified function.
Definition: cs_time_moment.c:1594
void cs_time_moment_update_all(void)
Update all moment accumulators.
Definition: cs_time_moment.c:1997
int moment_id
Definition: keywords.h:91
Field descriptor.
Definition: cs_field.h:130