Perpendicular flap 3D

This tutorial describes how to run a 3D fluid-structure interaction using OpenFOAM and OpenRadioss.

Setup

This tutorial is derived from the “Pulsating flow over flexible flap” test case discussed in the OpenFOAM-preCICE paper (comparing to a benchmark from the literature ), and it was originally designed to validate OpenRadioss as a solid participant in fluid-structure interaction. In contrast to the discussed case, this is using an explicit coupling scheme (the OpenRadioss adapter does not support implicit coupling) with a smaller coupling time window / solver time step.

Overall, this tutorial consists of a 3D flow channel with an elastic flap perpendicular to the flow, anchored from the bottom. The inlet velocity oscillates over time, and the flap deforms in all dimensions.

Configuration

preCICE configuration (image generated using the precice-config-visualizer ):

preCICE configuration visualization

Available solvers

Fluid participant:

  • OpenFOAM (pimpleFoam). For more information, have a look at the OpenFOAM adapter documentation . This tutorial needs the OpenFOAM adapter v1.4.0 or later.

Solid participant:

Mesh configuration

The test case implemented within this repository implements what the OpenFOAM-preCICE paper refers to as coarse mesh: The OpenRadioss Solid domain is discretized with 48 HEX20 solid elements, arranged with a 2 x 4 x 6 cell resolution along the three spatial directions.

Running the simulation

Open two separate terminals and start the desired fluid and solid participant by calling the respective run script run.sh located in the participant directory. For example:

# Terminal 1
cd fluid-openfoam
./run.sh -parallel

# Terminal 2
cd solid-openradioss
./run.sh

The scripts rely on tools found in ../tools/.

OpenFOAM can be executed in parallel using run.sh -parallel. The default setting uses 8 MPI ranks, but you can increase the number of subdomains in system/decomposeParDict. Since this case takes a long time to complete, you probably want to run the fluid case in parallel. With the default configuration (8 MPI ranks), expect approximately 2h on a laptop.

Post-processing

OpenCourant (same as OpenRadioss) writes .anim files, which can be converted to VTK using the anim_to_vtk tool tool. This tool can be called (commented out by default) at the end of solid-openradioss/run.sh using the alias toVTK, defined in tools/setup-openradioss.sh.

OpenFOAM results can directly be loaded in ParaView (visualization details ).

At t=2.5 s, the flap should deform as follows:

Surface plot of velocity

Two watchpoints are defined: one in the center of the flap, and one on its left tip. These can be visualized using the provided gnuplot script:

./plot-displacement.sh solid-openradioss

Expected results for the two watchpoints (left and center of the flap):

Left watchpoint plot Central watchpoint plot

Detailed results can be found in the openradioss-cases repository and in the Master’s thesis of Elisa Santoro .