A simple tutorial for a first use

Back

The global procedure for using the code is:
  1. download the archive and uncompress it
  2. open a Matlab session in the same directory
  3. under the Matlab prompt, type 'main_fsi'
We will have the following result:

>> main_fsi
Piston mass= 100 kg
Spring rigidity= 1e+07 N/m
Natural frequency of the mass-spring system= 50.3292 Hz

Fluid model = C 
Fluid formulation (0=Eulerian, 1=Lagrangian, 2=ALE) = 2 
Fluid mass variation = 0.000241732 percent
Energy gap between fluid and structure = 0.00208081 percent

>>

and you will see one or two simultaneous animations (1D and 3D views) according to the value given to 'i3Dview'. Snapshots are below.

NB: plotted value precisions depend on your computer and may be different from those given above.


Screenshots of the plotting process