Difference between revisions of "Extend-bazaar/Toolkits/Fluid-structure interaction"

From OpenFOAMWiki
(Installation: where to put it)
(Installation: Extended instructions for contemplating what the source code will work with)
Line 12: Line 12:
 
== Installation ==
 
== Installation ==
  
Download here: [[Media:Fsi_31.tar.gz|Fsi_31.tar.gz]]
+
{{versionInfo}}{{version3.0-ext}}{{version3.1-ext}}
  
Place the package inside the designated user folder; said user folder is pointed out by the following command:
+
The original source code is available here on the wiki: [[Media:Fsi_31.tar.gz|Fsi_31.tar.gz]]
<bash>echo $WM_PROJECT_USER_DIR</bash>
+
* Git repository based on  this source code and further updated for foam-extend 3.1 is available here: https://github.com/wyldckat/FluidStructureInteraction
  
Extract by running:
 
<bash>tar -xzf Fsi_31.tar.gz</bash>
 
  
Then compile by running:
+
The instructions are a bit different, depending on the version of foam-extend:
<bash>cd FluidStructureInteraction/src/
+
* [[#Install on foam-extend 3.0|Install on foam-extend 3.0]]
 +
* [[#Install on foam-extend 3.1|Install on foam-extend 3.1]]
 +
 
 +
 
 +
=== Install on foam-extend 3.0 ===
 +
To download and install, run the following commands:
 +
<bash>mkdir -p $WM_PROJECT_USER_DIR
 +
cd $WM_PROJECT_USER_DIR
 +
wget http://openfoamwiki.net/images/5/52/Fsi_31.tar.gz
 +
tar -xzf Fsi_31.tar.gz
 +
cd FluidStructureInteraction/src/
 
./Allwmake
 
./Allwmake
 +
</bash>
 +
 +
 +
=== Install on foam-extend 3.1===
 +
First we have to download and unpack the source code:
 +
<bash>mkdir -p $WM_PROJECT_USER_DIR
 +
cd $WM_PROJECT_USER_DIR
 +
wget http://openfoamwiki.net/images/5/52/Fsi_31.tar.gz
 +
tar -xzf Fsi_31.tar.gz</bash>
 +
 +
Now we need to do some repairs in the source code:
 +
<bash>cd FluidStructureInteraction/src/fluidStructureInteraction/stressModels/constitutiveModel
 +
 +
wget https://raw.githubusercontent.com/wyldckat/FluidStructureInteraction/fe31/src/fluidStructureInteraction/stressModels/constitutiveModel/constitutiveModel.C
 +
wget https://raw.githubusercontent.com/wyldckat/FluidStructureInteraction/fe31/src/fluidStructureInteraction/stressModels/constitutiveModel/constitutiveModel.H
 +
 +
cd ../../..
 +
</bash>
 +
 +
Finally, we can build the toolkit:
 +
<bash>./Allwmake
 
</bash>
 
</bash>
  

Revision as of 22:56, 5 September 2015

1 Description

Quoting from here:

This toolkit supersedes the icoFsiElasticNonLinULSolidFoam FSI solver within the solidMechanics toolbox.

This framework was presented at the OpenFOAM Workshop 2014 in Zagreb: abstract and slides.

The major improvement with regard to FSI coupling is the implementation of the IQN-ILS algorithm.

Also, the plugin approach used for the solid and fluid solvers should allow easier extension to other fluid/solid models e.g. multi-phase, compressible, plasticity, etc.

2 Installation

Valid versions: OF Version 30ext.png OF Version 31ext.png

The original source code is available here on the wiki: Fsi_31.tar.gz


The instructions are a bit different, depending on the version of foam-extend:


2.1 Install on foam-extend 3.0

To download and install, run the following commands:

mkdir -p $WM_PROJECT_USER_DIR
cd $WM_PROJECT_USER_DIR
wget http://openfoamwiki.net/images/5/52/Fsi_31.tar.gz
tar -xzf Fsi_31.tar.gz
cd FluidStructureInteraction/src/
./Allwmake


2.2 Install on foam-extend 3.1

First we have to download and unpack the source code:

mkdir -p $WM_PROJECT_USER_DIR
cd $WM_PROJECT_USER_DIR
wget http://openfoamwiki.net/images/5/52/Fsi_31.tar.gz
tar -xzf Fsi_31.tar.gz

Now we need to do some repairs in the source code:

cd FluidStructureInteraction/src/fluidStructureInteraction/stressModels/constitutiveModel
 
wget https://raw.githubusercontent.com/wyldckat/FluidStructureInteraction/fe31/src/fluidStructureInteraction/stressModels/constitutiveModel/constitutiveModel.C
wget https://raw.githubusercontent.com/wyldckat/FluidStructureInteraction/fe31/src/fluidStructureInteraction/stressModels/constitutiveModel/constitutiveModel.H
 
cd ../../..

Finally, we can build the toolkit:

./Allwmake

3 Tutorials

The toolkit provides in the folder run the following examples:

  • fsiFoam
    • 3dTube
    • beamInCrossFlow
    • HronTurekFsi3
  • stressFoam
    • plateHole
  • thermalStressFoam
    • flange

3.1 fsiFoam tutorial cases

Each tutorial case available in the fsiFoam folder is executed by running the following commands:

sed -i s/tcsh/sh/g *Links
./removeSerialLinks fluid solid
./makeSerialLinks fluid solid
cd fluid
./Allclean
./Allrun

3.2 stressFoam tutorial case

The tutorial case plateHole is executed by going into the case folder:

cd stressFoam/plateHole/plateHole/

And running:

./Allrun

3.3 thermalStressFoam tutorial case

The tutorial case flange is executed by going into the case folder:

cd thermalStressFoam/flange/

And running:

./Allrun

4 Reports where this toolkit has been used

The following entries are in the page for the 2014 MSc/PhD course in CFD with OpenSource software at Chalmers University of Technology, which use this toolkit: