Skip to content

Commit 5acb330

Browse files
authored
Merge pull request #261 from precice/develop
Release v202202.0
2 parents b99dfba + 6a23494 commit 5acb330

File tree

267 files changed

+2176
-1471
lines changed

Some content is hidden

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

267 files changed

+2176
-1471
lines changed

.github/workflows/check-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Check links
2-
on: [push, pull_request]
1+
name: Check links (manual)
2+
on: workflow_dispatch
33
jobs:
44
check_links:
55
runs-on: ubuntu-latest

.markdown-link-check-config.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"aliveStatusCodes": [429, 403, 200]
3-
}
2+
"aliveStatusCodes": [429, 200],
3+
"ignorePatterns": [
4+
{
5+
"pattern": "^https://openfoamwiki.net/"
6+
},
7+
{
8+
"pattern": "^https://doi.org/"
9+
}
10+
]
11+
}

.markdownlint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"MD013": false,
33
"MD033": false
4-
}
4+
}

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# preCICE tutorials changelog
2+
3+
All notable changes to this repository will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6+
7+
<!-- markdownlint-configure-file {"MD024": { "siblings_only": true } } -->
8+
9+
## [Unreleased]
10+
11+
## [v202202.0] 2022-02-09
12+
13+
### Added
14+
15+
- Added new volume-coupled-diffusion tutorial with FEniCS [#219](https://github.com/precice/tutorials/pull/219).
16+
- Added OpenFOAM case to partiitoned-heat [#223](https://github.com/precice/tutorials/pull/223).
17+
- Added DUNE case to perpendicular-flap [#239](https://github.com/precice/tutorials/pull/239).
18+
- Added FEniCS case to elastic-tube-3d [#223](https://github.com/precice/tutorials/pull/223).
19+
- Added this changelog, describing also changes in previous releases [#225](https://github.com/precice/tutorials/pull/225).
20+
21+
### Changed
22+
23+
- Changed C3D8 elements to C3D8I elements in perpendicular-flap solid-calculix to improve the results [#250](https://github.com/precice/tutorials/pull/250).
24+
- Ported the `visualize.py` script of the partitioned-elastic-beam to Python 3 [#247](https://github.com/precice/tutorials/pull/247).
25+
- Reduced the writing frequency of the partitioned-pipe OpenFOAM cases [#257](https://github.com/precice/tutorials/pull/257).
26+
- Renamed the output directories of all FEniCS cases for consistency [#256](https://github.com/precice/tutorials/pull/257).
27+
- Removed unnecessary (wrong) read statment in `elastic-tube-1d` [#232](https://github.com/precice/tutorials/pull/232).
28+
- Removed unnecessary (relic) OpenFOAM parameter `nMoles` from flow-over-heated-plate cases with OpenFOAM [#234](https://github.com/precice/tutorials/pull/234).
29+
- Removed unnecessary (relic) OpenFOAM parameter `RAS` from the `turbulenceProperties` files of all OpenFOAM cases (we model a laminar flow everywhere and this was confusing) [#258](https://github.com/precice/tutorials/pull/258).
30+
- Removed unnecessary (relic) OpenFOAM files `RASProperties` and `couplingProperties` from elastic-tube-3d [#258](https://github.com/precice/tutorials/pull/258).
31+
- Removed unnecessary (relic) OpenFOAM file `radiationProperties` from heat-exchanger [#258](https://github.com/precice/tutorials/pull/258).
32+
- Removed duplicate default settings from the `fvSchemes` OpenFOAM file of the heat-exchanger [#258](https://github.com/precice/tutorials/pull/258).
33+
- Removed unnecessary (relic) fields and inaccurate copyright notices from the headers of several OpenFOAM files [#258](https://github.com/precice/tutorials/pull/258).
34+
- Adjusted the formatting in several OpenFOAM files [#258](https://github.com/precice/tutorials/pull/258).
35+
- Changed the versioning scheme from `<yearmonth>.<minor>.<bugfix>` to `<yearmonth>.<bugfix>`.
36+
37+
## [v202104.1.1] 2021-05-02
38+
39+
### Changed
40+
41+
- Modified the helper tool `openfoam_remove_empty_dirs` such that it also respects results in the compressed OpenFOAM format (76f4482).
42+
- Synced the post-processing functionality of the elastic-tube-1d and the respective documentation. (#209)
43+
44+
## [v202104.1.0] 2021-04-23
45+
46+
### Added
47+
48+
- Created a first tagged version of this repository along with a [release](https://github.com/precice/tutorials/releases/tag/v202104.1.0).
49+
- Added a standard run script in each case folder which can be executed as `./run.sh`.
50+
- Added a standard clean script in each case folder which can be executed as `./clean<what>.sh`.
51+
- Added an easy-to-run tutorial called [quickstart](https://precice.org/quickstart.html).
52+
- Added a validated Turek-Hron FSI3 case with OpenFOAM and non-linear deal.II.
53+
54+
### Changed
55+
56+
- Moved all documentation to the [redesigned preCICE website](https://precice.org/tutorials.html).
57+
- Created a new directory structure for easy access and also for [contributions](https://precice.org/community-contribute-to-precice.html).
58+
- Modified the 2D cases to use 2D mode in preCICE and also corresponding 2D functionality in the adapters.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# preCICE tutorials
22

3-
This repository contains ready-to-run tutorial cases for the coupling library [preCICE](http://www.precice.org/).
4-
The purpose of these cases is not to teach you how to use preCICE from scratch, but to serve as starting points for setting up similar simulation cases, as well as test cases. Read more on our [preCICE tutorials](https://www.precice.org/tutorials.html) documentation section.
3+
This repository contains ready-to-run tutorial cases for the coupling library [preCICE](https://precice.org/).
4+
The purpose of these cases is not to teach you how to use preCICE from scratch, but to serve as starting points for setting up similar simulation cases, as well as test cases. Read more on our [preCICE tutorials](https://precice.org/tutorials.html) documentation section.
55

66
As a general rule, you can start each participant from inside their `<tutorial>/<participant>-<solver>` using `./run.sh`. Look into these short scripts and copy the parts you need for your new case. Before running again, execute the cleaning scripts you can find at each level, to clean from this point and deeper.
77

elastic-tube-1d/fluid-cpp/src/FluidSolver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ int main(int argc, char **argv)
101101
interface.markActionFulfilled(actionWriteIterationCheckpoint());
102102
}
103103

104-
if (interface.isReadDataAvailable()) {
105-
interface.readBlockScalarData(crossSectionLengthID, chunkLength, vertexIDs.data(), crossSectionLength.data());
106-
}
107-
108104
fluidComputeSolutionSerial(
109105
// values from last time window
110106
velocity_old.data(), pressure_old.data(), crossSectionLength_old.data(),

elastic-tube-3d/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Elastic tube 3D
33
permalink: tutorials-elastic-tube-3d.html
4-
keywords: FSI, OpenFOAM, CalculiX, nearest-projection, IMVJ
4+
keywords: FSI, OpenFOAM, CalculiX, FEniCS, nearest-projection, IMVJ
55
summary: Tutorial for an FSI simulation of a three-dimensional expanding tube scenario
66
---
77

@@ -19,22 +19,28 @@ The expanding tube test case comes with the interface surface mesh connectivity
1919

2020
Fluid participant:
2121

22-
* OpenFOAM. This tutorial is known to work with OpenFOAM 4.1, 5.0, but it should also work with newer versions. The case files are prepared for the latest versions of OpenFOAM and use the solver `pimpleFoam`. In case you are using a previous OpenFOAM version you need to adjust the solver to `pimpleDyMFoam` 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).
22+
* OpenFOAM (pimpleFoam). In case you are using a very old OpenFOAM version, you will need to adjust the solver to `pimpleDyMFoam` 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).
2323

2424
Solid participant:
2525

26-
* CalculiX. This tutorial is known to work with CalculiX 2.15, but it should also work with newer versions. For more information, have a look at the [CalculiX adapter documentation](https://www.precice.org/adapter-calculix-overview.html).
26+
* CalculiX. For more information, have a look at the [CalculiX adapter documentation](https://www.precice.org/adapter-calculix-overview.html).
27+
28+
* FEniCS. The structural model is currently limited to linear elasticity. Currently 3D functionality is experimental in the FEniCS adapter and more details can be found [here](https://github.com/precice/fenics-adapter/pull/133) For more information, have a look at the [FeniCS adapter documentation](https://www.precice.org/adapter-fenics.html).
2729

2830
## Running the simulation
2931

30-
You can start the simulation by running the script `./run.sh` located in each participant directory. OpenFOAM can be executed in parallel by using an additional `run.sh -parallel` flag. The default setting uses 4 MPI ranks.
32+
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.
3133

3234
## Post-processing
3335

3436
You can visualize the results using paraView or `cgx`(for native CalculiX resul files), as usual. The total deformation is rather small. Multiplying the deformation by factor of 10 (warp by vector filter in paraView) and visualizing the fluid domain at `t=0.005s` looks as follows:
3537

3638
![result tube](images/tutorials-elastic-tube-3d-tube-result.png)
3739

40+
You can also plot the displacement of the midpoint of the tube by running `sh plot-displacement.sh <filename>`. The displacement plot for each solver combination looks like:
41+
42+
![plot tube](images/tutorials-elastic-tube-3d-plot.png)
43+
3844
{% disclaimer %}
3945
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.
4046
{% enddisclaimer %}

elastic-tube-3d/fluid-openfoam/0/U

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ FoamFile
33
version 2.0;
44
format ascii;
55
class volVectorField;
6-
location "0";
76
object U;
87
}
9-
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108

119
dimensions [0 1 -1 0 0 0 0];
1210

@@ -28,6 +26,3 @@ boundaryField
2826
type zeroGradient;
2927
}
3028
}
31-
32-
33-
// ************************************************************************* //

elastic-tube-3d/fluid-openfoam/0/p

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ FoamFile
33
version 2.0;
44
format ascii;
55
class volScalarField;
6-
location "0";
76
object p;
87
}
9-
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108

119
dimensions [0 2 -2 0 0 0 0];
1210

@@ -17,13 +15,13 @@ boundaryField
1715
auto0
1816
{
1917
type uniformFixedValue;
20-
uniformValue table
21-
(
22-
(0 1.3332)
23-
(3e-3 1.3332)
24-
(3.1e-3 0)
25-
(1e-2 0)
26-
);
18+
uniformValue table
19+
(
20+
(0 1.3332)
21+
(3e-3 1.3332)
22+
(3.1e-3 0)
23+
(1e-2 0)
24+
);
2725
}
2826
interface
2927
{
@@ -35,6 +33,3 @@ boundaryField
3533
value uniform 0;
3634
}
3735
}
38-
39-
40-
// ************************************************************************* //

elastic-tube-3d/fluid-openfoam/0/pointDisplacement

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ FoamFile
55
class pointVectorField;
66
object pointDisplacement;
77
}
8-
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98

109
dimensions [0 1 0 0 0 0 0];
1110

@@ -21,7 +20,7 @@ boundaryField
2120

2221
interface
2322
{
24-
type fixedValue;
23+
type fixedValue;
2524
value $internalField;
2625
}
2726

@@ -32,6 +31,3 @@ boundaryField
3231
}
3332

3433
}
35-
36-
37-
// ************************************************************************* //

0 commit comments

Comments
 (0)