programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions | Variables
cs_domain_post.c File Reference
#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"
Include dependency graph for cs_domain_post.c:

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 _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)
 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
 

Function Documentation

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 
)
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)

Parameters
[in,out]inputpointer to a optional structure (here a cs_gwf_t structure)
[in]mesh_idid of the output mesh for the current call
[in]cat_idcategory id of the output mesh for this call
[in]ent_flagindicate 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_cellslocal number of cells of post_mesh
[in]n_i_faceslocal number of interior faces of post_mesh
[in]n_b_faceslocal number of boundary faces of post_mesh
[in]cell_idslist of cells (0 to n-1)
[in]i_face_idslist of interior faces (0 to n-1)
[in]b_face_idslist of boundary faces (0 to n-1)
[in]time_steppointer to a cs_time_step_t struct.
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 
)
static

Predefined post-processing output for advection fields.

Parameters
[in]advpointer to a cs_adv_field_t structure
[in]quantpointer to a cs_cdo_quantities_t structure
[in]time_steppointer to a cs_time_step_t struct.
[in]dt_curvalue 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.

Parameters
[in]time_steppointer 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.

Parameters
[in]time_steppointer 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 
)

Initialize the generic post-processing related to a domain.

Parameters
[in]dtreference time step value
[in]quantpointer to a cs_cdo_quantities_t
void cs_domain_post_update ( double  dt)

Update the hidden view of the domain dedicated for post-processing.

Parameters
[in]dtcurrent value of the time step

Variable Documentation

cs_domain_post_t* domain_post = NULL