8.3
general documentation
cs_user_mesh.cpp File Reference

Definition and modification of the calculation mesh. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "cs_headers.h"
+ Include dependency graph for cs_user_mesh.cpp:

Functions

void cs_user_mesh_restart_mode (void)
 Force preprocessing behavior in case of restart. More...
 
void cs_user_mesh_input (void)
 Define mesh files to read and optional associated transformations. More...
 
void cs_user_join (void)
 Define mesh joinings. More...
 
void cs_user_periodicity (void)
 Define periodic faces. More...
 
void cs_user_mesh_warping (void)
 Set options for cutting of warped faces. More...
 
void cs_user_mesh_boundary (cs_mesh_t *mesh)
 Insert boundaries into a mesh. More...
 
void cs_user_mesh_modify (cs_mesh_t *mesh)
 Modify geometry and mesh. More...
 
void cs_user_mesh_smoothe (cs_mesh_t *mesh)
 Mesh smoothing. More...
 
void cs_user_mesh_save (cs_mesh_t *mesh)
 Enable or disable mesh saving. More...
 
void cs_user_mesh_bad_cells_tag (cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
 Tag bad cells within the mesh based on user-defined geometric criteria. More...
 
void cs_user_mesh_modify_partial (cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
 Apply partial modifications to the mesh after the preprocessing stage, but before initial postprocessing mesh building. More...
 
void cs_user_mesh_cartesian_define (void)
 Define a cartesian mesh. More...
 

Detailed Description

Definition and modification of the calculation mesh.

See Examples of mesh modifications for examples.

Function Documentation

◆ cs_user_join()

void cs_user_join ( void  )

Define mesh joinings.

◆ cs_user_mesh_bad_cells_tag()

void cs_user_mesh_bad_cells_tag ( cs_mesh_t mesh,
cs_mesh_quantities_t mesh_quantities 
)

Tag bad cells within the mesh based on user-defined geometric criteria.

Parameters
[in,out]meshpointer to a cs_mesh_t structure
[in,out]mesh_quantitiespointer to a cs_mesh_quantities_t structure

◆ cs_user_mesh_boundary()

void cs_user_mesh_boundary ( cs_mesh_t mesh)

Insert boundaries into a mesh.

Parameters
[in,out]meshpointer to a cs_mesh_t structure

◆ cs_user_mesh_cartesian_define()

void cs_user_mesh_cartesian_define ( void  )

Define a cartesian mesh.

◆ cs_user_mesh_input()

void cs_user_mesh_input ( void  )

Define mesh files to read and optional associated transformations.

◆ cs_user_mesh_modify()

void cs_user_mesh_modify ( cs_mesh_t mesh)

Modify geometry and mesh.

Parameters
[in,out]meshpointer to a cs_mesh_t structure

◆ cs_user_mesh_modify_partial()

void cs_user_mesh_modify_partial ( cs_mesh_t mesh,
cs_mesh_quantities_t mesh_quantities 
)

Apply partial modifications to the mesh after the preprocessing stage, but before initial postprocessing mesh building.

Apply partial modifications to the mesh after the preprocessing and initial postprocessing mesh building stage.

Parameters
[in,out]meshpointer to a cs_mesh_t structure
[in,out]mesh_quantitiespointer to a cs_mesh_quantities_t structure

◆ cs_user_mesh_restart_mode()

void cs_user_mesh_restart_mode ( void  )

Force preprocessing behavior in case of restart.

By default, in case of restart, if a "restart/mesh_input.csm" file is present, it will be read and proprocessing will be skipped.

This behavior may be changed in the GUI (in the "Mesh" section, unchecking "Use unmodified checkpoint mesh in case of restart"), or by calling cs_preprocessor_data_set_restart_mode in this function.

◆ cs_user_mesh_save()

void cs_user_mesh_save ( cs_mesh_t mesh)

Enable or disable mesh saving.

By default, mesh is saved when modified.

Parameters
[in,out]meshpointer to a cs_mesh_t structure

◆ cs_user_mesh_smoothe()

void cs_user_mesh_smoothe ( cs_mesh_t mesh)

Mesh smoothing.

Parameters
[in,out]meshpointer to a cs_mesh_t structure

◆ cs_user_mesh_warping()

void cs_user_mesh_warping ( void  )

Set options for cutting of warped faces.

◆ cs_user_periodicity()

void cs_user_periodicity ( void  )

Define periodic faces.