This tutorial is divided into the following sections:
This tutorial examines turbulent air flow through a duct that includes vertical flaps. You will enable a structural model in order to simulate the deformation of the flaps as a result of the fluid flow. It is assumed that the deformation will be large enough that this problem must be modeled as a two-way fluid-structure interaction (FSI) simulation; that is, the fluid flow will affect the deformation of the structures, and vice versa. Because Fluent performs all of the structural calculations (as opposed to using a separate structural program), it is referred to as "intrinsic FSI".
This tutorial demonstrates how to do the following:
Run a journal file to complete an initial steady-state fluid flow simulation without structural calculations.
Set up a transient calculation.
Enable a structural model.
Define structural material properties, a solid cell zone, and related boundary conditions.
Set up dynamic mesh zones for the fluid-structure interaction.
Create solution animation definitions for a scene, contour, and mesh.
Complete a two-way FSI simulation.
Postprocess the fluid flow and the deformation of a solid cell zone.
This tutorial is written with the assumption that you have completed the introductory tutorials found in this manual and that you are familiar with the Ansys Fluent outline view and ribbon structure. Some steps in the setup and solution procedure will not be shown explicitly.
The problem to be modeled in this tutorial is shown schematically in Figure 29.1: Problem Schematic.
Flow through a simple duct with vertical flaps is simulated as a 2D planar model. The duct is 10 cm long and 4 cm high, and the flaps are 1 cm tall and 0.3 cm thick, composed of silicone rubber. Turbulent air enters the duct at 10 m/s, flows around the flaps, and exits through a pressure outlet. Symmetry allows only half of the duct to be modeled.
The following sections describe the setup and solution steps for this tutorial:
To prepare for running this tutorial:
Download the
fsi_2way.zipfile here .Unzip
fsi_2way.zipto your working directory.The files
flap.mshandsteady_fluid_flow.joucan be found in the folder. Note that the cell zone in the mesh file that will represent the solid zone is appropriate for a 2D intrinsic FSI simulation, which requires that only quadrilateral and/or triangular cell types are used and that a conformal mesh exists between the zones that will represent the solid and the fluid.Use the Fluent Launcher to start Ansys Fluent.
Select Solution in the top-left selection list to start Fluent in Solution Mode.
Select 2D under Dimension.
Enable Double Precision under Options.
Retain the default Solver Processes to
1under Parallel (Local Machine).Make sure that the Working Directory (in the General Options tab) is set to the one created when you unzipped
fsi_2way.zip.Read the journal file
steady_fluid_flow.jou.File → Read → Journal...
This journal file will read the mesh file
flap.mshand set up and solve a steady fluid flow simulation that will serve as the starting point for the transient FSI simulation. Solving the steady flow problem first allows you to easily discern and resolve any convergence issues that are not related to the fluid-structure interaction.As Fluent reads the journal file, it will report the text commands and solution progress in the console. You can also view the journal file in a text editor to see the settings used in this simulation. The final text command in the journal file will display contours of the velocity magnitude (Figure 29.2: Steady-State Velocity Magnitude).
Mirror the display across the centerline (Figure 29.3: Duct with Mirroring).
View → Display → Views...

Select symmetry.2 in the Mirror Planes selection list.
Click to refresh the display.
Close the Views dialog box and reposition the view as shown in Figure 29.3: Duct with Mirroring.
Save the initial case and data files as
flap_fluid.cas.h5andflap_fluid.dat.h5.File → Write → Case & Data...
Having completed an initial steady fluid flow simulation, the remaining steps are all concerned with setting up the structural calculations and obtaining the transient results for the deformation of the solid flaps.
Specify the solver settings.
Setup →
General
Enable a time-dependent calculation by selecting Transient in the General task page (Solver group).
Retain the default selection of Pressure-Based from the Type list.
Verify that a solid cell zone is already defined, as this is necessary to be able to enable a structural model. You can view the existing cell zones in the Outline View window.

Enable the linear elasticity structural model.
Setup → Models → Structure
Edit...

Select Linear Elasticity from the Model list.
This model enables structural calculations for the solid cell zone such that the internal load is linearly proportional to the nodal displacement, and the structural stiffness matrix remains constant.
Click to close the Structural Model dialog box.
Create a new solid material for the flap.
Setup → Materials → Solid
New...

Enter
silicone-rubberfor the Name.Clear the Chemical Formula field.
Enter
1600for the Density.Enter
1e+6for the Youngs Modulus.Enter
0.47for the Poisson Ratio.Click , and click Yes in the Question dialog box to overwrite aluminum.
Close the Create/Edit Materials dialog box.
Set up the cell zone conditions for the solid zone associated with the flap (solid.5).
Setup → Cell Zone Conditions → Solid → solid.5
Edit...

