8.0
general documentation
cs_user_fluid_structure_interaction.c File Reference

User-defined functions dedicated to Fluid-Structure interaction modeling. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include "cs_headers.h"
+ Include dependency graph for cs_user_fluid_structure_interaction.c:

Functions

void cs_user_fsi_structure_define (int is_restart, int n_structs, int *plot, cs_time_control_t *plot_time_control, cs_real_t *aexxst, cs_real_t *bexxst, cs_real_t *cfopre, cs_real_t xstr0[][3], cs_real_t vstr0[][3], cs_real_t xstreq[][3])
 Definition of internal mobile structures and corresponding initial conditions (initial displacement and velocity ). More...
 
void cs_user_fsi_structure_values (int n_structs, const cs_time_step_t *ts, const cs_real_t xstreq[][3], const cs_real_t xstr[][3], const cs_real_t vstr[][3], cs_real_t xmstru[][3][3], cs_real_t xcstru[][3][3], cs_real_t xkstru[][3][3], cs_real_t forstr[][3], cs_real_t dtstr[])
 Time-based settings for internal mobile structures. More...
 
void cs_user_fsi_structure_num (cs_domain_t *domain, int structure_num[])
 Define structure numbers for faces associated with internal or external (code_aster) structures. More...
 

Detailed Description

User-defined functions dedicated to Fluid-Structure interaction modeling.

Function Documentation

◆ cs_user_fsi_structure_define()

void cs_user_fsi_structure_define ( int  is_restart,
int  n_structs,
int *  plot,
cs_time_control_t plot_time_control,
cs_real_t aexxst,
cs_real_t bexxst,
cs_real_t cfopre,
cs_real_t  xstr0[][3],
cs_real_t  vstr0[][3],
cs_real_t  xstreq[][3] 
)

Definition of internal mobile structures and corresponding initial conditions (initial displacement and velocity ).

Parameters
[in]is_restartindicate if computation is restarted
[in]n_structsnumber of mobile structures
[in,out]plot;monitoring format mask 0: no plot 1: plot to text (.dat) format 2: plot to .csv format 3: plot to both formats
[in,out]plot_time_controlplot time output frequency control
[in,out]aexxstcoefficient for predicted displacement
[in,out]bexxstcoefficient for predicted displacement
[in,out]cfoprecoefficient for predicted force
[in,out]xstr0initial displacement per structure
[in,out]vstr0initial velocity per structure
[in,out]xstreqdisplacement of initial mesh relative to structures position at equilibrium
[in,out]plot_time_controltime control associated to plotting

◆ cs_user_fsi_structure_num()

void cs_user_fsi_structure_num ( cs_domain_t domain,
int  structure_num[] 
)

Define structure numbers for faces associated with internal or external (code_aster) structures.

Structure numbers associated to a given face have the following values:

  • -i where coupled to i-th (1-to n) external (code_aster) structure.
  • 0 where not coupled with an internal or external structure.
  • i where coupled to i-th (1-to n) internal (mass-spring) structure.
Parameters
[in,out]domainpointer to a cs_domain_t structure
[in,out]structure_numstructure id associated to each face

◆ cs_user_fsi_structure_values()

void cs_user_fsi_structure_values ( int  n_structs,
const cs_time_step_t ts,
const cs_real_t  xstreq[][3],
const cs_real_t  xstr[][3],
const cs_real_t  vstr[][3],
cs_real_t  xmstru[][3][3],
cs_real_t  xcstru[][3][3],
cs_real_t  xkstru[][3][3],
cs_real_t  forstr[][3],
cs_real_t  dtstr[] 
)

Time-based settings for internal mobile structures.

Parameters
[in]n_structsnumber of mobile structures
[in]tstime step structure
[in]xstreqdisplacement of initial mesh rel. to equilibrium
[in]xstrstructural displacement
[in]vstrstructural velocity
[in,out]xmstrumatrix of structural mass
[in,out]xcstrumatrix of structural friction
[in,out]xkstrumatrix of structural stiffness
[in,out]forstrforces acting on structures (take forces)
[in,out]dtstrstructural time step