My Project
programmer's documentation
Functions | Variables
cs_ale.c File Reference
#include "cs_defs.h"
#include "bft_mem.h"
#include "bft_printf.h"
#include "cs_base.h"
#include "cs_boundary_conditions.h"
#include "cs_boundary_zone.h"
#include "cs_cdo_quantities.h"
#include "cs_cdo_connect.h"
#include "cs_cdo_main.h"
#include "cs_convection_diffusion.h"
#include "cs_domain.h"
#include "cs_domain_setup.h"
#include "cs_equation.h"
#include "cs_equation_iterative_solve.h"
#include "cs_face_viscosity.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_field_operator.h"
#include "cs_gui_mobile_mesh.h"
#include "cs_interface.h"
#include "cs_log.h"
#include "cs_physical_constants.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_mesh_bad_cells.h"
#include "cs_time_step.h"
#include "cs_ale.h"
Include dependency graph for cs_ale.c:

Functions

void cs_f_ale_get_pointers (int **iale)
 
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 (const int itrale, const cs_real_3_t *xyzno0)
 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 (const int iterns, const int *impale, const int *ale_bc_type)
 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 solving the mesh velocity. 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...
 

Variables

int cs_glob_ale = 0
 

Function Documentation

◆ cs_ale_activate()

void cs_ale_activate ( void  )

Activate the mesh velocity solving with CDO.

◆ 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 solving the mesh velocity.

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 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_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 ( const int  iterns,
const int *  impale,
const int *  ale_bc_type 
)

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]impaleIndicator for fixed node displacement
[in]ale_bc_typeType of boundary for ALE

◆ 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 ( 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

◆ cs_f_ale_get_pointers()

void cs_f_ale_get_pointers ( int **  iale)

Variable Documentation

◆ cs_glob_ale

int cs_glob_ale = 0