Select silicone-rubber from the Material Name drop-down list.
Click and close the Solid dialog box.
You must ensure that the boundary conditions are appropriately defined for every wall that is immediately adjacent to the solid zone.
Set the boundary conditions for flap_attach, which is located where the flap attaches to the duct. You will define it as being fixed (that is, undergoing no displacement).
Setup → Boundary Conditions → Wall → flap_attach
Edit...

In the Structure tab, select displacement boundary conditions (that is, Node X-Displacement from the X-Displacement Boundary Condition drop-down list with 0 for the X-Displacement, and so on).
Click and close the Wall dialog box.
Set the boundary conditions for all of the two-sided walls (that is, the wall / wall-shadow pairs) between the solid and fluid cell zones. In this case there is one pair of walls, which represent the outer surface of the flap.
Set the boundary conditions for flap_wall-shadow.
Setup → Boundary Conditions → Wall → flap_wall-shadow
Edit...

Note that the Adjacent Cell Zone for this wall is fluid.4, which is the fluid zone. The side of the wall / wall-shadow pair that is immediately adjacent to the fluid does not require any settings in the Structure tab, and so this tab is not available.
Retain the default settings in the Momentum tab.
Click and close the Wall dialog box.
Set the boundary conditions for flap_wall.
Setup → Boundary Conditions → Wall → flap_wall
Edit...

Note that the Adjacent Cell Zone for this wall is solid.5, which is the solid zone. The side of the wall / wall-shadow pair that is immediately adjacent to the solid does require structural settings (that is, displacement boundary conditions).
Click the Structure tab.
Select Intrinsic FSI from the X- and Y-Displacement Boundary Condition drop-down lists.
This specifies that the displacement results from pressure loads exerted by the fluid flow on the faces. This setting is only available for two-sided walls.
Click and close the Wall dialog box.
For two-way FSI simulations, you must define dynamic mesh properties to allow the mesh to handle the deformation of the solid zone.
Domain → Mesh Models
→

Enable the Dynamic Mesh option.
Make sure that the Smoothing option is enabled in the Mesh Methods group box, and click the button to open the Mesh Method Settings dialog box.

Select Linearly Elastic Solid from the Method list.
Click to close the Mesh Method Settings dialog box.
Retain the default settings in the Options group box (that is, with the options disabled). These options are not supported for FSI simulations, except for Implicit Update. The Implicit Update option may be required for more complex cases in which the stability of the FSI simulation may be an issue, but for a simple case such as this one, it is not required.
Click the button to open the Dynamic Mesh Zones dialog box.

Select po.3 (the pressure outlet) from the Zone Names drop-down list, select Stationary from the Type list, and click . This ensures the boundary zone does not deform.
In a similar manner, create stationary dynamic zones for the other boundary zones that are not deforming: symmetry.2, velocity_inlet.1, and wall.
Select flap_wall-shadow (the side of the wall / wall-shadow pair that is immediately adjacent to the fluid) from the Zone Names drop-down list, select Intrinsic FSI from the Type list, and click . This specifies that the wall / wall-shadow pair deforms according to the deformation of the adjacent solid zone.

Close the Dynamic Mesh Zones dialog box.
By setting up animation definitions, you will be able to capture results for your transient simulation as it calculates the solution, so that you can later display how the fluid flow and flap shape change over time.
Create a scene that can be used in an animation definition for the fluid flow.
Scenes are used when you want to display multiple graphics objects within a single window. In this case, the animation will include not only contours of the fluid velocity, but also boundary zones.
Results → Scene
New...

Enter
vel_boundfor the Name.Click and select Mesh... from the drop-down list to open the associated dialog box.

Enter
boundariesfor the Mesh Name.Select Edges under the Options list.
Deselect all surfaces in the Surfaces selection list by clicking
, and then select flap_wall-shadow,
po.3, velocity_inlet.1, and
wall.Click and close the Mesh Display dialog box.
Click and select Contours... from the drop-down list to open the associated dialog box.

Enter
vel_magfor the Contour Name.Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
Disable the Auto Range option and enter
20and29for the Min and Max, respectively.Disabling the Auto Range ensures that all of the results in the animation have the same scale. The velocity of the fluid will not change very much in this particular solution, and so using a narrow range of values will make it easier to identify the small contour changes.
Deselect all surfaces in the Surfaces selection list by clicking
.For 2D cases, if no surface is selected, contouring is done on the entire domain.
Click the button and close the Contours dialog box.
Click the button, and then click to close the Scene dialog box.

