![]() |
programmer's documentation
|
#include "cs_defs.h"
#include <assert.h>
#include <string.h>
#include <bft_mem.h>
#include "cs_post.h"
#include "cs_prototypes.h"
#include "cs_domain_post.h"
Functions | |
static void | _post_advection_field (const cs_adv_field_t *adv, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, double dt_cur) |
Predefined post-processing output for advection fields. More... | |
static void | _post_property (const cs_property_t *pty, const cs_cdo_quantities_t *quant, const cs_time_step_t *time_step, double dt_cur) |
Predefined post-processing output for property structures. More... | |
static void | _domain_post (void *input, int mesh_id, int cat_id, int ent_flag[5], cs_lnum_t n_cells, cs_lnum_t n_i_faces, cs_lnum_t n_b_faces, const cs_lnum_t cell_ids[], const cs_lnum_t i_face_ids[], const cs_lnum_t b_face_ids[], const cs_time_step_t *time_step) |
Predefined post-processing output for the computational domain The prototype of this function is fixed since it is a function pointer defined in cs_post.h (cs_post_time_mesh_dep_output_t) More... | |
void | cs_domain_post_init (double dt, cs_cdo_quantities_t *quant, int n_adv_fields, cs_adv_field_t **adv_fields, int n_properties, cs_property_t **properties, int n_equations, cs_equation_t **equations) |
Initialize the generic post-processing related to a domain. More... | |
void | cs_domain_post_update (double dt) |
Update the hidden view of the domain dedicated for post-processing. More... | |
void | cs_domain_post_activate (cs_time_step_t *time_step) |
Activate writers and output meshes if needed. More... | |
void | cs_domain_post (cs_time_step_t *time_step) |
Update the hidden view of the domain dedicated for post-processing. More... | |
void | cs_domain_post_finalize (void) |
Finalize post-processing related to the computational domain. More... | |
Variables | |
cs_domain_post_t * | domain_post = NULL |
|
static |
Predefined post-processing output for the computational domain The prototype of this function is fixed since it is a function pointer defined in cs_post.h (cs_post_time_mesh_dep_output_t)
[in,out] | input | pointer to a optional structure (here a cs_gwf_t structure) |
[in] | mesh_id | id of the output mesh for the current call |
[in] | cat_id | category id of the output mesh for this call |
[in] | ent_flag | indicate global presence of cells (ent_flag[0]), interior faces (ent_flag[1]), boundary faces (ent_flag[2]), particles (ent_flag[3]) or probes (ent_flag[4]) |
[in] | n_cells | local number of cells of post_mesh |
[in] | n_i_faces | local number of interior faces of post_mesh |
[in] | n_b_faces | local number of boundary faces of post_mesh |
[in] | cell_ids | list of cells (0 to n-1) |
[in] | i_face_ids | list of interior faces (0 to n-1) |
[in] | b_face_ids | list of boundary faces (0 to n-1) |
[in] | time_step | pointer to a cs_time_step_t struct. |
|
static |
Predefined post-processing output for advection fields.
[in] | adv | pointer to a cs_adv_field_t structure |
[in] | quant | pointer to a cs_cdo_quantities_t structure |
[in] | time_step | pointer to a cs_time_step_t struct. |
[in] | dt_cur | value of the current time step |
|
static |
Predefined post-processing output for property structures.
[in] | pty | pointer to the property structure |
[in] | quant | pointer to a cs_cdo_quantities_t structure |
[in] | time_step | pointer to a cs_time_step_t structure |
[in] | dt_cur | value of the current time step |
void cs_domain_post | ( | cs_time_step_t * | time_step | ) |
Update the hidden view of the domain dedicated for post-processing.
[in] | time_step | pointer to a cs_time_step_t structure |
void cs_domain_post_activate | ( | cs_time_step_t * | time_step | ) |
Activate writers and output meshes if needed.
[in] | time_step | pointer to a cs_time_step_t structure |
void cs_domain_post_finalize | ( | void | ) |
Finalize post-processing related to the computational domain.
void cs_domain_post_init | ( | double | dt, |
cs_cdo_quantities_t * | quant, | ||
int | n_adv_fields, | ||
cs_adv_field_t ** | adv_fields, | ||
int | n_properties, | ||
cs_property_t ** | properties, | ||
int | n_equations, | ||
cs_equation_t ** | equations | ||
) |
Initialize the generic post-processing related to a domain.
[in] | dt | reference time step value |
[in] | n_adv_fields | number of advection fields |
[in] | adv_fields | pointer on advection field pointers |
[in] | n_properties | number of properties |
void cs_domain_post_update | ( | double | dt | ) |
Update the hidden view of the domain dedicated for post-processing.
[in] | dt | current value of the time step |
cs_domain_post_t* domain_post = NULL |