A number of MATLAB codes for simulations of 2D Fluid-Structure interactions are available and you can freely download them from this web page. These programs have been developped by the SPHINX project-team (the former CORIDA team) of INRIA french research institute. Download all the archive files in the same directory (e.g. my_matlab_dir/), otherwise you should have to modify the path in the main MATLAB scripts.
Author :
J.-F. Scheid
Author :
J.-F. Scheid
Contents
- Mesh generation
- 2D incompressible Navier-Stokes equations
- Fluid-rigid body interaction
1. Mesh generation
MESH2D is used for the generation of unstructured triangular meshes in MATLAB. This toolbox has been developped by Darren Engwirda. It can be freely downloaded at the Mathworks website (here) for release v2.4 under BSD license. You can also download release v2.3 under GNU GPL License and the v2.4 release directly from below.
mesh2d_v23.zip | |
File Size: | 125 kb |
File Type: | zip |
mesh2d_v24.zip | |
File Size: | 124 kb |
File Type: | zip |
Remark : These files has been sligthly modified by using the MATLAB function tsearchn in place of the function tsearch which has been removed from the MATLAB Release R2012a.
2. Incompressible Navier-Stokes equations
Incompressible Navier-Stokes 2D equations are solved for domains with various geometry possibly including holes. Dirichlet conditions are imposed on the boundary for the velocity field. These conditions are of type u=g where g may depend on time t. The numerical discretization scheme is based on a P2/P1 finite element method combined with a characteristics method for the treatment of the nonlinear term of the Navier -Stokes equations. Codes are written in MATLAB software with interfacing of C/C++ files through mexfiles. The mesh generator MESH2D is also required (see above).
Two versions of MATLAB code are available, with and without Graphical User Interface (GUI).
Two versions of MATLAB code are available, with and without Graphical User Interface (GUI).
navier-stokes2d.zip | |
File Size: | 159 kb |
File Type: | zip |
3. Fluid-Rigid body interactions
The MATLAB codes given below solve a fluid-rigid interaction problem where a rigid body is immersed into a 2D Navier-Stokes fluid . The movement of the solid body results from the interaction with the fluid. Incompressible Navier-Stokes equations are coupled with Newton's laws for the solid dynamics. The numerical scheme is based on a global weak formulation where the velocity of the fluid is computed simultaneously with the velocity of the solid body. A P2/P1 Finite Elements method is used with a caracteristics method for the nonlinearity of the Navier-Stokes equations. The mesh generator MESH2D is required.
ns2d_rigid.zip | |
File Size: | 81 kb |
File Type: | zip |