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.zip
file here .Unzip
fsi_2way.zip
to your working directory.The files
flap.msh
andsteady_fluid_flow.jou
can 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
1
under 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.msh
and 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.h5
andflap_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 Structural Model dialog box.
to close the
Create a new solid material for the flap.
Setup → Materials → Solid New...
Enter
silicone-rubber
for the Name.Clear the Chemical Formula field.
Enter
1600
for the Density.Enter
1e+6
for the Youngs Modulus.Enter
0.47
for the Poisson Ratio.Click Yes in the Question dialog box to overwrite aluminum.
, and clickClose 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 Solid dialog box.
and close the
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 Wall dialog box.
and close the
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 Wall dialog box.
and close the
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 Wall dialog box.
and close the
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 Mesh Method Settings dialog box.
to close the
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 Dynamic Mesh Zones dialog box.
button to open theSelect 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_bound
for the Name.Click Mesh... from the drop-down list to open the associated dialog box.
and selectEnter
boundaries
for 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 Mesh Display dialog box.
and close the
Click Contours... from the drop-down list to open the associated dialog box.
and selectEnter
vel_mag
for the Contour Name.Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
Disable the Auto Range option and enter
20
and29
for 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 Contours dialog box.
button and close the
Click the Scene dialog box.
button, and then click to close the
Create an animation definition for the fluid velocity and boundaries scene.
Solution → Calculation Activities → Solution Animations New...
Enter
vel_animation
for the Name.Enter
5
for 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_animation
for the Name.Enter
5
for Record after every and select iteration from the drop-down list.Select In Memory from the Storage Type drop-down.
Click Contours... from the drop-down list to open the associated dialog box.
and selectEnter
disp
for the Contour Name.Select Structure... and Total Displacement from the Contours of drop-down lists.
Disable Auto Range and enter
0
and5.1e-05
for Min and Max, respectively.Select solid.5 from the Surfaces list.
Click Contours dialog box.
and close the
Select Animation Object list.
from theClick
to create the animation definition.
Create an animation definition for the mesh.
Solution → Calculation Activities → Solution Animations New...
Enter
mesh_animation
for the Name.Enter
5
for Record after every and select iteration from the drop-down list.Select In Memory from the Storage Type drop-down.
Click Mesh... from the drop-down list to open the associated dialog box.
and selectEnter
mesh
for 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 Mesh Display dialog box.
and close the
Select Animation Object list.
from theClick
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-flap
for the Name.Enter
0.0505
for the x coordinate, and enter0.0095
for 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-surf
for 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 Residual Monitors dialog box.
to close the
Save the case file (
flap_fsi_2way.cas.h5
).File → Write → Case...
Start the calculation.
Solution → Run Calculation →
Enter
50
for Number of Time Steps.Enter
0.0005
for Time Step Size.Enter
40
for Max Iterations/Time Step.Click
.
After the solution has been calculated, save the case and data files (
flap_fsi_2way.cas.h5
andflap_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.