#include "cs_defs.h"#include "bft_mem.h"#include "bft_printf.h"#include "cs_array.h"#include "cs_base.h"#include "cs_boundary.h"#include "cs_boundary_conditions_set_coeffs.h"#include "cs_boundary_zone.h"#include "cs_cell_to_vertex.h"#include "cs_cdo_quantities.h"#include "cs_cdo_connect.h"#include "cs_cdo_main.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_default.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_parall.h"#include "cs_restart.h"#include "cs_restart_default.h"#include "cs_time_step.h"#include "cs_ale.h" Include dependency graph for cs_ale.c:
 Include dependency graph for cs_ale.c:| Functions | |
| void | cs_f_ale_get_pointers (int **iale) | 
| 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 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... | |
| 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 | |
| static cs_ale_data_t | _cs_glob_ale_data | 
| cs_ale_type_t | cs_glob_ale = 0 | 
| cs_ale_data_t * | cs_glob_ale_data = &_cs_glob_ale_data | 
| void cs_ale_activate | ( | void | ) | 
Activate the mesh velocity solving with CDO.
| void cs_ale_allocate | ( | void | ) | 
Allocation of ialtyb and impale for the ALE structure.
| void cs_ale_destroy_all | ( | void | ) | 
Free the main structure related to the ALE mesh velocity solving.
| void cs_ale_finalize_setup | ( | cs_domain_t * | domain | ) | 
Finalize the setup stage for the equation of the mesh velocity.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| void cs_ale_init_setup | ( | cs_domain_t * | domain | ) | 
Setup the equations solving the mesh velocity.
Setup the equations related to mesh deformation.
| [in,out] | domain | pointer to a cs_domain_t structure | 
| bool cs_ale_is_activated | ( | void | ) | 
Test if mesh velocity solving with CDO is activated.
| 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).
| [in] | ale_bc_type | Type of boundary for ALE | 
| [in] | meshv | Mesh velocity | 
| [in] | gradm | Mesh velocity gradient (du_i/dx_j : gradv[][i][j]) | 
| [in] | claale | Boundary conditions A | 
| [in] | clbale | Boundary conditions B | 
| [in] | dt | Time step | 
| [out] | disp_proj | Displacement projected on vertices | 
| void cs_ale_restart_read | ( | cs_restart_t * | r | ) | 
Read ALE data from restart file.
| [in,out] | r | associated restart file pointer | 
| void cs_ale_restart_write | ( | cs_restart_t * | r | ) | 
Write ALE data from restart file.
| [in,out] | r | associated restart file pointer | 
| void cs_ale_setup_boundaries | ( | const cs_domain_t * | domain | ) | 
Setup the equations solving the mesh velocity.
| [in] | domain | pointer to a cs_domain_t structure | 
| 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).
| [in] | iterns | Navier-Stokes iteration number | 
| void cs_ale_update_bcs | ( | int * | ale_bc_type, | 
| cs_real_3_t * | b_fluid_vel | ||
| ) | 
Update ALE BCs for required for the fluid.
| [out] | ale_bc_type | type of ALE bcs | 
| [out] | b_fluid_vel | Fluid velocity at boundary faces | 
| void cs_ale_update_mesh | ( | int | itrale | ) | 
Update mesh in the ALE framework.
| [in] | itrale | number of the current ALE iteration | 
| 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.
| [out] | min_vol | Minimum cell volume | 
| [out] | max_vol | Maximum cell volume | 
| [out] | tot_vol | Total cell volume | 
| void cs_f_ale_get_pointers | ( | int ** | iale | ) | 
| 
 | static | 
| cs_ale_type_t cs_glob_ale = 0 | 
| cs_ale_data_t* cs_glob_ale_data = &_cs_glob_ale_data |