ACU-T: 4000 Transient Dam Break Simulation
Prerequisites
This tutorial introduces you to the workflow for setting up an AcuSolve transient dam break simulation using HyperMesh CFD. Prior to starting this tutorial, you should have already run through the introductory tutorial, ACU-T: 1000 Basic Flow Set Up, and have a basic understanding of HyperMesh CFD and AcuSolve. To run this simulation, you will need access to a licensed version of HyperMesh CFD and AcuSolve.
Problem Description
The problem to be addressed in this tutorial is shown schematically in the figure below. It consists of a square water column held in place by the reservoir walls. At time t=0, the walls are removed and the water column is now free to flow out. The simulation can be used to visualize and study the surge patterns as the column of water rushes out, as in a dam wall break.
Start HyperMesh CFD and Create the HyperMesh Model Database
-
Start HyperMesh CFD from the Windows Start
menu by clicking .
When HyperMesh CFD is loaded, the Geometry ribbon is open by default.
-
Create a new .hm database in
one of the following ways:
- From the menu bar, click .
- From the Home tools, Files tool group, click the Save As tool.
- In the Save File As dialog, navigate to the directory where you would like to save the database.
-
Enter DamBreak as the name for
the database then click Save.
This will be your problem directory and all the files related to the simulation will be stored in this location.
Import and Validate the Geometry
Import the Geometry
- From the menu bar, click .
- In the Import File dialog, browse to your working directory then select ACU-T4000_dambreak2D.x_t and click Open.
-
In the Geometry Import Options dialog, leave all the
default options unchanged then click Import.
Validate the Geometry
-
From the Geometry ribbon, click the Validate tool.
The Validate tool scans through the entire model, performs checks on the surfaces and solids, and flags any defects in the geometry, such as free edges, closed shells, intersections, duplicates, and slivers.
The current model does not have any of the issues mentioned above. Alternatively, if any issues are found, they are indicated by the number in the brackets adjacent to the tool name.
Observe that a blue check mark appears on the top-left corner of the Validate icon. This indicates that the tool found no issues with the geometry model. - Press Esc or right-click in the modeling window and swipe the cursor over the green check mark from right to left.
- Save the database.
Set Up the Problem
Set Up the Simulation Parameters and Solver Settings
-
From the Flow ribbon, click the Physics tool.
The Setup dialog opens.
-
Under the Physics models setting:
- Activate the Multiphase flow radio button.
- Set the Multifluid type to Immiscible and the Immiscible material to Air-Water
- Set the Time step size to 0.002498 and the Final time to 1.0
- Select Laminar as the Turbulence model.
- Set the gravity to -9.81 m/sec2 in the y direction.
-
Click the Solver Controls setting and set the Maximum
stagger iterations to 5.
- Close the dialog and save the model.
Assign Material Properties
-
From the Flow ribbon, click the Material tool.
- In the Materials legend, verify that Air-Water is assigned.
- Click on the guide bar.
Define Flow Boundary Conditions
-
From the Flow ribbon, click the Symmetry tool.
-
Select the right most face on the positive z-axis, as shown in the figure
below.
- In the Boundaries legend, double-click on Symmetry, rename it to z_pos and press Enter.
- On the guide bar, click to execute the command and remain in the tool.
- Rotate the model and select the opposite face.
- In the Boundaries legend, rename Symmetry to z_neg.
- On the guide bar, click to execute the command and exit the tool.
- Save the database.
Generate the Mesh
In this step, first you will create a surface mesh using the Interactive meshing tool; then, you will specify a global mesh size and growth rate for the model and generate the volume mesh using the Batch tool in the Mesh ribbon.
Create Surface Mesh
-
From the Mesh ribbon, click the Interactive tool.
By default, the Create should be selected from the secondary ribbon.
-
Click on the guide bar to open the options menu, then make the following
changes:
- Set the Element size to 0.00254.
- Set the Mesh type to Mapped.
- Set the Map method to Map as triangle.
- On the guide bar, change the entity selector to Solids then select the solid in the modeling window.
- Click Mesh in either the microdialog or on the guide bar to generate the surface mesh.
- Once the surface mesh is created, press Esc to exit out of the tool.
Generate Volume Mesh
-
From the Mesh ribbon, click the
Volume tool.
The Meshing Operations dialog opens.
- Verify that the Mesh size option is set to Average size.
-
Set the Average element size to 0.006.
-
Click Mesh.
The Run Status dialog opens. Once the run is complete, the status is updated and you can close the dialog.Tip: Right-click on the mesh job and select View log file to view a summary of the meshing process.
Define Nodal Outputs and Nodal Initial Conditions
In this step, you will define the nodal output frequency and then specify the nodal initial conditions for the water column.
Define Nodal Output Frequency
-
From the Solution ribbon, click the Field tool.
The Field Output dialog opens.
- Click the Solution variables setting.
- Activate the Write initial conditions option.
- Verify that the Write results at time step interval option is active.
-
Set the Time step interval to 5.
Define the Nodal Initial Conditions
-
From the Solution ribbon, Zones tool group, click the Box
tool.
-
Hover the cursor over the dam geometry. When the zone is aligned with the
surfaces of the model, double-click on the geometry.
An initialization zone with arbitrary dimensions should be visible on the model.
-
In the microdialog, select Fluid
then click in empty space in the dialog. Change the Value field to
Water.
-
In the zone initialization microdialog, expand the
drop-down and set the dimensions of the zone as shown in the figure below.
Note: If you do not see the microdialog for entering the dimensions, move the NIC variable microdialog.
-
Click the center of the manipulator on the model, as shown in the figure below,
then enter the following coordinates for the center: 0.028575,
0.028575, 0.003.
This will ensure that the fluid domain is initialized with a water column at the corner of the dam.
- Right-click in the modeling window and select the check mark to exit the tool.
Run AcuSolve
-
From the Solution ribbon, click the Run tool.
The Launch AcuSolve dialog opens.
- Set the Parallel processing option to Intel MPI.
- Optional: Set the number of processors to 4 or 8 based on availability.
- Verify that the Automatically define pressure reference option is active.
- Expand the Default initial conditions tab and deactivate the Pre-compute flow option.
- Set all the velocity components to 0 and set the Immiscible fluid to Air (if not already set).
-
Leave the remaining options as default and click
Run to launch AcuSolve.
The Run Status dialog opens. Once the run is complete, the status is updated and you can close the dialog.Tip: While AcuSolve is running, right-click on the AcuSolve job in the Run Status dialog and select View Log File to monitor the solution process.
Post-Process the Results with HM-CFD Post
- Once the solution is completed, navigate to the Post ribbon.
- From the menu bar, click .
-
Select the AcuSolve log file in your problem
directory to load the results for post-processing.
The solid and all the surfaces are loaded in the Post Browser.
-
Click the Top face on the View Cube to align the
model.
- Right-click on the z_pos boundary in the Post Browser and select Edit.
- In the display properties microdialog, set the display to volume fraction water.
- Activate the Legend toggle and click to refresh the range.
-
Click , set the Colormap style to
Filled, the Number of colors to
2, and the Colormap Name to Rainbow
Desaturated.
- Click on the guide bar.
-
Click at the bottom of the modeling window to view a live animation of the flow.
-
Save the animation.
- Go to .
- Click on the toolbar.
- Uncheck Include mouse cursor.
- Set the frame rate to 30.
- Click on the toolbar then drag over the area you want to record.
- Click to start recording and the same button to stop recording.
- Name the file and save it.
Summary
In this tutorial, you successfully learned how to set up and solve a multiphase flow problem using HyperMesh CFD and AcuSolve. You started by importing the geometry and then completed the flow set up. Once the volume meshing was done, you specified the field initial conditions for the water column using the zone initialization tool. Once the solution was computed, you post-processed the results using the Post ribbon. Here, you generated an animation of the water flow as it surged once the dam walls were removed.