Professional Documents
Culture Documents
Problem Description
The geometry representing a HPDC will be built using existing STL files and FLOW-3D Cast primitives. Because there is symmetry
only half of the simulation will be run to save on runtime. Properties will be defined for each component. This exercise can be setup
in FLOW-3D Cast Extended and FLOW-3D Cast Advanced. To see a list of the Physical Models that can be used for each version
go to the Manual, Theory, and then Auxiliary Models.
Problem Specification
All STL files associated with this exercise are in centimeters.
The shot sleeve analysis will be done later in the exercise. The units in FLOW-3D Cast are in SI (kilograms-meters-seconds) and
temperature default is . For this exercise we will use but the temperature units can be changed to Kelvin by selecting the Units
Temperature Kelvin. This is important to know ahead of time, for material property definitions and imported geometry.
Exercise Objectives
The objective of this exercise is to do a analysis of the filling. It will begin with two different designs; different gate types and
different runner systems. Five simulations will be run to determine the best runner system, ensure shot sleeve parameters prevent or
reduce air entrapment, and determine the location of overflows. The simulations will be as follows:
1. Run two simulations one for each runner system. The runner systems will be fed from runner through gates into part to
analyze the flow pattern. One case has multiple gates so we will also check to see if the gates feed at same time. No
shot sleeve for this analysis.
2. Determine which runner system is better.
3. Run two simulations with the full shot sleeve into casting to determine the location of overflows and best shot sleeve
analysis.
4. Add overflows and run the entire filling process including heat transfer and early solidification.
Simulation Manager
Creating a Workspace and Simulation File
When FLOW-3D Cast is opened, the Simulation Manager tab is presented. This is where the user can create, save, copy, delete, and
queue simulations to run. This tab also displays useful diagnostic information on simulations that are running or have been previously
run.
Simulations are grouped into Workspaces, which are like folders and may represent individual projects or users of the program. For
example, simulations related to the same design project can be organized into one workspace for ease of their setup. All simulations
in a workspace can be run sequentially at a click of the mouse.
If the FLOW-3D Cast interface is not open, open it by double-clicking on the FLOW-3D Cast icon, on your desktop.
Note
1. Open the geometry .stl files in netfabb Basic to visually see if there are any errors that were created during process of
converting to stl.
1. netfabb Basic can be installed from the Internet.
2. Once installed, select the start menu click on netfabb Basic.
3. Register the software.
4. Select the Folder icon, to bring up Explorer.
5. Select the Browse button, browse to C:\Flow3d\CAST4\gui\stl_lib\HPDC Exercise and select the Left-Cover.stl. An
error appears as soon as the part is displayed as seen in Figure 5.
2. Fix stl file(s).
1. To fix the part select the red plus icon, located along the top.
2. Select the Automatic repair button in the Status tab. In the status tab you will see the errors found in netfabb Basic as
seen in Figure 6.
3. Select the Execute button.
4. Select the Apply repair button in the Status tab.
5. A dialog box will open asking if you want to save the old part, select the Remove old part button.
6. Right-click on the Left-Cover(Repaired)(100%) and select Export part as STL. A dialog will open to prompting
location to save stl file. The stl files will be renamed Left-Cover(Repaired).
7. Select Save button. A new dialog will open prompting about optimizing the tolerance.
8. Leave the tolerance default and select the Optimize button.
9. Select the Export button to finish saving the fixed stl file. Netfabb Basic found 2 invalid orientations, 5 holes, and 15
border edges.
3. Repeat steps 1-2 for Runner-1.stl, Runner-2.stl, Top-Overflow.stl, Bottom-Overflow.stl, and Lifter-Overflow.stl.
Model Setup For Runner System 1
The rest of the setup will take place in the Model Setup tab. The buttons on the left hand side represent a process flow which will be
followed. The icons on the right are tools such as region pointers, baffles, and valves.
1. Select the Time Controls button. This is where the Finish time and conditions will be set. Notice the button itself highlights in
blue this indicates it is open and a tab appears below with the name of the button.
2. Enter 2 in the dialog box next to Finish time.
3. Select the Fill Fraction as finish condition. This finish condition will terminate the simulation, when all cells have at least 1%
of fluid in them and are surrounded by cells with fluid or when the finish time is reached whichever comes first.
Defining Models and Numerics
Defining Models
In this section we will add air entrainment, surface defects, cavitation potential, viscosity, turbulence, and gravity.
Numeric Options
There are some numerics that need to be set in order to run an HPDC simulation. To address splashing and compressibility some
limited compressibility will be added. This means that although the fluid is incompressible we will allow pressure waves to travel
through the fluid so that its not so mathematically stiff. A realistic number will both improve the realism of the simulation and will
improve convergence, reducing the simulation run time. To improve the numerics an initial time step will help. To speed up runtime
with minor losses, an implicit advection scheme will be used along with a velocity threshold that will use implicit methods for
velocity higher than threshold.
4. Advection
1. Ensure the One fluid, free surface option is activated.
5. Pressure Solver
1. Ensure the GMRES method option is activated.
2. Select the Manual (compressibility) option under Limited compressibility. The default value is sufficient.
Stl files can be dragged and dropped into the display or can be added via the Graphical User Interface (GUI). For this example we
will use a combination of the two. All of the geometry for all of the simulations will be loaded or created. The reason we will do this
is because there are options available to disable and enable geometry for each simulation. This will save time because we can make a
copy of a simulation and then deactivate/activate geometry without having to delete and add new geometry.
1. Add Mold from Remaining Space to create a mold automatically around the casting.
1. Select the Geometry button.
2. Select the Add geometry drop-down menu.
3. Select the Mold from Remaining Space. This will add solid volume the size of the mesh. Each time the mesh extents
are changed so will the extents of the solid.
2. Drag and drop the Left-Cover(Repaired).stl and Runner-1.stl.
1. In Windows explorer, browse to C:\flow3d\Cast4\gui\stl_lib\HPDC Exercise.
2. Select Left-Cover(Repaired).stl and Runner-1.stl then drag and drop into FLOW-3D Cast Display window.
3. A dialog will open asking if you would like to copy the stl files to your simulation directory, select the Yes button.
3. Zoom in by rolling the mouse wheel away from you.
4. Add the rest of the stl files through the GUI.
1. Select the drop-down menu next to Add Geometry. A list of Geometry types are given. Geometry types are used to
keep organization of parts and activate models associated with the geometry types. The following is a brief description
of the types of geometry that will be used for this exercise. The rest of the geometry type definitions can be found in
the manual in the Geometry Panel.
Mold from Remaining Space-This will create a solid box the size of the mesh. If the mesh extents change so will the
extents of the solid box.
Casting Part-Is considered a hole that will be cut into a mold/die. This is the part that will be created from the casting
process. These must be associated with a solid component specifically the mold/die. If the full die inserts were being
defined as stl files (not using Remaining space), then this option would not be used but instead the stl files would be
added to Mold. For this exercise the Default from Remaining Space was used.
Moving-Is a solid geometry that will have motion and material properties added to it. More than 1 component can be
assigned to this geometry type and have different properties as long as they are defined as separate components when
imported or created.
2. Select the Casting Part. An Add Casting Part dialog opens. Several options are available in this dialog; assignment to
components, definition of the geometry (stl or primitive), transformations.
3. Select the check box next to Component 1: Remaining Space Mold. This will cut the stl from the Remaining Space
Mold.
4. Select the Add button and Window Explorer will open within the simulation directory. Browse to
C:\flow3d\Cast4\gui\stl_lib\HPDC Exercise.
5. Select the Lifter-Overflow.stl, hold the ctrl key on the keyboard and then select Bottom-Overflow.stl, Top-Overflow,
and Runner-2.stl.
6. Select the Open button.
7. Select check box next to Copy to simulation folder to copy the stl files.
8. Add 0.01 under Global scaling to scale from centimeters to meters. The stl files were given in centimeters from
Problem Specification and needed to be converted to meters.
5. Expand the trees under Geometry type for Unused, Casting Part, and Mold.
6. Assign Unused stl files to Casting Part.
1. Select Runner-1 under Unused and hold left mouse down, drag, and drop under Casting Part.
2. A Reassign Casting Part dialog will open. Select the check box next to Component 1: Remaining Space Mold.
3. Select the OK button.
4. Right-click on Left-Cover under Unused Assign to another type Casting Part.
5. Repeat 5b-5c.
When performing transformations keep in mind they need to follow this order: Scaling, Rotation, and Translation.
Create Shot Sleeve and Piston Geometry Using Primitives and Assign Geometry Type
The first simulation will only have the Runner-1.stl and the Left- Cover.stl. So all the other geometry, except Mold type can be
disabled. The Mold type will be defined once the meshing has been created. Disabled means the stl files will not be used for this
simulation.
1. Under Moving unselect the check box next to Piston and Piston.
2. Under Casting Part unselect Shot Sleeve, Top-Overflow, Bottom-Overflow, Runner-2, and Lifter-Overflow.
Defining Solid Geometry Properties
For this simulation since heat transfer will not be activated, the die properties are not important. Remember what we are trying to get
out of the simulation and that is which runner/gate system is better. The properties will be added later once the runner system has
been selected, piston velocity parameters are good, and the overflows have been placed.
Meshing
For this part of the exercise only one mesh block will be used to save on computational time. The placement of the mesh will
encompass a portion of the thickest section of the runner where there wont be high gradients across it around the rest of the part.
Meshing is iterative so we will mesh, FAVORize, and repeat until the geometry and flow regions are well resolved. A mesh fit to
enabled/visible geometry will be adjusted and fixed points will be added if necessary to resolve geometry. The geometry will be
FAVORized to see if the resolution is enough to capture the geometry and if not the cell size will be adjusted to ensure aspect ratio
among the x-y-z-directions of the mesh blocks is < 3.
Rule of Thumb
Note
Since heat transfer is not on, we can move the mesh extents closer to the part.
2. Select a 2-D image in the display window either , and zoom in using the roller mouse scrolling
away to bring the geometry closer. The right mouse click is for translation.
3. The top gridline is already selected so enter the value of -0.1 under Change Location.
4. Select bottom Gridline and enter the value of 0 under Change Location. Only half of the geometry will be modeled
because the part is symmetric.
5. Select the y radio button under Direction and repeat above steps to set the extents in y direction to -0.16 and 0.06.
6. Select the z radio button under Direction and repeat above steps to set the extents in z direction to -0.016 and 0.006.
Note
The x radio button for Direction is selected so we will adjust the x extents of mesh first. We can use the slider to adjust the mesh
extents and then adjust values to get rounded numbers or we can just add values instead.These values can be adjusted within the text
box by adding or subtracting. The gridlines are always in ascending order.
3. Adjust cell size until aspect ratio of each mesh block 1. This means the ratio between , , and are equal to 1.
Whenever the mesh extents are adjusted so is the cell size, so this will have to be adjusted as well.
1. Select the Mesh blocks tab.
2. Select the radio button next to Size of cells. The value of 0.0008 that we entered earlier is still valid.
3. Select the Automesh button.
4. Select the left-mouse button in display and move to rotate part.
5. Select the Mesh menu above the display Flow Mesh View Mode Grid Lines.
4. FAVORize geometry. FAVORize is used to determine if the mesh has adequately resolved the geometry or the open regions
of flow. If the details are not resolved accurately then fixed points and/or smaller mesh cell size might be necessary.
1. Before we render, we want to be able to see the geometry, not the mesh. Hide the mesh by selecting Mesh menu above
display Flow Mesh View Mode Outline.
2. Above the display select the Eye icon, . A dialog box will open.
3. Select Open volume from drop-down next to Geometry surface to view open volume.
4. Select the Render button. The results can be seen in the display window. Rotate the part around and if you want a
point of rotation you can select the Ctrl button on the keyboard then left-click where you would like the pivot. A gray
flat oval shape will appear in that location.Now when holding left mouse key down and moving the mouse the rotation
will occur at that pivot point. To turn off or hide the pivot point select you can look at the options available in the View
menu Pivot Point Options.
5. The geometry looks well resolved and the FAVOR checker found no errors during FAVORization. For more
information on FAVOR checking refer to Manual section, FAVOR Checking.
6. Select Close button to close FAVORize dialog.
Rule of Thumb
In meshing it is necessary to refine the mesh until the geometry (solid/open) is adequately resolved.
Boundary Conditions
The Filling will begin at the larger Runner section which aligns with the mesh. A velocity boundary condition will be applied at the
lower y mesh plane. Symmetry boundaries will be used for the rest of the boundary conditions since there is no heat transfer or
friction along the mesh planes. The default is symmetry so only the minimum y boundary needs to be defined. Since cavitation will
occur at about 40 m/s we will use 35 m/s as our gate velocity for fast shot. We will use this value to obtain the velocity at runner by
using the continuity equation.
V 1 is the gate velocity V 2 is the runner velocity A 1 of the gates are A 2 of runner
Plugging in values of area given in the Problem Specification we get a value of 4.83.
1. Define boundaries.
1. Select the Boundary Conditions button.
2. Select the Y Min from drop-down next to Boundary.
3. Select the radio button next to Metal. This simulation is 1 fluid simulation so metal is what we want entering the
domain.
4. Select Specified Velocity from drop-down that shows Symmetry.
5. Next to Y Velocity under Velocity enter the velocity value 4.83.
Metal properties
log(P)=10.917-16211/(T)
Where:
P=10 (10.917-16211/T)
If we use the pouring temperature we get a small pressure of the order 1e-7. This is close to zero, add 0 next to
Cavitation pressure in the Liquid tab in Metal Properties dialog.
Tracers are used to visualize the flow. If fluid passes through the flux plane, the fluid is colored. The colors are automatically selected
and when two streams come together it is easy to see the mixture. Since there are two gates we will add two of them. When adding
tracers make sure you add them sequentially along a path. You dont want to have Tracer 7 next to Tracer 1 because a color gradient
between the two will be large and confusing mixing with the other Tracers.
1. Create a baffle.
1. To hide the die, select it by double clicking on it in the display window it should turn green. Right-click and select
Hide.
2. Select the option for xy plane by selecting the z icon, ( or ) above display.
3. Zoom in on gate location.
4. Place cursor in display window and then select and hold the shift key on the keyboard. You will see cross-hairs. Keep
holding the shift key and move mouse to gate, where you want to place the tracer, right-click with mouse. A dialog
opens with icons and numbers. The numbers indicate the location the point passes perpendicular to solid surfaces. To
see what the icons are you can move the cursor over the icons it will tell you what they are. We want the orange baffle
icon, along the x.
5. Select the first baffle orange icon, . A baffle has been placed in this location with the extents of the mesh. We need
to adjust it.
2. Define baffle as a tracer and limit the extents to upper gate.
1. Select the baffle orange icon, located on the right-hand side of the GUI. A Baffles dialog will open on the right-
hand side of the GUI. All of these dialog boxes are detachable including the ones on the right.
2. We have created a baffle but we need to make it a flux plane and a tracer. Select the check box next to Flux surface.
3. Select the check box next to Enable Tracers.
4. We need to limit the extents of the tracer so we can add another in the same location but only across the top gate. To
do this select the Shape tab.
5. Enter 0 next to Y Low.
3. Create tracer at lower gate at same location.
1. Select New button in Baffles dialog.
2. Name it Upper Gate.
3. Select the check box next to Flux Surface.
4. Select the check box next to Enabled tracer.
5. Select the Lower Gate in the list.
6. Select the Location tab.
7. Select the value in box next to the selected radio button for X Coordinate.
8. Right-click on the value and select Copy.
9. Select Upper Gate in the list.
10. Select the box next to selected radio button for X Coordinate.
11. Right-click and select Paste.
12. Select the Shape tab.
13. Enter 0 next to Y High to limit the tracer to upper gate.
Data Output
To reduce the results file, selected data will be selected and an output basis of fill fraction will be used as the interval of the spatial
output data. By selecting fill fraction and leaving the default the output frequency will be every 1% filled.
Selected data saves on computational time and size of file because it is outputting only selected data at that frequency as opposed to
restart data which sends all available data to output.t
Copy Simulation
The copied simulation may need to be modified to allow us to run with runner system 2. The geometry needs to be changed, tracers
need to be removed since there is only 1 gate, and velocity needs to be recalculated since the gate area is different than the first one.
Air Entrainment or gas porosity: flow porosity or air packets due to turbulence, jetting of flow, and/or improper venting.
Surface defects: laminations that form when cooler flows collide, usually at the end of the fill near the ends of ribs or bosses.
Oxide formation: defects formed during air exposure.
Cavitation or washout: this occurs when cavitation pressure drops and the flow circulation causes erosion.
4. Select the Show portfolio icon, this will show simulations in your Simulation
Manager.
5. Select the HPDC_Filling_Gate_Location_2 in the portfolio.
6. Select the OK button.
3. Turn off mesh.
1. Select the Mesh list tab.
2. Uncheck the boxes next to Block 1 for Case 1 and Case 2.
4. Change data from restart to selected data.
1. In the Time section, select from drop-down under Timeline Selected for all cases. Whichever case is selected it will use
that timeline for all the cases. Since Case 1 took twice as long we will use it. The isosurface will disappear in the
window until we define an isosurface from selected data.
5. Create isosurfaces and viewports.
1. Select the Isosurface list tab.
2. Select Case 1.
3. Create a new iso-surface by selecting the Create button.
4. A Create Isosurface dialog opens. Expand all trees.
5. Select check box under Case 1 and next to Block 1.
6. Select check box under Case 2 and next to Block 1.
7. Select the drop-down menu next to Surface under Creation and select Fluid_selected.
8. Select the drop-down menu under Color next to Color by and select volume_fraction_of_entrained_air_Selected.
9. Select the Create button.
10. Repeat steps 3e-i to create second iso-surface for Case 1 and Case 2.
11. The isosurfaces for Case 2 may not show up in the list but they have been created.
6. Modify background and viewports.
1. Right-click in display select Viewports layout 4 Equal.
2. Right-click in display select Default print colors.
3. Select the first iso-surface Isosurface - 2 under Case 1, you should see a blue dot indicating it has been selected.
4. Select the eye icon with boxes below it, . This will allow us to determine locations of surface areas.
5. A dialog box will open showing all the viewports. The green boxes indicate the visibility of the colored iso-surface.
For this isosurface we want it to be in the upper left-hand corner. To unselect boxes, select until only upper left hand
box is green.
6. Repeat for the next iso-surface Isosurface - 3 for Case 1 and ensure it is in the lower left-hand corner.
7. Repeat for Case 2 iso-surfaces placing them in upper right-hand corner and lower right-hand corner. All iso-surfaces
will be colored by air entrainment.
From the images it appears that Case 2 has less defects. Looking at the flip book by selecting the play button in the time window:
Case 1 shows jetting of two streams from the gates that hit the opposite end of the part and then around the top and bottom going
across both the front and back of the part. Typically for bosses you want the flow to go across the back and then flow back around.
The jetting streams cause turbulence increasing air entrainment and even though Case 1 ran slower than Case 2, the turbulence and
multiple stream fronts causes higher concentration and locations of defects.
The user can create an animation of this by selecting the camera icon, and follow directions.
Further improvements on the runner system would also help reduce the initial non-filled runner system. Other runner designs will not
be looked at for exercise.
Enable/Disable Geometry
Copy Simulation
The post-processing will compare the different shot sleeve profiles to determine which profile is the better one. The simulation will
then be run with overflows and activation of heat transfer, solidification.
3. Select the Show portfolio icon, this will show simulations in your Simulation
Manager.
4. Select the Shot_Sleeve_Analysis_Cycloid.
5. Repeat steps 2-8 from Thomes until it matches image below.
10. Below are the comparisons at the end of fill of air entrainment, surface defect concentration, and cavitation potential.
As can be seen the Cycloids shot sleeve analysis provides less defects. However, when looking at the wave fronts entering the
runner system both cases have rolling waves but the cycloid is much greater. Running the simulations with the full shot sleeve would
have eliminated the extreme wavefront seen. Since the exercise is already long we will not spend the time to run the full shot sleeve.
The parts requirement is that it needs to be flat so the less defects the better. For this case we will chose the Cycloid case. Overflows
at top and bottom along with across from gate will be added to capture the air entrainment and surface defects.
The thermal boundary layer is calculated using a one-dimensional semi-infinite boundary layer approximation and is
determined from the following equation:
(1)
Where:
is the solid density times the solid specific heat at constant pressure
The derivation is left to the user. For this exercise a calculator from GUI will be used.
12. Define the heat transfer coefficient between the metal and die, and piston and metal.
Note
Heat transfer coefficients are estimates. The user will have to fine tune these values and compare with what they are
seeing in the simulation to thermal imaging.
13. Define output variables.
The following results show that the overflows are doing their job.
The user should also look at early solidification and cavitation potential. An animation showing the flow patterns will also determine
if the runner system needs to be improved.
(2)
(3)
Eliminating and solving for mass flow rate we get the following:
(4)
The equation just derived assumes incompressible and frictionless flow, so we need to add some compressibility.
(5)
Where:
is the discharge coefficient,
is the area,
is the compressibility factor, and
is the density.
For the valve model, the coefficients are lumped together and a total loss coefficient is defined as:
(6)
(7)
Where:
is the external pressure outside of the domain (typically atmospheric pressure).
The discharge coefficient is a number between 0 and 1. Remember the larger the discharge coefficient, the less the losses. For an
orifice a typical value is 0.6. We will use 0.5 as a discharge coefficient Cd. The compressibility factor Y for air at standard pressure
and temperature is roughly 1. The compressibility factor can be found from a compressibility chart. The density of air should be
calculated using the ideal gas law with temperature of die and atmosphere pressure.
The valve model needs a point location which will be determined in the following steps. The vents for this problem are located in the
top-overflow and the bottom-overflow along the center. The cross-sectional area of the vents are 4.84 -6 .
1. Select one of the x, y, or z icons ( , , )above display for a 2-D view. This is important
because the interactive valve toolbar will select the first surface and last surface and any surfaces in between that it
encounters. The user will then have the option to chose where inbetweeen/on the surfaces they would like to place the
valves/vents.
2. Hold shift-key on keyboard and right-click at valve location.
3. There are two points showing the first and last surfaces which belong to the die. Select the left hand drop-down and
select the second from the list point. This is the first surface after the die surface which is what we want. The valve
needs to be located within the overflow.
4. Select the second point, right of the slider, and select the third point from the top this will be the surface before the end
of the die surface.
5. Select the valve green icon, . This will create a green probe showing the location of the valve.
3. Define vent loss coefficient and external pressure.
1. Select the green icon, on the right-hand side of the GUI.
2. Rename Top Vent.
3. Calculate the loss coefficient:
(8)
Where:
Now that this tutorial is complete, you can do a solidification simulation by creating a restart simulation from the filling simulation.
FLOW-3D and TruVOF are registered trademarks in the USA and other countries.