Create an animation definition for the fluid velocity and boundaries scene.
Solution → Calculation Activities → Solution Animations
New...

Enter
vel_animationfor the Name.Enter
5for Record after every and select iteration from the drop-down list.Select In Memory from the Storage Type drop-down.
The In Memory option is acceptable for a small 2D case such as this. For larger 2D or 3D cases, saving animation files with either the PPM Image or HSF File option is preferable, to avoid using too much of your machine’s memory.
Select vel_bound from the Animation Object list.
Click to create the animation definition.
Create an animation definition for the flap displacement.
Solution → Calculation Activities → Solution Animations
New...

Enter
disp_animationfor the Name.Enter
5for Record after every and select iteration from the drop-down list.Select In Memory from the Storage Type drop-down.
Click and select Contours... from the drop-down list to open the associated dialog box.

Enter
dispfor the Contour Name.Select Structure... and Total Displacement from the Contours of drop-down lists.
Disable Auto Range and enter
0and5.1e-05for Min and Max, respectively.Select solid.5 from the Surfaces list.
Click and close the Contours dialog box.
Select from the Animation Object list.
Click to create the animation definition.
Create an animation definition for the mesh.
Solution → Calculation Activities → Solution Animations
New...

Enter
mesh_animationfor the Name.Enter
5for Record after every and select iteration from the drop-down list.Select In Memory from the Storage Type drop-down.
Click and select Mesh... from the drop-down list to open the associated dialog box.

Enter
meshfor the Mesh Name.Disable the Faces option.
Deselect all surfaces in the Surfaces selection list by clicking
, and then select fluid.4 and
solid.5.Click and close the Mesh Display dialog box.
Select from the Animation Object list.
Click to create the animation definition.
Add a structural point surface to a location of interest within the solid zone.
Results → Surfaces
New → Structural Point...
The Structural Point Surface dialog appears, as does a point triad in the graphics window. Zoom into the mesh displayed in the graphics window to focus on the tip of the flap.

Enter
structural-point-flapfor the Name.Enter
0.0505for the x coordinate, and enter0.0095for the y coordinate.Alternatively,you can use the mouse to drag the point's position in the graphics window to an approximate location.
Click Create to create the structural point surface at this location.
Close the Structural Point Surface dialog box.
Create a report definition to monitor displacement of the flap.
Solution → Report Definitions
New → Surface Report → Vertex Average...

Enter
report-def-surffor the Name.Select Structure... and Total Displacement from the Contours of drop-down lists.
Select structural-point-flap from the Surfaces list.
Enable the Report File, Report Plot, and Print to Console options.
Click OK.
This report definition will monitor and plot the vertex average of the displacement of the nodes that surround the structural point surface.
Disable the checking of convergence for the displacement residual equations.
Solution → Monitors → Residual
Edit...

Disable the Check Convergence options for the x- and y-displacement equations.
Click to close the Residual Monitors dialog box.
Save the case file (
flap_fsi_2way.cas.h5).File → Write → Case...
Start the calculation.
Solution → Run Calculation →

Enter
50for Number of Time Steps.Enter
0.0005for Time Step Size.Enter
40for Max Iterations/Time Step.Click .
After the solution has been calculated, save the case and data files (
flap_fsi_2way.cas.h5andflap_fsi_2way.dat.h5).File → Write → Case & Data...
View the displacement of the flap's point surface (Figure 29.4: The Vertex Average Displacement of the Flap's Point Surface).
The monitored plot of the vertex average of the displacement at the point surface clearly shows displacement over time.
View the animations of the results.
Results → Animations → Playback
Edit...

Select Auto Repeat from the Playback Mode drop-down list.
Disable the Use Stored View option.
Select vel_animation from the Animation Sequences list.
Decrease the Replay Speed by clicking the
button four times.Click the play button (the second from the right in the group of buttons in the Playback group box).
Magnify the view as shown in Figure 29.5: Contours of Velocity Magnitude.
Click the
button to stop the animation.Select disp_animation from the Animation Sequences list.
Click the play button.
Magnify the view as shown in Figure 29.6: Contours of Total Displacement.
Click the
button to stop the animation.Select mesh_animation from the Animation Sequences list.
Click the play button.
Magnify the view as shown in Figure 29.7: The Mesh of the Displaced Flap.
Click the
button to stop the animation.
This tutorial demonstrated how to set up and solve a two-way intrinsic FSI simulation. You learned how to enable a structural model and define the solid material, boundary conditions, and dynamic mesh zones. After completing the simulation, you viewed animations of the resulting fluid velocity contours and displacement of the structure. For more information about intrinsic FSI simulations, see the Fluent User's Guide.






