Ansys Forte SectorMesh Tutorial r170
Ansys Forte SectorMesh Tutorial r170
2.1
2.1.1
Data Provided
Files Used in This Tutorial
To retrieve the tutorial files, go to the Reaction Design website:
www.ReactionDesign.com
FOR-TUT-40151-1511-UG-1
Forte 17.0
and access the Forte Release in the Support menu, then select the Tutorial files to
download. The files for this tutorial include:
sandia_bowl_profile.csv: Data describing the piston bowl shape. This profile
can be imported or manually entered in the Profile Editor for use by the Sector
Mesh Generator to define the bowl shape.
InjectionProfile.csv: Data describing the spray injection. The data can be
imported from this file through the User Interface or manually entered once
you reach the Spray node on the Workflow tree through use of the Profile
Editor.
UserCrankAngleOutputs.csv: Table of data that contains crank angles going
from 22 to +20.
Sandia_Engine_LTC_EarlyInj.ftsim: A project file of the completed tutorial,
for verification or comparison of your progress in the tutorial set-up.
The sample files are provided as a download. You have the opportunity to select the
location for the files when you download and unzip or untar the sample files.
2.1.2
2.1.3
Time Estimate
As a guideline for your own simulations, this tutorial is estimated to take 19 minutes
on a dual Intel Xeon processor E5-2690 at 2.90 GHz (8 total cores).
FOR-TUT-40151-1511-UG-1
2.2
All Editor panel options that are not explicitly mentioned in this tutorial should be left at their
default values.
Changed values on any Editor panel do not take effect until you press the Apply button.
2.2.1
FOR-TUT-40151-1511-UG-1
Forte 17.0
5. In the .csv file, the first column is the X-coordinate and the second column is
the Z-coordinate. For this example the bowl is completely flat and the wall of
the bowl is vertical. For this very simple geometry, only three coordinate points
are needed to define the bowl. The profile should look like a flat line in the
Profile Editor display, as shown in Figure 2-3. At the bottom of the Profile
Editor panel in the text entry field under Profile Name, enter a name for the
profile, such as Sandia Bowl Profile. See Figure 2-1. Click Save.
Figure 2-1
Sector Mesh Generator Utility with New Profile and Editor panel
6. Next, in the Sector Mesh Generator, specify the engine parameters, which
are:
Sector Angle = 45 degrees
Bore = 13.97 cm
Stroke = 15.24 cm
Squish = 0.56 cm
Crevice Width = 0.167 cm
7. Select and expand the Include Crevice Block option and set Crevice
Height = 3.72621 cm. Click Apply. A diagram preview of the engine geometry
appears.
FOR-TUT-40151-1511-UG-1
2.2.2
Figure 2-2
8. Now go to the Mesh Parameters node in the SMG tree. Select Topology 3 in
the Topology pull-down menu. If you would like to see the topology template
selected, click the Show Topology button. It should look like that shown in
Figure 2-2.
2.2.3
FOR-TUT-40151-1511-UG-1
Forte 17.0
2.2.4
You can modify settings here to refine or coarsen the mesh, for example, and re-generate, or
you can open (import) the newly created mesh into the sample project into ANSYS Forte.
Alternatively, you can use the Save to File button to export to a mesh file that can later be
imported into ANSYS Forte.
2.2.5
Figure 2-3
FOR-TUT-40151-1511-UG-1
12. If the Sector Mesh Generator window is still open, you can close it.
2.2.6
You can change the display properties of items in the 3-D View by selecting the items in the
Visibility tree and turning ON/OFF their visibility or right-clicking and selecting options from the
context menu, such as display of the mesh or level of opacity.
You can respond Yes or No to the View chemistry set information? prompt. A Yes response
displays the chemistry set file in a viewer.
2. Models Transport: For this node, keep all the default settings.
3. Models Spray Model: Since this is a direct-injection case, turn ON (check)
Spray Model to display its icon bar (action bar) in the Editor panel.
FOR-TUT-40151-1511-UG-1
Forte 17.0
a. For the basic Spray Properties, keep Radius of Influence Model for the
Droplet Collision Model and set 0.2 cm as the Radius of Influence. The
Use Vaporization Model option should be ON (checked, its default
value).
b. Create Injector: Click Spray Model in the Workflow tree. The icon bar
provides two spray-injector options: Hollow Cone or Solid Cone. For the
diesel injector, click the Solid Cone
icon. In the dialog that opens,
name the Spray Model as Injector 1. This opens another icon bar and
Editor panel for the new solid-cone spray model. In the Editor panel,
configure the model parameters for the solid-cone spray model.
Under the Injection Type, select Pulsed Injection and change the
Parcel Specification to Number Of Parcels and set Injected Parcel
Count = 4,000.
Keep default values for Droplet Size Distribution and, under the
Solid Cone Breakup Model Settings, the KH Model Constants, RT
Model Constants, and Use Gas-Jet Model.
Click Apply.
10
FOR-TUT-40151-1511-UG-1
Click Apply. You can see the nozzle appear at the top of the geometry.
(You may wish to make the Geometry less opaque by right-clicking the
Geometry item and selecting a lower value for Opacity, or change the
color of the nozzle itself, both in the Visibility tree on the right side, to
make the nozzle easier to see in the interior.)
d. Create an Injection: In the Workflow tree, click Injector 1 again and click
the New Injection
icon on the Injector 1 icon bar and name the
injection Injection 1. The new Injection item appears in the Workflow tree,
and the Editor panel and the icon bar transform to allow specification of the
injection properties. In the Editor panel, keep the Pulsed Injection Type
(default), select Crank Angle as the Timing option and then specify the
Start of injection and Duration of injection as 22.5 and 7.75 degrees
ATDC, respectively. Set the Total Injected Mass = 0.0535 g. Click Apply.
e. Injection Profile: Click the Create new... option in the profile selection
menu next to Velocity Profile, then click the pencil icon to open a new
window with the Profile Editor. The new Injection Profile item appears in
the Workflow tree; also the Editor panel and the icon bar transform to the
new Injection Profile. In the Profile Editor window, make sure all the Units
are set to None for both columns (the dimensionless data is automatically
scaled within ANSYS Forte to match the mass and duration of injection)
and click the Load CSV button at the bottom of the panel (you may have to
expand the panel size to see the button). Navigate to the
InjectionProfile.csv file (see Section 2.1). Select Comma as the Column
delimiter and turn ON Read Column Titles and load the profile file.
Alternatively, you can type in the Injection Profile data in the table on the
Editor panel or copy and paste from a spreadsheet or 3rd-party editor. Go
to Profile Name at the bottom-left of the panel and name the new profile
Injection Profile. Once the data is entered, click Save in the Profile Editor
and then click Apply in the ANSYS Forte Editor panel.
FOR-TUT-40151-1511-UG-1
11
Forte 17.0
Figure 2-4
4. Models Soot Model: Turn ON the Soot Model. This creates the Settings
item. In the Editor panel, accept all the defaults.
5. Boundary Conditions: Under Boundary Conditions in the Workflow tree,
specify the Boundary conditions in the Editor panels associated with each of
the four boundary conditions created by importing the mesh. By default the
Wall Model for all of the wall boundaries will be set to Law of the Wall. Leave
this default setting as well as the default check box that turns ON heat transfer
to the wall.
Boundary Conditions Piston: Set Piston Temperature = 500.0 K. Turn
ON Wall Motion with Motion Type set to Slider Crank. The other
parameters should be:
Stroke = 15.24
Connecting Rod Length = 30.48
Bore = 13.97 (pre-determined by the Sector Mesh Generator)
Accept the defaults of Piston is Offset, = unchecked (OFF) and Vertices
to Transform = All.
For Reference Frame, accept the default Global Origin and Direction
parameters.
12
FOR-TUT-40151-1511-UG-1
Click Apply.
Boundary Conditions Periodicity: Set the Sector Angle = 45 degrees,
and multi-select both Periodic A and Periodic B boundaries on which to
apply this boundary condition. Click Apply.
Boundary Conditions Head: Set Head Temperature = 470.0 K. Click
Apply.
Boundary Conditions Liner: Set Liner Temperature = 420.0 K. Click
Apply.
6. Initial Conditions Region 1 Initialization: Specify the parameters for the initial
conditions as follows:
Composition: Select Constant and then Create New and click the Pencil
icon and to launch the Composition Editor. Set these parameters: set
the Composition = Mole Fraction (not the default Mass Fraction). Then
click the Add Species button and select both o2 and n2 to add. When
both o2 and n2 are in the Species column in the Composition table, enter
0.126 for the o2 Fraction and 0.874 for n2. Name this Composition 1 in
the text field at the bottom of the Gas Mixture window. Click Save and
close the Composition Editor.
Temperature = 362.0 K
Pressure = 2.215 bar (Note: This is not the default unit.)
Turbulence: Select Constant, and then in the pull-down menu for the
initial Turbulence parameters, select Turbulent Kinetic Energy and
Length Scale as the way in which we will specify the initial turbulence. For
this option we provide an explicit value for the initial turbulent kinetic
energy, but use a length-scale approximation to determine the turbulence
dissipation energy. Use these values.
Turbulent Kinetic Energy = 10,000cm2/sec2
Turbulent Length Scale = 1.0 cm
Velocity: Select Engine Swirl in the Velocity pull-down and then specify
the swirl profile parameters:
FOR-TUT-40151-1511-UG-1
13
Forte 17.0
If you want to estimate the turbulent kinetic energy (TKE) as a fraction of the piston speed, let
the fraction be F and stroke is ms-1, the value you would enter then would be
)2 [m2 /s2 ]
14
FOR-TUT-40151-1511-UG-1
Also check the box next to User Defined Crank Angle Outputs and then
import the UserCrankAngleOutputs.csv table of data using the Profile
Editor that contains crank angles going from 22 to +20, with increment 1,
units of Angle and Degree, and file named UserCrankAngleOutputs.
This assures that we get more resolved outputs around the spray, without
requiring the same resolution throughout the simulation.
For Spatially Resolved Species, move these species to the Selection
list: nc7h16, o2, n2, co2, h2o, co, no, and no2. Click Apply.
11. Output Controls Spatially Averaged:
For the Spatially Averaged Output Control, select the Crank Angle
option and specify Output Every = 1.0 degree.
For Spatially Averaged Species, select all and move all species to the
Selection list. Click Apply.
12. Output Controls Restart Data: In the Workflow tree, check the box for
Restart Data and then in the Restart panel, check the box that says, Write
Restart File at Last Simulation Step. Uncheck (turn OFF) any other boxes
on the panel. Click Apply.
2.2.6.1
FOR-TUT-40151-1511-UG-1
15
Forte 17.0
Figure 2-5
A new window will appear, with a list of variables that can be plotted on the left
panel in the window (as described in the ANSYS Forte User Guide). To select
one or more variables to plot, check the boxes in front of them in the Monitor
Data panel.
18. When a run is finished, the Status becomes Complete in the Run panel of the
man Simulate Interface window. In the Editor Panel, use the Harvest/
Visualize button to save the harvested results as a .ftres file. Note that
multiple runs can be selected for this purpose.
19. ANSYS Forte Visualizer will be loaded automatically following the Visualize
step unless the Harvest only option was checked. You can follow the ANSYS
Forte User Guide Visualization chapter to post-process the results.
20. You can save the project at this point using the File > Save command.
Rename the project to avoid overwriting the original .ftsim file.
2.2.6.2
Problem Results
1. When a run is finished, the Status becomes Complete in the Run panel of the
main Simulation interface window. In the Monitor Panel, use the Harvest/
Visualize button to save the harvested results as a .ftres file. Note that
multiple runs can be selected for this purpose.
2. ANSYS Forte Visualizer will be loaded automatically following the Harvest
Results step if the Launch Visualizer after Harvest option is checked. You
can follow the ANSYS Forte User Guide Visualization chapter to post-process
the results.
16
FOR-TUT-40151-1511-UG-1
2.3
Reference
This case models the engine experiment from the following paper:
Singh, S., Reitz, R. D., and Musculus, M. P. B. Comparison of the characteristic time
(CTC), representative interactive flamelet (RIF), and direct integration with detailed
chemistry models against optical diagnostic data for multi-mode combustion in a
heavy-duty DI diesel engine. SAE paper 2006-01-0055, 2006.
FOR-TUT-40151-1511-UG-1
17
Forte 17.0
18
FOR-TUT-40151-1511-UG-1