|
My Project
programmer's documentation
|
Go to the documentation of this file. 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);
210 const void *data_input,
217 const char *restart_name);
256 const char **restart_name);
cs_time_moment_type_t
Moment type.
Definition: cs_time_moment.h:56
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:59
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:2542
#define END_C_DECLS
Definition: cs_defs.h:468
Definition: cs_time_moment.h:69
void cs_time_moment_log_iteration(void)
Log moment definition information for a given iteration.
Definition: cs_time_moment.c:2349
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
cs_time_moment_restart_t
Moment restart behavior.
Definition: cs_time_moment.h:65
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
const char * cs_time_moment_type_name[]
Definition: cs_time_moment.c:241
void cs_time_moment_restart_write(cs_restart_t *restart)
Checkpoint moment data.
Definition: cs_time_moment.c:2627
void cs_time_moment_restart_read(cs_restart_t *restart)
Read restart moment data.
Definition: cs_time_moment.c:2559
void cs_time_moment_log_setup(void)
Log moment definition setup information.
Definition: cs_time_moment.c:2177
Definition: cs_time_moment.h:58
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
Definition: cs_time_moment.h:68
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
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:1960
void cs_time_moment_update_all(void)
Update all moment accumulators.
Definition: cs_time_moment.c:1972
struct _cs_restart_t cs_restart_t
Definition: cs_restart.h:87
void() cs_time_moment_data_t(const void *input, cs_real_t *vals)
Definition: cs_time_moment.h:90
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:1577
int cs_time_moment_n_moments(void)
Return the number of defined time moments.
Definition: cs_time_moment.c:1740
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
Definition: cs_field_pointer.h:65
Definition: cs_time_moment.h:67
void cs_time_moment_reset(int moment_id)
Reset a time moment.
Definition: cs_time_moment.c:1891
Field descriptor.
Definition: cs_field.h:124
void cs_time_moment_destroy_all(void)
Destroy all moments management metadata.
Definition: cs_time_moment.c:1485
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 field components.
Definition: cs_time_moment.c:1520
void const cs_int_t * type
Definition: cs_measures_util.h:425
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