56#define CS_POST_ON_LOCATION (1 << 0)
59#define CS_POST_BOUNDARY_NR (1 << 1)
62#define CS_POST_MONITOR (1 << 2)
66#define CS_POST_WRITER_ALL_ASSOCIATED 0
68#define CS_POST_WRITER_DEFAULT -1
69#define CS_POST_WRITER_ERRORS -2
70#define CS_POST_WRITER_PARTICLES -3
71#define CS_POST_WRITER_TRAJECTORIES -4
72#define CS_POST_WRITER_PROBES -5
73#define CS_POST_WRITER_PROFILES -6
74#define CS_POST_WRITER_HISTOGRAMS -7
78#define CS_POST_MESH_VOLUME -1
79#define CS_POST_MESH_BOUNDARY -2
80#define CS_POST_MESH_PARTICLES -3
81#define CS_POST_MESH_TRAJECTORIES -4
82#define CS_POST_MESH_PROBES -5
83#define CS_POST_MESH_1D_THERMAL -6
87#define CS_POST_MESH_SURFACE -1001
98#define CS_POST_TYPE_int CS_INT_TYPE
99#define CS_POST_TYPE_cs_real_t CS_REAL_TYPE
100#define CS_POST_TYPE_float CS_FLOAT
101#define CS_POST_TYPE_double CS_DOUBLE
293 const char *case_name,
294 const char *dir_name,
295 const char *fmt_name,
296 const char *fmt_opts,
298 bool output_at_start,
320 const char *mesh_name,
321 const char *cell_criteria,
325 const int writer_ids[]);
358 const char *mesh_name,
360 void *cell_select_input,
365 const int writer_ids[]);
385 const char *mesh_name,
386 const char *i_face_criteria,
387 const char *b_face_criteria,
391 const int writer_ids[]);
428 const char *mesh_name,
431 void *i_face_select_input,
432 void *b_face_select_input,
437 const int writer_ids[]);
457 const char *mesh_name,
462 const int writer_ids[]);
493 const char *mesh_name,
494 const char *cell_criteria,
499 const int writer_ids[]);
535 const char *mesh_name,
537 void *p_select_input,
541 const int writer_ids[]);
556 const int writer_ids[]
595 fvm_nodal_t *exp_mesh,
599 bool child_of_global,
601 const int writer_ids[]);
605 fvm_nodal_t *exp_mesh,
610 const int writer_ids[]);
632 const int writer_ids[]);
665 fvm_nodal_t *exp_mesh,
692 const int writer_ids[]);
1249 const char *var_name,
1254 const void *cel_vals,
1255 const void *i_face_vals,
1256 const void *b_face_vals,
1312 const char *var_name,
1317 const void *vtx_vals,
1362 const char *var_name,
1392 const char *var_name,
1395 int parent_location_id,
1397 void *interpolate_input,
1442 int parent_location_id,
1444 void *interpolate_input,
Definition: cs_time_control.h:92
time step descriptor
Definition: cs_time_step.h:60
cs_datatype_t
Definition: cs_defs.h:290
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
@ t
Definition: cs_field_pointer.h:91
void() cs_interpolate_from_location_t(void *input, cs_datatype_t datatype, int val_dim, cs_lnum_t n_points, const cs_lnum_t point_location[], const cs_real_3_t point_coords[], const void *location_vals, void *point_vals)
Function pointer for interpolatation of values defined on a mesh location at a given set of points.
Definition: cs_interpolate.h:67
const char * cs_post_get_default_format_options(void)
Return the default writer format options.
Definition: cs_post.cpp:5806
int cs_post_get_free_mesh_id(void)
Return the next "reservable" (i.e. non-user) mesh id available.
Definition: cs_post.cpp:5834
void cs_post_mesh_get_b_face_ids(int mesh_id, cs_lnum_t b_face_ids[])
Get a postprocessing mesh's list of boundary faces.
Definition: cs_post.cpp:5520
void cs_post_write_probe_values(int mesh_id, int writer_id, const char *var_name, int var_dim, cs_datatype_t datatype, int parent_location_id, cs_interpolate_from_location_t *interpolate_func, void *interpolate_input, const void *vals, const cs_time_step_t *ts)
Output a variable defined at cells or faces of a post-processing mesh using associated writers.
Definition: cs_post.cpp:7158
void cs_post_define_existing_mesh(int mesh_id, fvm_nodal_t *exp_mesh, int dim_shift, bool transfer, bool auto_variables, bool child_of_global, int n_writers, const int writer_ids[])
Create a post-processing mesh associated with an existing exportable mesh representation.
Definition: cs_post.cpp:4796
void cs_post_time_step_output(const cs_time_step_t *ts)
Loop on post-processing meshes to output variables.
Definition: cs_post.cpp:7956
void cs_post_assign_existing_mesh(int mesh_id, fvm_nodal_t *exp_mesh, int dim_shift, bool transfer)
Update a post-processing mesh created with cs_post_define_future_mesh with an existing exportable mes...
Definition: cs_post.cpp:5033
void cs_post_add_time_mesh_dep_output(cs_post_time_mesh_dep_output_t *function, void *input)
Register a processing of time-dependent variables than can be output on different meshes to the call ...
Definition: cs_post.cpp:8762
int cs_post_get_free_writer_id(void)
Return the next "reservable" (i.e. non-user) writer id available.
Definition: cs_post.cpp:5820
void cs_post_init_error_writer(void)
Initialize post-processing writer with same format and associated options as default writer,...
Definition: cs_post.cpp:8629
void cs_post_add_writer_t_step(int writer_id, int nt)
Add an activation time step for a specific writer or for all writers.
Definition: cs_post.cpp:6167
void cs_post_renum_faces(const cs_lnum_t init_i_face_num[], const cs_lnum_t init_b_face_num[])
Update references to parent mesh of post-processing meshes in case of computational mesh interior and...
Definition: cs_post.cpp:7538
void cs_post_init_meshes(int check_mask)
Initialize main post-processing meshes.
Definition: cs_post.cpp:7763
void cs_post_add_free_faces(void)
Postprocess free (isolated) faces of the current global mesh.
Definition: cs_post.cpp:8418
void cs_post_time_step_begin(const cs_time_step_t *ts)
Check if post-processing is activated and then update post-processing of meshes if there is a need to...
Definition: cs_post.cpp:7923
void() cs_post_time_mesh_dep_output_t(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 *ts)
Definition: cs_post.h:180
void cs_post_finalize(void)
Destroy all structures associated with post-processing.
Definition: cs_post.cpp:8323
void cs_post_define_mesh_by_location(int mesh_id, const char *mesh_name, int location_id, bool add_groups, bool auto_variables, int n_writers, const int writer_ids[])
Define a volume or surface post-processing mesh by associated mesh location id.
Definition: cs_post.cpp:4558
void cs_post_define_volume_mesh(int mesh_id, const char *mesh_name, const char *cell_criteria, bool add_groups, bool auto_variables, int n_writers, const int writer_ids[])
Define a volume post-processing mesh.
Definition: cs_post.cpp:4312
void cs_post_define_volume_mesh_by_func(int mesh_id, const char *mesh_name, cs_post_elt_select_t *cell_select_func, void *cell_select_input, bool time_varying, bool add_groups, bool auto_variables, int n_writers, const int writer_ids[])
Define a volume post-processing mesh using a selection function.
Definition: cs_post.cpp:4377
void cs_post_mesh_get_vertex_ids(int mesh_id, cs_lnum_t *vertex_ids)
Get a postprocessing mesh's list of vertices.
Definition: cs_post.cpp:5589
void cs_post_write_vertex_var(int mesh_id, int writer_id, const char *var_name, int var_dim, bool interlace, bool use_parent, cs_datatype_t datatype, const void *vtx_vals, const cs_time_step_t *ts)
Output a variable defined at vertices of a post-processing mesh using associated writers.
Definition: cs_post.cpp:6762
void cs_post_write_particle_values(int mesh_id, int writer_id, int attr_id, const char *var_name, int component_id, const cs_time_step_t *ts)
Output an existing lagrangian particle attribute at particle positions or trajectory endpoints of a p...
Definition: cs_post.cpp:6995
cs_lnum_t cs_post_mesh_get_n_vertices(int mesh_id)
Get a postprocessing mesh's number of vertices.
Definition: cs_post.cpp:5559
cs_time_control_t * cs_post_get_time_control(int writer_id)
Return a pointer to the time control associated to a writer_id.
Definition: cs_post.cpp:6117
void cs_post_define_1d_thermal_mesh(int mesh_id, bool time_varying, bool auto_variable, int n_writers, const int writer_ids[])
Define 1D mesh for the 1D wall thermal module.
Definition: cs_post.cpp:4744
fvm_writer_t * cs_post_get_writer(int writer_id)
Return a pointer to the FVM writer associated to a writer_id.
Definition: cs_post.cpp:6092
void cs_post_define_particles_mesh_by_func(int mesh_id, const char *mesh_name, cs_post_elt_select_t *p_select_func, void *p_select_input, bool trajectory, bool auto_variables, int n_writers, const int writer_ids[])
Define a particles post-processing mesh using a selection function.
Definition: cs_post.cpp:4703
void cs_post_write_var(int mesh_id, int writer_id, const char *var_name, int var_dim, bool interlace, bool use_parent, cs_datatype_t datatype, const void *cel_vals, const void *i_face_vals, const void *b_face_vals, const cs_time_step_t *ts)
Output a variable defined at cells or faces of a post-processing mesh using associated writers.
Definition: cs_post.cpp:6279
void cs_post_write_meshes(const cs_time_step_t *ts)
Output post-processing meshes using associated writers.
Definition: cs_post.cpp:6222
int cs_post_init_error_writer_cells(void)
Initialize post-processing writer with same format and associated options as default writer,...
Definition: cs_post.cpp:8679
bool cs_post_writer_exists(int writer_id)
Check for the existence of a writer of the given id.
Definition: cs_post.cpp:5701
void cs_post_write_vertex_function(int mesh_id, int writer_id, const cs_function_t *f, const cs_time_step_t *ts)
Output a function evaluation at cells or faces of a post-processing mesh using associated writers.
Definition: cs_post.cpp:6881
void cs_post_set_changing_connectivity(void)
Configure the post-processing output so that mesh connectivity may be automatically updated.
Definition: cs_post.cpp:7637
void cs_post_define_writer(int writer_id, const char *case_name, const char *dir_name, const char *fmt_name, const char *fmt_opts, fvm_writer_time_dep_t time_dep, bool output_at_start, bool output_at_end, int interval_n, double interval_t)
Define a writer; this objects manages a case's name, directory, and format, as well as associated mes...
Definition: cs_post.cpp:4159
void cs_post_define_particles_mesh(int mesh_id, const char *mesh_name, const char *cell_criteria, double density, bool trajectory, bool auto_variables, int n_writers, const int writer_ids[])
Define a particles post-processing mesh.
Definition: cs_post.cpp:4635
void cs_post_write_probe_function(int mesh_id, int writer_id, const cs_function_t *f, int parent_location_id, cs_interpolate_from_location_t *interpolate_func, void *interpolate_input, const cs_time_step_t *ts)
Output function-evaluated values at cells or faces of a post-processing probe set using associated wr...
Definition: cs_post.cpp:7296
const char * cs_post_get_default_format(void)
Return the default writer format name.
Definition: cs_post.cpp:5792
cs_lnum_t cs_post_mesh_get_n_cells(int mesh_id)
Get a postprocessing mesh's number of cells.
Definition: cs_post.cpp:5363
void cs_post_write_vars(const cs_time_step_t *ts)
Loop on post-processing meshes to output variables.
Definition: cs_post.cpp:8301
void cs_post_add_time_dep_output(cs_post_time_dep_output_t *function, void *input)
Register a processing of time-dependent variables to the call to cs_post_write_vars().
Definition: cs_post.cpp:8721
cs_lnum_t cs_post_mesh_get_n_b_faces(int mesh_id)
Get a postprocessing mesh's number of boundary faces.
Definition: cs_post.cpp:5490
cs_datatype_t cs_post_type_t
Definition: cs_post.h:92
void cs_post_add_writer_t_value(int writer_id, double t)
Add an activation time value for a specific writer or for all writers.
Definition: cs_post.cpp:6195
void cs_post_mesh_set_post_domain(int mesh_id, bool post_domain)
Set whether postprocessing mesh's parallel domain should be output.
Definition: cs_post.cpp:5614
void() cs_post_time_dep_output_t(void *input, const cs_time_step_t *ts)
Definition: cs_post.h:146
void cs_post_activate_by_time_step(const cs_time_step_t *ts)
Update "active" or "inactive" flag of writers based on the time step.
Definition: cs_post.cpp:5852
void cs_post_activate_writer_if_enabled(int writer_id, bool activate)
Force the "active" or "inactive" flag for a specific writer or for all writers for the current time s...
Definition: cs_post.cpp:5986
void cs_post_mesh_get_cell_ids(int mesh_id, cs_lnum_t *cell_ids)
Get a postprocessing mesh's list of cells.
Definition: cs_post.cpp:5393
void cs_post_define_future_mesh(int mesh_id, int cat_id, bool auto_variables, int n_writers, const int writer_ids[])
Create a post-processing mesh associated with an exportable mesh representation that will be built la...
Definition: cs_post.cpp:4971
void cs_post_write_function(int mesh_id, int writer_id, const cs_function_t *cel_f, const cs_function_t *i_face_f, const cs_function_t *b_face_f, const cs_time_step_t *ts)
Output a function evaluation at cells or faces of a post-processing mesh using associated writers.
Definition: cs_post.cpp:6549
void() cs_post_elt_select_t(void *input, cs_lnum_t *n_elts, cs_lnum_t **elt_list)
Function pointer to elements selection definition.
Definition: cs_post.h:123
void cs_post_disable_writer(int writer_id)
Disable specific writer or all writers not currently active until cs_post_enable_writer or cs_post_ac...
Definition: cs_post.cpp:6024
void cs_post_free_mesh(int mesh_id)
Remove a post-processing mesh.
Definition: cs_post.cpp:5637
void cs_post_activate_writer(int writer_id, bool activate)
Force the "active" or "inactive" flag for a specific writer or for all writers for the current time s...
Definition: cs_post.cpp:5957
void cs_post_define_surface_mesh(int mesh_id, const char *mesh_name, const char *i_face_criteria, const char *b_face_criteria, bool add_groups, bool auto_variables, int n_writers, const int writer_ids[])
Define a surface post-processing mesh.
Definition: cs_post.cpp:4424
void cs_post_mesh_detach_writer(int mesh_id, int writer_id)
De-associate a writer from a postprocessing mesh.
Definition: cs_post.cpp:5215
void cs_post_mesh_get_i_face_ids(int mesh_id, cs_lnum_t i_face_ids[])
Get a postprocessing mesh's list of boundary faces.
Definition: cs_post.cpp:5448
void cs_post_define_edges_mesh(int mesh_id, int base_mesh_id, int n_writers, const int writer_ids[])
Create a mesh based upon the extraction of edges from an existing mesh.
Definition: cs_post.cpp:5098
void cs_post_mesh_attach_field(int mesh_id, int writer_id, int field_id, int comp_id)
Associate a field to a writer and postprocessing mesh combination.
Definition: cs_post.cpp:5279
cs_lnum_t cs_post_mesh_get_n_i_faces(int mesh_id)
Get a postprocessing mesh's number of interior faces.
Definition: cs_post.cpp:5418
void cs_post_time_step_end(void)
Flush writers and free time-varying and Lagragian mesh if needed of meshes if there is a time-depende...
Definition: cs_post.cpp:8257
void cs_post_renum_cells(const cs_lnum_t init_cell_num[])
Update references to parent mesh of post-processing meshes in case of computational mesh cell renumbe...
Definition: cs_post.cpp:7463
const int * cs_post_mesh_get_ent_flag(int mesh_id)
Get a postprocessing meshes entity presence flag.
Definition: cs_post.cpp:5345
void cs_post_define_surface_mesh_by_func(int mesh_id, const char *mesh_name, cs_post_elt_select_t *i_face_select_func, cs_post_elt_select_t *b_face_select_func, void *i_face_select_input, void *b_face_select_input, bool time_varying, bool add_groups, bool auto_variables, int n_writers, const int writer_ids[])
Define a surface post-processing mesh using selection functions.
Definition: cs_post.cpp:4501
int cs_post_mesh_find_next_with_cat_id(int cat_id, int start_mesh_id)
Find next mesh with a given category id.
Definition: cs_post.cpp:5758
void cs_post_init_writers(void)
Initialize post-processing writers.
Definition: cs_post.cpp:7649
void cs_post_mesh_attach_writer(int mesh_id, int writer_id)
Associate a writer to a postprocessing mesh.
Definition: cs_post.cpp:5170
void cs_post_mesh_set_element_centers_only(int mesh_id, bool centers_only)
Set restriction of a postprocessing mesh to element centers.
Definition: cs_post.cpp:5142
void cs_post_enable_writer(int writer_id)
Enable a specific writer or all writers currently disabled by previous calls to cs_post_disable_write...
Definition: cs_post.cpp:6061
bool cs_post_writer_is_active(int writer_id)
Query if a given writer is currently active.
Definition: cs_post.cpp:5938
bool cs_post_mesh_exists(int mesh_id)
Check for the existence of a post-processing mesh of the given id.
Definition: cs_post.cpp:5730
fvm_writer_time_dep_t cs_post_get_writer_time_dep(int writer_id)
Return time dependency associated to a writer_id.
Definition: cs_post.cpp:6136
fvm_writer_time_dep_t
Definition: fvm_writer.h:57
Definition: cs_function.h:117