My Project
programmer's documentation
|
Postprocessing meshes may be defined in the cs_user_postprocess_meshes function, using one of several postprocessing mesh creation functions (cs_post_define_volume_mesh, cs_post_define_volume_mesh_by_func, cs_post_define_surface_mesh, cs_post_define_surface_mesh_by_func, cs_post_define_particles_mesh, cs_post_define_particles_mesh_by_func, cs_post_define_existing_mesh, cs_post_define_edges_mesh, and the probe set creation functions cs_probe_set_create, cs_probe_set_create_from_array, cs_probe_set_create_from_segment, cs_probe_set_create_from_local).
It is possible to output variables which are normally automatically output on the main volume or boundary meshes to a user mesh which is a subset of one of these by setting the auto_variables
argument of one of the cs_post_define_
..._mesh to true
.
It is not possible to mix cells and faces in the same mesh (most of the post-processing tools being perturbed by such a case). More precisely, faces adjacent to selected cells and belonging to face or cell groups may be selected when the add_groups
of cs_post_define_
..._mesh functions is set to true
, so as to maintain group information, but those faces will only be written for formats supporting this (such as MED), and will only bear groups, not variable fields.
The additional variables to post-process on the defined meshes will be specified in the cs_user_postprocess_values function.
In the example below, the default boundary mesh output is suppressed by redefining it, with no writer association:
Note that the default behavior for meshes -1 and -2 is:
In the following example, we use a geometric criteria to output only a subset of the main mesh, and associate the resulting mesh with user-defined writers 1 and 4:
By default, meshes are associated with writers at the time of their definition, either explicitly for regular postprocessing meshes, or implicitely for probes and profiles. To prepare for future unification of those approaches, a previously defined mesh may be associated with a given writer. This allows ataching meshes to writers without requiring redefinition of their other characteristics.
Post-processing meshes can be associated to writers.
In the following example, the default boundary mesh is associated to the default histogram writer. The format of this writer is txt (text files) and it writes only at the end of the calculation.
In the following example, the default volume mesh is now associated to a user defined writer of Id 6.