simulation of fluid-structural interaction using openfoamhani/kurser/os_cfd_2014/oflecfsi-1.pdf ·...
TRANSCRIPT
![Page 1: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/1.jpg)
SIMULATION OF FLUID-STRUCTURAL INTERACTION
USING OPENFOAM
Hua-Dong Yao
Department of Applied Mechanics,Chalmers University of Technology
Sep 15, 2014
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 1 / 37
![Page 2: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/2.jpg)
OUTLINE
Fundamental knowledge on FSI
FSI of large deformations simulated with OpenFOAMI Fluid solverI Structure solverI Coupling method
Post-processing
A tip
Questions
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 2 / 37
![Page 3: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/3.jpg)
FLUID-STRUCTURAL INTERACTIONS IN NATURE
A falling leave.
A flapping flag.
Blood circulation in the human heart.
...
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 3 / 37
![Page 4: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/4.jpg)
APPROACHES FOR FSI SIMULATIONS
The partitioned method is to separately solve the governingequations of the flow and structure with two independent solvers.
The monolithic method is to simultaneously solve the governingequations of the flow and structure with a single solver.
Fluid
Structure
Interaction
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 4 / 37
![Page 5: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/5.jpg)
COUPLING TECHNIQUES FOR THE PARTITIONED METHOD
The FSI solvers of OpenFOAM in present are implemented usingthe partitioned method.
There are two techniques coupling the fluid and structure solvers,either explicitly or implicitly.
Fluid Structure
?
?
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 5 / 37
![Page 6: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/6.jpg)
EXPLICIT COUPLING
The explicit coupling method applies to the weak interaction.
OpenFOAM includes a weak-FSI solver.
However, the weak-FSI solver is not our concern due to itssimplicity.
ΩnF Ωn+1
F
ΩnS Ωn+1
S
1
2 3
4
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 6 / 37
![Page 7: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/7.jpg)
IMPLICIT COUPLING
The implicit coupling method is suitable for the strong interaction.The focus in this lecture is the FSI of large structural deformations.
ΩnF Ωn+1
F
ΩnS Ωn+1
S
1
1
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 7 / 37
![Page 8: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/8.jpg)
HOW TO GET THE FSI SOLVER OF OPENFOAM?
We will use the version foam-extend-3.1.
The link for downloading the latest FSI solver ishttp://openfoamwiki.net/index.php/Extend-bazaar/Toolkits/Fluid-structure_interaction
The new version of OpenFOAM that is coming will include this FSIpackage.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 8 / 37
![Page 9: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/9.jpg)
INSTALLATION OF THE FSI SOLVER
The solver is installed in the following way:$ OFextend31 // Launch foam-extend-3.1 by typing ‘OFextend31’.$ run // Go to the local user directory ‘run’.$ mv downloadDir/Fsi 31.tar.gz . // Move the downloaded file here.$ tar ---xzvf Fsi 31.tar.gz // Extract this file here.
// A folder called FluidStructureInteraction is generated.$ cd FluidStructureInteraction/$ cd src/$ ./Allwmake
The application of our interest is fsiFoam.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 9 / 37
![Page 10: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/10.jpg)
FILES FOR SETTING UP A COMPUTATION
There are in default three tutorial cases for fsiFoam.$ cd FluidStructureInteraction/$ cd run/fsiFoam/$ ls
3dTube beamInCrossFlow HronTurekFsi3
Take 3dTube for example,$ cd 3dTube/$ ls
fluid makeLinks makeSerialLinks removeSerialLinks solid
The folder, fluid, contains the files for the fluid computation.The folder, solid, contains the files for the structure computation.Running the files *Links will link the two computations on theinterfaces between the fluid and solid domains.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 10 / 37
![Page 11: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/11.jpg)
FLOW SIMULATION
Fluid is incompressible.
The fluid solver utilizes the PISO algorithm.
Dynamic mesh is used due to the displacement of FSI interface.
The internal grids of the fluid mesh adjust their positions when theFSI interface moves.
Settings for the dynamic mesh:$ vi fluid/constant/dynamicMeshDict
dynamicFvMesh dynamicMotionSolverFvMesh;solver velocityLaplacian; // Solve the Laplacian equation.diffusivity quadratic inverseDistance (fsiPatchNameFluidSide);
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 11 / 37
![Page 12: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/12.jpg)
SETTINGS FOR FLOW SIMULATION
The FSI interface also needs a boundary condition (BC).
Its settings are the same as the wall BC, except for the velocity.$ vi fluid/0/U
type movingWallVelocity;value uniform (0 0 0);
The whole FSI simulation takes the settings of the IO and timecontrol that are specified in the fluid solver.$ vi fluid/system/controlDict
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 12 / 37
![Page 13: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/13.jpg)
GOVERNING EQUATIONS OF STRUCTURE SOLVER
The solid is linear elastic.
The governing equations are∫VS
ρS∂δv∂t
dVS −∮
SS
nu · (2µ+ λ)∇δ−→u dSS =∮SS
nu ·−→q dSS +
∫VS
ρS∂δf b
∂tdVS
q = µ(∇δ−→u
)T+ λtr
(δ−→u)
I − (µ+ λ)∇δ−→u + µ∇δ−→u ·(∇δ−→u
)T
+12λ(∇δ−→u : ∇δ−→u
)I +∑
S
·δF TS + δ
∑S
·δF TS
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 13 / 37
![Page 14: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/14.jpg)
DISCRETIZATION OF STRUCTURAL EQUATIONS
The space discretization:
ρPSVPS∂δvP
∂t−∑
f
(2µf + λf ) nfS ·(∇δ−→u
)f SfS =∑
f
nfS · qf SfS +∑
f
ρS(δfb)PVPS
nfS ·(∇δ−→u
)f = |∆fS|
δ−→u N − δ
−→u P
|dfS|+ (nfS −∆fS) ·
(∇δ−→u
)f
The backward time discretization:
δvnP =
3δ−→u nP − 4δ−→u o
P + δ−→u oo
P2δt
(∂δvP∂t
)n
=3δvn
P − 4δvoP + δvoo
P2δt
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 14 / 37
![Page 15: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/15.jpg)
SPECIFICATION OF STRUCTURAL PROPERTIES
The files in the directory ‘constant’$ cd myCase/solid/constant/$ ls
polyMesh rheologyProperties stressProperties
$ vi rheologyPropertiesplaneStress no; // ‘yes’ for 2D cases, ‘no’ for 3D cases.rheology
type linearElastic; // The structure is of linear elasticity.rho rho [1 -3 0 0 0 0 0] 1000; // Density.E E [1 -1 -2 0 0 0 0] 5.6e6; // Young’s modulus.nu nu [0 0 0 0 0 0 0] 0.4; // Poisson’s ratio.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 15 / 37
![Page 16: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/16.jpg)
SPECIFICATION OF STRUCTURAL SOLVER
$ cd myCase/solid/constant/$ vi stressProperties
stressModel unsTotalLagrangianStress;unsTotalLagrangianStressCoeffs
nCorrectors 1000;convergenceTolerance 1e-7;relConvergenceTolerance 1e-3;nonLinear yes;debug no;moveMesh yes;
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 16 / 37
![Page 17: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/17.jpg)
NUMERICAL SCHEMES OF STRUCTURE SOLVER – I
$ cd myCase/solid/system/$ vi fvSchemes
d2dt2Schemes
default none;d2dt2(D) backward;
ddtSchemes
default none;ddt(D) backward;
D relates to the displacement −→u in the structural equations.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 17 / 37
![Page 18: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/18.jpg)
NUMERICAL SCHEMES OF STRUCTURE SOLVER – II
$ cd myCase/solid/system/$ vi fvSchemes
laplacianSchemes
default none;laplacian(DD,D) Gauss linear skewCorrected 1;
// Gauss linear correctedsnGradSchemes
default none;snGrad(D) skewCorrected 1; // corrected
DD means the displacement increment δ−→u in the structuralequations.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 18 / 37
Advantage: effectiveness for bad mesh quality.Disadvantage: high computation cost.
![Page 19: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/19.jpg)
NUMERICAL SCHEMES OF STRUCTURE SOLVER – III
$ cd myCase/solid/system/$ vi fvSchemes
interpolationSchemes
default none;interpolate(mu) linear; // leastSquaresinterpolate(lambda) linear; // leastSquares
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 19 / 37
Advantage: effectiveness for bad mesh quality.Disadvantage: high computation cost.
![Page 20: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/20.jpg)
MATRIX ALGORITHMS OF STRUCTURE SOLVER – I$ cd myCase/solid/system/$ vi fvSolution
solvers
D
solver PCG;preconditioner DIC;tolerance 1e-09;relTol 0.1;
DD
solver PCG;preconditioner DIC;tolerance 1e-09;relTol 0.1;
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 20 / 37
![Page 21: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/21.jpg)
MATRIX ALGORITHMS OF STRUCTURE SOLVER – II
$ cd myCase/solid/system/$ vi fvSolution
relaxationFactors
D 0.5;DD 0.5;
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 21 / 37
![Page 22: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/22.jpg)
BOUNDARY CONDITIONS OF STRUCTURE SOLVER – I
$ cd myCase/solid/0/$ vi D
fsiPatchName
type tractionDisplacement; // The BC typetraction uniform ( 0 0 0 ); // Externally imposed tractionpressure uniform 0; // Externally imposed pressurevalue uniform (0 0 0); // Externally imposed displacement
Traction is the force per unit area on a surface, including thenormal and shear components.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 22 / 37
![Page 23: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/23.jpg)
BOUNDARY CONDITIONS OF STRUCTURE SOLVER – II
$ cd myCase/solid/0/$ vi D
fixedPatchName
type fixedDisplacement; // The BC typevalue uniform (0 0 0); // Externally imposed displacement
Structural BC types are given by the following source codes.$ OFextend31$ src // Go to the installation directory of the source codes$ cd ./solidModels/fvPatchFields/$ ls
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 23 / 37
![Page 24: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/24.jpg)
COUPLING METHOD – INTERACTION
The exchanged variables on the interfaces are:
I pressure (pΓ) and viscous force (−→t Γ) in the fluid side,
I displacement increment (−→u Γ) and velocity (−→v Γ) in the structureside.
Flow field Structure field
pΓ and−→t Γ
−→u Γ and −→v Γ
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 24 / 37
![Page 25: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/25.jpg)
COUPLING METHOD – INTERACTION
Update structural mesh Move fluid mesh
Fluid solver
Structure solver
Compute Residual
piΓ,−→t i
Γ
−→u iΓ, −→v i
Γ
ri Γ=( −→ ui Γ
−−→ u
i Γ−
1) >S
MA
LL
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 25 / 37
![Page 26: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/26.jpg)
AITKEN RELAXATION
The Aitken relaxation applies to accelerate the coupling process.
uiΓ = S F
(ui−1
Γ
)r iΓ = ui
Γ − ui−1Γ
r i+1Γ = ui+1
Γ − uiΓ
0 = r i+1Γ +
r i+1Γ − r i
Γ
uiΓ − ui−1
Γ
(ui+1
Γ − uiΓ
)ui+1
Γ = uiΓ − r i+1
Γ
uiΓ − ui−1
Γ
r i+1Γ − r i
Γ
= uiΓ +
uiΓ − ui−1
Γ
ui−1Γ − ui
Γ + ui+1Γ − ui
Γ︸ ︷︷ ︸ωi+1
(ui+1
Γ − uiΓ
)︸ ︷︷ ︸
r i+1Γ
uiΓ := ui−1
Γ − ωi r iΓ ωi+1 = −ωi
(r iΓ, r
i+1Γ − r i
Γ
)∥∥∥r i+1
Γ − r iΓ
∥∥∥2
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 26 / 37
(ui−1
Γ , r iΓ
)(ui
Γ, ri+1Γ
)(ui−1
Γ ,0)
![Page 27: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/27.jpg)
SETTINGS FOR COUPLING THE SOLVERS
The setting file is located in the fluid solver.$ vi fluid/constant/fsiProperties
solidPatch plate;solidZone plateZone;fluidPatch plate;fluidZone plateZone;relaxationFactor 0.05;interfaceDeformationLimit 0;outerCorrTolerance 1e-6;nOuterCorr 30;interpolatorUpdateFrequency 0;couplingScheme Aitken;couplingReuse 0;coupled no;
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 27 / 37
![Page 28: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/28.jpg)
CREATION OF COUPLED ZONES
The coupling process requires the information of FSI zones.
The fluid and structure solvers use the same way to create thesezones.
Take the fluid solver for example,$ cd myFsiCase/fluid/$ setSet -batch setBatch$ setsToZones -noFlipMap
A convenient way is to write the above commands in a batch file.
The file setBatch saves the following contents:faceSet fsiPatchZoneName new patchToFace fsiPatchNamequit
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 28 / 37
![Page 29: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/29.jpg)
LINK THE SOLVERS FOR COUPLING
A single-processor computation links the local main directories.$ cd myCase/fluid/constant/$ ln -s ../../solid/constant solid$ cd ../system$ ln -s ../../solid/system solid$ cd ../0$ ln -s ../../solid/0 solid
A parallel computation needs to link the above directories forevery processor, in addition to the local main directories.foreach proc(processor*)cd $proccd 0ln -s ../../../solid/$proc/0 solidcd ../constantln -s ../../../solid/$proc/constant solidcd ../..endHua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 29 / 37
![Page 30: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/30.jpg)
LINK THE SOLVERS
We can write the above commands into a batch file forconvenience.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 30 / 37
![Page 31: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/31.jpg)
TUTORIALS
The FSI package, which we downloaded before, contains threetutorial cases in default.$ cp FluidStructureInteraction/run/fsiFoam myFsiTut -r$ cd myFsiTut$ ls
3dTube beamInCrossFlow HronTurekFsi3
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 31 / 37
![Page 32: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/32.jpg)
HOW TO RUN A COMPUTATION?
Take for instant the tutorial case of a three-dimensional tube,$ cd myFsiTut/3dTube/$ ./makeSerialLinks fluid solid$ ./Allrun
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 32 / 37
![Page 33: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/33.jpg)
POST-PROCESSING
The post-processing tool can be paraFoam or other commercialsoftwares.
The application paraFoam is able to automatically load the resultsof both the domains.$ paraFoam
In regard of Tecplot, the command is$ foamToTecplot360
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 33 / 37
![Page 34: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/34.jpg)
A TIP
A patch imposed with the symmetric BC must be precisely flat.
Otherwise, the nodes on this patch could deviate from theiroriginal positions during the computation.
The reason is that computation of the node motions adopts thenormal directions of the local cell faces.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 34 / 37
![Page 35: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/35.jpg)
AN EXERCISE
Let us do an exercise with the tutorial case of a flapping plate.
Please change the BC type of the fixed walls fromfixedDisplacement to timeVaryingFixedDisplacement.
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 35 / 37
![Page 36: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/36.jpg)
QUESTIONS
What is the implicit coupling method?
How to set the IO and time controls for a FSI computation?
How to specify the BC types for the variables on the interfacebetween the fluid and structure domains?
Which method is utilized to accelerate the convergence speed ofthe coupling progress?
Which variables are transferred on the interface?
Which two preliminary works should we do to establish thecoupling?
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 36 / 37
![Page 37: Simulation of Fluid-Structural Interaction using OpenFOAMhani/kurser/OS_CFD_2014/OFLecFSI-1.pdf · SIMULATION OF FLUID-STRUCTURAL INTERACTION USING OPENFOAM Hua-Dong Yao Department](https://reader031.vdocuments.us/reader031/viewer/2022012316/5ca0314688c99312188cba66/html5/thumbnails/37.jpg)
Thanks
Hua-Dong Yao Simulation of FSI using OpenFOAM Sep 15, 2014 37 / 37