|
void | cs_time_moment_destroy_all (void) |
| Destroy all moments management metadata.
|
void | cs_time_moment_map_cell_dt (const cs_real_t *dt) |
| Map time step values array for temporal moments.
|
void | cs_time_moment_update_all (void) |
| Update all moment accumulators.
|
int | cs_time_moment_is_active (int moment_id) |
| Return 1 if moment is active, 0 if it is not active yet.
|
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.
|
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.
|
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.
|
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.
|
int | cs_time_moment_n_moments (void) |
| Return the number of defined time moments.
|
int | cs_time_moment_n_moments_restart (void) |
| Return the number of time moments in the restart file, if any.
|
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.
|
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_restart).
|
cs_field_t * | cs_time_moment_get_field (int moment_id) |
| Return pointer to field associated with a given moment.
|
void | cs_time_moment_reset (int moment_id) |
| Set current iteration as starting time step of selected moment.
|
void | cs_time_moment_log_setup (void) |
| Log moment definition setup information.
|
void | cs_time_moment_log_iteration (void) |
| Log moment definition information for a given iteration.
|
void | cs_time_moment_restart_use_main (int use_main) |
| Indicate if restart API should use "main" instead of "auxiliary" file.
|
void | cs_time_moment_restart_read (cs_restart_t *restart) |
| Read restart moment data.
|
void | cs_time_moment_restart_write (cs_restart_t *restart) |
| Checkpoint moment data.
|
Define a time moment of an existing field.
Moments will involve the tensor products of their component fields, and only scalar, vector, or rank-2 tensors are handled (for post-processing output reasons), so a 1st-order moment (i.e. mean) may involve a scalar, vector, or tensor, while a second-order moment (i.e. variance) may only involve a scalar or vector.
- Parameters
-
[in] | name | name of associated moment |
[in] | f | pointer to associated field |
[in] | type | moment type |
[in] | nt_start | starting time step (or -1 to use t_start) |
[in] | t_start | starting time |
[in] | restart_mode | behavior in case of restart (reset, automatic, or strict) |
[in] | restart_name | if non-null, previous name in case of restart |
- Returns
- id of new moment in case of success, -1 in case of error.
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.
Moments will involve the tensor products of their component fields, and only scalar, vector, or rank-2 tensors are handled (for post-processing output reasons), so a moment may not involve more than 2 vectors or 1 tensor, unless single components are specified.
- Parameters
-
[in] | name | name of associated moment |
[in] | n_fields | number of associated fields |
[in] | field_id | ids of associated fields |
[in] | component_id | ids of matching field components (-1 for all) |
[in] | type | moment type |
[in] | nt_start | starting time step (or -1 to use t_start) |
[in] | t_start | starting time |
[in] | restart_mode | behavior in case of restart (reset, automatic, or strict) |
[in] | restart_name | if non-null, previous name in case of restart |
- Returns
- id of new moment in case of success, -1 in case of error.
Define a time moment based on an evaluation function.
Moments will involve the tensor products of their component fields, and only scalar, vector, or rank-2 tensors are handled (for post-processing output reasons), so a 1st-order moment (i.e. mean) may involve a scalar, vector, or tensor, while a second-order moment (i.e. variance) may only involve a scalar or vector.
- Parameters
-
[in] | name | name of associated moment |
[in] | f | pointer to function object |
[in] | type | moment type |
[in] | nt_start | starting time step (or -1 to use t_start) |
[in] | t_start | starting time |
[in] | restart_mode | behavior in case of restart (reset, automatic, or strict) |
[in] | restart_name | if non-null, previous name in case of restart |
- Returns
- id of new moment in case of success, -1 in case of error.