#include "cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <mpi.h>
#include <ple_defs.h>
#include <ple_coupling.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "fvm_io_num.h"
#include "fvm_nodal.h"
#include "fvm_nodal_extract.h"
#include "cs_all_to_all.h"
#include "cs_calcium.h"
#include "cs_coupling.h"
#include "cs_interface.h"
#include "cs_log.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_mesh_connect.h"
#include "cs_parall.h"
#include "cs_paramedmem_coupling.h"
#include "cs_part_to_block.h"
#include "cs_post.h"
#include "cs_ast_coupling.h"
Functions | |
int | cs_ast_coupling_n_couplings (void) |
Query number of couplings with code_aster. More... | |
void | cs_ast_coupling_add (void) |
Define coupling with code_aster. More... | |
void | cs_ast_coupling_initialize (int nalimx, cs_real_t epalim) |
Initial exchange with code_aster. More... | |
void | cs_ast_coupling_finalize (void) |
Finalize exchange with code_aster. More... | |
void | cs_ast_coupling_geometry (cs_lnum_t n_faces, const cs_lnum_t *face_ids, cs_real_t almax) |
Extract and exchange mesh information for surfaces coupled with code_aster. More... | |
void | cs_ast_coupling_exchange_time_step (cs_real_t c_dt[]) |
Exchange time-step information with code_aster. More... | |
cs_real_3_t * | cs_ast_coupling_get_fluid_forces_pointer (void) |
Return pointer to array of fluid forces at faces coupled with code_aster. More... | |
void | cs_ast_coupling_exchange_fields (void) |
Send stresses acting on the fluid/structure interface and receive displacements. More... | |
void | cs_ast_coupling_compute_displacement (cs_real_t disp[][3]) |
Compute predicted or exact displacement of the fluid/structure interface. More... | |
int | cs_ast_coupling_get_ext_cvg (void) |
Receive convergence value of code_saturne/code_aster coupling. More... | |
void | cs_ast_coupling_send_cvg (int icved) |
Send global convergence value of FSI calculations. More... | |
int | cs_ast_coupling_get_verbosity (void) |
Get verbosity level for code_aster coupling. More... | |
void | cs_ast_coupling_set_verbosity (int verbosity) |
Set verbosity level for code_aster coupling. More... | |
int | cs_ast_coupling_get_visualization (void) |
Get visualization level for code_aster coupling. More... | |
void | cs_ast_coupling_set_visualization (int visualization) |
Set visualization level for code_aster coupling. More... | |
void cs_ast_coupling_add | ( | void | ) |
Define coupling with code_aster.
Currently, a single coupling with code_aster is handled. In case of multiple calls to the function, subsequent calls are ignored, unless cs_ast_coupling_finalize has been called.
void cs_ast_coupling_compute_displacement | ( | cs_real_t | disp[][3] | ) |
Compute predicted or exact displacement of the fluid/structure interface.
[out] | disp | prescribed displacement at vertices |
void cs_ast_coupling_exchange_fields | ( | void | ) |
Send stresses acting on the fluid/structure interface and receive displacements.
void cs_ast_coupling_exchange_time_step | ( | cs_real_t | c_dt[] | ) |
Exchange time-step information with code_aster.
[in,out] | c_dt | time step at each cell |
void cs_ast_coupling_finalize | ( | void | ) |
Finalize exchange with code_aster.
Extract and exchange mesh information for surfaces coupled with code_aster.
[in] | n_faces | number of coupled faces. |
[in] | face_ids | ids of coupled faces (ordered by increasing id) |
[in] | almax | characteristic macroscopic domain length |
int cs_ast_coupling_get_ext_cvg | ( | void | ) |
Receive convergence value of code_saturne/code_aster coupling.
cs_real_3_t* cs_ast_coupling_get_fluid_forces_pointer | ( | void | ) |
Return pointer to array of fluid forces at faces coupled with code_aster.
int cs_ast_coupling_get_verbosity | ( | void | ) |
Get verbosity level for code_aster coupling.
int cs_ast_coupling_get_visualization | ( | void | ) |
Get visualization level for code_aster coupling.
void cs_ast_coupling_initialize | ( | int | nalimx, |
cs_real_t | epalim | ||
) |
Initial exchange with code_aster.
[in] | nalimx | maximum number of implicitation iterations of the structure displacement |
[in] | epalim | relative precision of implicitation of the structure displacement |
int cs_ast_coupling_n_couplings | ( | void | ) |
Query number of couplings with code_aster.
Currently, a single coupling with code_aster is possible.
void cs_ast_coupling_send_cvg | ( | int | icved | ) |
Send global convergence value of FSI calculations.
[in] | icved | convergence indicator (1: converged, 0: not converged) |
void cs_ast_coupling_set_verbosity | ( | int | verbosity | ) |
Set verbosity level for code_aster coupling.
[in] | verbosity | verbosity level for code_aster coupling |
void cs_ast_coupling_set_visualization | ( | int | visualization | ) |
Set visualization level for code_aster coupling.
[in] | visualization | visualization level for code_aster coupling |