Skip to content

Commit 9e011d9

Browse files
committed
Adds the breaking dam 3D test case
1 parent 4dceaea commit 9e011d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+258677
-0
lines changed

breaking-dam-3d/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Breaking Dam 3D
3+
permalink: tutorials-breaking-dam-3d.html
4+
keywords: FSI, OpenFOAM, CalculiX, nearest-projection, IQN-ILS
5+
summary: Tutorial for an FSI simulation of a three-dimensional water column striking a flexible wall, based on the two-dimensional case.
6+
---
7+
8+
{% note %}
9+
Get the [case files of this tutorial](https://github.com/precice/tutorials/tree/master/breaking-dam-3d). Read how in the [tutorials introduction](https://www.precice.org/tutorials.html).
10+
{% endnote %}
11+
12+
## Setup
13+
14+
The three-dimensional breaking dam case is a free surface problem, that is an extension of the two-dimensional problem. Two large columns of water comes into contact with a flexible wall at different times, causing the wall to bend and twist as the water flows over and around the wall. The solid domain is fixed only at the bottom and the sides are free to move in-plane. The test case was run for 0.75s with a time step of dt = 0.005s, for a total of 150 time steps.
15+
16+
17+
![domain](images/domain.png)
18+
19+
![domain](images/properties.png)
20+
21+
## Available solvers
22+
23+
Fluid participant:
24+
25+
* OpenFOAM (interFoam). In case you are using a very old OpenFOAM version, you will need to adjust the solver to `interDyMFoam` in the `Fluid/system/controlDict` file. For more information, have a look at the [OpenFOAM adapter documentation](https://www.precice.org/adapter-openfoam-overview.html).
26+
27+
Solid participant:
28+
29+
* CalculiX. For more information, have a look at the [CalculiX adapter documentation](https://www.precice.org/adapter-calculix-overview.html).
30+
31+
## Running the simulation
32+
33+
You can start the simulation by running the script `./run.sh` located in each participant directory. OpenFOAM can be executed in parallel using `run.sh -parallel`. The default setting uses 4 MPI ranks.
34+
35+
## Post-processing
36+
37+
You can visualize the results using paraView or `cgx`(for native CalculiX resul files), as usual.
38+
39+
40+
{% disclaimer %}
41+
This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software via www.openfoam.com, and owner of the OPENFOAM® and OpenCFD® trade marks.
42+
{% enddisclaimer %}

breaking-dam-3d/clean-tutorial.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/clean-tutorial-base.sh
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FoamFile
2+
{
3+
version 2.0;
4+
format ascii;
5+
class volVectorField;
6+
location "0";
7+
object U;
8+
}
9+
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
10+
11+
dimensions [0 1 -1 0 0 0 0];
12+
13+
internalField uniform (0 0 0);
14+
15+
boundaryField
16+
{
17+
inlet
18+
{
19+
type noSlip;;
20+
//value $internalField;
21+
}
22+
outlet
23+
{
24+
type noSlip;
25+
}
26+
flap
27+
{
28+
type movingWallVelocity;
29+
value uniform (0 0 0);
30+
}
31+
upperWall
32+
{
33+
type zeroGradient;
34+
//value uniform (0 0 0);
35+
}
36+
lowerWall
37+
{
38+
type noSlip;
39+
}
40+
front
41+
{
42+
type empty;
43+
}
44+
back
45+
{
46+
type empty;
47+
}
48+
}
49+
50+
51+
// ************************************************************************* //

0 commit comments

Comments
 (0)