1#ifndef __CS_TIME_MOMENT_H__
2#define __CS_TIME_MOMENT_H__
171 const int field_id[],
172 const int component_id[],
177 const char *restart_name);
208 const char *restart_name);
239 const char *restart_name);
274 const void *data_input,
281 const char *restart_name);
320 const char **restart_name);
#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
@ dt
Definition cs_field_pointer.h:65
struct _cs_restart_t cs_restart_t
Definition cs_restart.h:95
void cs_time_moment_set_start_time(int moment_id, int nt_start)
Reset selected time step for starting time step of selected moment.
Definition cs_time_moment.cpp:2150
const char * cs_time_moment_type_name[]
Definition cs_time_moment.cpp:247
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.cpp:2910
int cs_time_moment_define_by_function(const char *name, cs_function_t *f, 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 time moment based on an evaluation function.
Definition cs_time_moment.cpp:1924
void cs_time_moment_destroy_all(void)
Destroy all moments management metadata.
Definition cs_time_moment.cpp:1771
void cs_time_moment_restart_read(cs_restart_t *restart)
Read restart moment data.
Definition cs_time_moment.cpp:2927
void cs_time_moment_log_setup(void)
Log moment definition setup information.
Definition cs_time_moment.cpp:2545
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.cpp:2063
int cs_time_moment_n_moments(void)
Return the number of defined time moments.
Definition cs_time_moment.cpp:2020
int cs_time_moment_define_by_field(const char *name, const cs_field_t *f, 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 time moment of an existing field.
Definition cs_time_moment.cpp:1865
void cs_time_moment_log_iteration(void)
Log moment definition information for a given iteration.
Definition cs_time_moment.cpp:2717
cs_field_t * cs_time_moment_get_field(int moment_id)
Return pointer to field associated with a given moment.
Definition cs_time_moment.cpp:2122
int cs_time_moment_n_moments_restart(void)
Return the number of time moments in the restart file, if any.
Definition cs_time_moment.cpp:2034
cs_time_moment_restart_t
Definition cs_time_moment.h:66
@ CS_TIME_MOMENT_RESTART_AUTO
Definition cs_time_moment.h:69
@ CS_TIME_MOMENT_RESTART_RESET
Definition cs_time_moment.h:68
@ CS_TIME_MOMENT_RESTART_EXACT
Definition cs_time_moment.h:70
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.cpp:1806
cs_time_moment_type_t
Definition cs_time_moment.h:57
@ CS_TIME_MOMENT_VARIANCE
Definition cs_time_moment.h:60
@ CS_TIME_MOMENT_MEAN
Definition cs_time_moment.h:59
void cs_time_moment_data_t(const void *input, cs_real_t *vals)
Definition cs_time_moment.h:91
void cs_time_moment_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition cs_time_moment.cpp:2998
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.cpp:2188
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.cpp:2093
void cs_time_moment_map_cell_dt(const cs_real_t *dt)
Map time step values array for temporal moments.
Definition cs_time_moment.cpp:2295
void cs_time_moment_reset(int moment_id)
Set current iteration as starting time step of selected moment.
Definition cs_time_moment.cpp:2215
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.cpp:1979
void cs_time_moment_update_all(void)
Update all moment accumulators.
Definition cs_time_moment.cpp:2307
int moment_id
Definition keywords.h:91
Field descriptor.
Definition cs_field.h:158
Definition cs_function.h:121