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);
209 const void *data_input,
216 const char *restart_name);
255 const char **restart_name);
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:1813
void cs_time_moment_destroy_all(void)
Destroy all moments management metadata.
Definition: cs_time_moment.c:1487
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:1962
Field descriptor.
Definition: cs_field.h:125
int cs_time_moment_define_by_func(const char *name, int location_id, int dim, 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:1579
const char * cs_time_moment_type_name[]
Definition: cs_time_moment.c:243
int cs_time_moment_n_moments(void)
Return the number of defined time moments.
Definition: cs_time_moment.c:1740
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
cs_time_moment_restart_t
Moment restart behavior.
Definition: cs_time_moment.h:65
void cs_time_moment_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition: cs_time_moment.c:2648
void cs_time_moment_update_all(void)
Update all moment accumulators.
Definition: cs_time_moment.c:1974
void() cs_time_moment_data_t(const void *input, cs_real_t *vals)
Definition: cs_time_moment.h:90
void cs_time_moment_restart_read(cs_restart_t *restart)
Read restart moment data.
Definition: cs_time_moment.c:2580
cs_time_moment_type_t
Moment type.
Definition: cs_time_moment.h:56
Definition: cs_time_moment.h:58
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:2563
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
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:1522
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:1842
void cs_time_moment_log_iteration(void)
Log moment definition information for a given iteration.
Definition: cs_time_moment.c:2370
Definition: cs_field_pointer.h:65
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:93
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:1754
void cs_time_moment_reset(int moment_id)
Reset a time moment.
Definition: cs_time_moment.c:1892
void cs_time_moment_log_setup(void)
Log moment definition setup information.
Definition: cs_time_moment.c:2198
#define END_C_DECLS
Definition: cs_defs.h:496
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:1866
Definition: cs_time_moment.h:69
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:1783
Definition: cs_time_moment.h:68
int moment_id
Definition: keywords.h:91
Definition: cs_time_moment.h:59
Definition: cs_time_moment.h:67