1#ifndef CS_TIME_MOMENT_H
2#define CS_TIME_MOMENT_H
184 const int field_id[],
185 const int component_id[],
190 const char *restart_name,
225 const char *restart_name,
260 const char *restart_name,
299 const void *data_input,
306 const char *restart_name,
346 const char **restart_name);
Field descriptor.
Definition: cs_field.h:275
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
@ dt
Definition: cs_field_pointer.h:61
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:91
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:2045
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:2829
void cs_time_moment_destroy_all(void)
Destroy all moments management metadata.
Definition: cs_time_moment.cpp:1660
void cs_time_moment_restart_read(cs_restart_t *restart)
Read restart moment data.
Definition: cs_time_moment.cpp:2846
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, cs_real_t ewa_time_scale=-1.)
Define a time moment based on an evaluation function.
Definition: cs_time_moment.cpp:1817
void cs_time_moment_log_setup(void)
Log moment definition setup information.
Definition: cs_time_moment.cpp:2462
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:1960
int cs_time_moment_n_moments(void)
Return the number of defined time moments.
Definition: cs_time_moment.cpp:1917
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, cs_real_t ewa_time_scale=-1.)
Define a moment of a product of existing fields components.
Definition: cs_time_moment.cpp:1695
void() cs_time_moment_data_t(const void *input, cs_real_t *vals)
Definition: cs_time_moment.h:101
void cs_time_moment_log_iteration(void)
Log moment definition information for a given iteration.
Definition: cs_time_moment.cpp:2634
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:2019
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:1931
const char * cs_time_moment_type_name[]
Definition: cs_time_moment.cpp:220
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, cs_real_t ewa_time_scale=-1.)
Define a moment whose data values will be computed using a specified function.
Definition: cs_time_moment.cpp:1874
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, cs_real_t ewa_time_scale=-1.)
Define a time moment of an existing field.
Definition: cs_time_moment.cpp:1756
cs_time_moment_restart_t
Definition: cs_time_moment.h:65
@ CS_TIME_MOMENT_RESTART_AUTO
Definition: cs_time_moment.h:70
@ CS_TIME_MOMENT_RESTART_RESET
Definition: cs_time_moment.h:67
@ CS_TIME_MOMENT_RESTART_EXACT
Definition: cs_time_moment.h:76
cs_time_moment_type_t
Definition: cs_time_moment.h:54
@ CS_TIME_MOMENT_VARIANCE
Definition: cs_time_moment.h:57
@ CS_TIME_MOMENT_MEAN
Definition: cs_time_moment.h:56
@ CS_TIME_MOMENT_EWA
Definition: cs_time_moment.h:58
void cs_time_moment_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition: cs_time_moment.cpp:2917
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:2081
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:1990
void cs_time_moment_map_cell_dt(const cs_real_t *dt)
Map time step values for temporal moments.
Definition: cs_time_moment.cpp:2188
void cs_time_moment_reset(int moment_id)
Set current iteration as starting time step of selected moment.
Definition: cs_time_moment.cpp:2108
void cs_time_moment_update_all(void)
Update all moment accumulators.
Definition: cs_time_moment.cpp:2200
int moment_id
Definition: keywords.h:91
Definition: cs_function.h:117