8.1
general documentation
cs_ale.h File Reference
#include "cs_base.h"
#include "cs_domain.h"
#include "cs_restart.h"
+ Include dependency graph for cs_ale.h:

Go to the source code of this file.

Data Structures

struct  cs_ale_data_t
 

Enumerations

enum  cs_ale_type_t { CS_ALE_NONE = 0 , CS_ALE_LEGACY = 1 , CS_ALE_CDO = 2 }
 

Functions

void cs_ale_allocate (void)
 Allocation of ialtyb and impale for the ALE structure. More...
 
void cs_ale_update_mesh_quantities (cs_real_t *min_vol, cs_real_t *max_vol, cs_real_t *tot_vol)
 Compute cell and face centers of gravity, cell volumes and update bad cells. More...
 
void cs_ale_project_displacement (const int ale_bc_type[], const cs_real_3_t *meshv, const cs_real_33_t gradm[], const cs_real_3_t *claale, const cs_real_33_t *clbale, const cs_real_t *dt, cs_real_3_t *disp_proj)
 Project the displacement on mesh vertices (solved on cell center). More...
 
void cs_ale_update_mesh (int itrale)
 Update mesh in the ALE framework. More...
 
void cs_ale_update_bcs (int *ale_bc_type, cs_real_3_t *b_fluid_vel)
 Update ALE BCs for required for the fluid. More...
 
void cs_ale_solve_mesh_velocity (int iterns)
 Solve a Poisson equation on the mesh velocity in ALE framework. More...
 
void cs_ale_activate (void)
 Activate the mesh velocity solving with CDO. More...
 
bool cs_ale_is_activated (void)
 Test if mesh velocity solving with CDO is activated. More...
 
void cs_ale_init_setup (cs_domain_t *domain)
 Setup the equations related to mesh deformation. More...
 
void cs_ale_setup_boundaries (const cs_domain_t *domain)
 Setup the equations solving the mesh velocity. More...
 
void cs_ale_finalize_setup (cs_domain_t *domain)
 Finalize the setup stage for the equation of the mesh velocity. More...
 
void cs_ale_destroy_all (void)
 Free the main structure related to the ALE mesh velocity solving. More...
 
void cs_ale_restart_read (cs_restart_t *r)
 Read ALE data from restart file. More...
 
void cs_ale_restart_write (cs_restart_t *r)
 Write ALE data from restart file. More...
 

Variables

cs_ale_type_t cs_glob_ale
 
cs_ale_data_tcs_glob_ale_data
 
int cs_glob_ale_n_ini_f
 
int cs_glob_ale_need_init
 

Enumeration Type Documentation

◆ cs_ale_type_t

ALE computation type

Enumerator
CS_ALE_NONE 

no ALE

CS_ALE_LEGACY 

Mesh deformation computed with legacy operators

CS_ALE_CDO 

Mesh deformation computed with CDO

Function Documentation

◆ cs_ale_activate()

void cs_ale_activate ( void  )

Activate the mesh velocity solving with CDO.

◆ cs_ale_allocate()

void cs_ale_allocate ( void  )

Allocation of ialtyb and impale for the ALE structure.

◆ cs_ale_destroy_all()

void cs_ale_destroy_all ( void  )

Free the main structure related to the ALE mesh velocity solving.

◆ cs_ale_finalize_setup()

void cs_ale_finalize_setup ( cs_domain_t domain)

Finalize the setup stage for the equation of the mesh velocity.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_ale_init_setup()

void cs_ale_init_setup ( cs_domain_t domain)

Setup the equations related to mesh deformation.

Parameters
[in,out]domainpointer to a cs_domain_t structure

Setup the equations related to mesh deformation.

Parameters
[in,out]domainpointer to a cs_domain_t structure

◆ cs_ale_is_activated()

bool cs_ale_is_activated ( void  )

Test if mesh velocity solving with CDO is activated.

Returns
true ifmesh velocity solving with CDO is requested, false otherwise
true if mesh velocity solving with CDO is requested, false otherwise

◆ cs_ale_project_displacement()

void cs_ale_project_displacement ( const int  ale_bc_type[],
const cs_real_3_t meshv,
const cs_real_33_t  gradm[],
const cs_real_3_t claale,
const cs_real_33_t clbale,
const cs_real_t dt,
cs_real_3_t disp_proj 
)

Project the displacement on mesh vertices (solved on cell center).

Parameters
[in]ale_bc_typeType of boundary for ALE
[in]meshvMesh velocity
[in]gradmMesh velocity gradient (du_i/dx_j : gradv[][i][j])
[in]claaleBoundary conditions A
[in]clbaleBoundary conditions B
[in]dtTime step
[out]disp_projDisplacement projected on vertices

◆ cs_ale_restart_read()

void cs_ale_restart_read ( cs_restart_t r)

Read ALE data from restart file.

Parameters
[in,out]rassociated restart file pointer

◆ cs_ale_restart_write()

void cs_ale_restart_write ( cs_restart_t r)

Write ALE data from restart file.

Parameters
[in,out]rassociated restart file pointer

◆ cs_ale_setup_boundaries()

void cs_ale_setup_boundaries ( const cs_domain_t domain)

Setup the equations solving the mesh velocity.

Parameters
[in]domainpointer to a cs_domain_t structure

◆ cs_ale_solve_mesh_velocity()

void cs_ale_solve_mesh_velocity ( int  iterns)

Solve a Poisson equation on the mesh velocity in ALE framework.

It also updates the mesh displacement so that it can be used to update mass fluxes (due to mesh displacement).

Parameters
[in]iternsNavier-Stokes iteration number

◆ cs_ale_update_bcs()

void cs_ale_update_bcs ( int *  ale_bc_type,
cs_real_3_t b_fluid_vel 
)

Update ALE BCs for required for the fluid.

Parameters
[out]ale_bc_typetype of ALE bcs
[out]b_fluid_velFluid velocity at boundary faces

◆ cs_ale_update_mesh()

void cs_ale_update_mesh ( int  itrale)

Update mesh in the ALE framework.

Parameters
[in]itralenumber of the current ALE iteration

◆ cs_ale_update_mesh_quantities()

void cs_ale_update_mesh_quantities ( cs_real_t min_vol,
cs_real_t max_vol,
cs_real_t tot_vol 
)

Compute cell and face centers of gravity, cell volumes and update bad cells.

Parameters
[out]min_volMinimum cell volume
[out]max_volMaximum cell volume
[out]tot_volTotal cell volume

Variable Documentation

◆ cs_glob_ale

cs_ale_type_t cs_glob_ale
extern

◆ cs_glob_ale_data

cs_ale_data_t* cs_glob_ale_data
extern

◆ cs_glob_ale_n_ini_f

int cs_glob_ale_n_ini_f
extern

Number of sub-iterations for fluid flow initialization

◆ cs_glob_ale_need_init

int cs_glob_ale_need_init
extern

Indicate whether an iteration to initialize ALE is required