programmer's documentation
Functions
cs_ale.h File Reference
#include "cs_base.h"
Include dependency graph for cs_ale.h:

Go to the source code of this file.

Functions

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 ialtyb[], 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 (const int itrale, const cs_real_3_t *xyzno0)
 Update mesh in the ALE framework. More...
 
void cs_ale_solve_mesh_velocity (const int iterns, const int ndircl, const int *impale, const int *ialtyb)
 Solve a Poisson equation on the mesh velocity in ALE framework. More...
 

Function Documentation

◆ cs_ale_project_displacement()

void cs_ale_project_displacement ( const int  ialtyb[],
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]ialtybType 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_solve_mesh_velocity()

void cs_ale_solve_mesh_velocity ( const int  iterns,
const int  ndircl,
const int *  impale,
const int *  ialtyb 
)

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
[in]ndirclNumber of Dirichlet BCs for mesh velocity
[in]impaleIndicator for fixed node displacement
[in]ialtybType of boundary for ALE

◆ cs_ale_update_mesh()

void cs_ale_update_mesh ( const int  itrale,
const cs_real_3_t xyzno0 
)

Update mesh in the ALE framework.

Parameters
[in]itralenumber of the current ALE iteration
[in]xyzno0nodes coordinates of the initial mesh

◆ 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