- •TABLE OF CONTENTS
- •Chapter 1 INTRODUCTION
- •The es-ice Environment
- •es-ice Meshing Capabilities
- •Tutorial Structure
- •Trimming Tutorial Overview
- •Required Files
- •Trimming Tutorial files
- •Automatic 2D Tutorial files
- •Wall Temperature Tutorial files
- •Mesh Replacement Tutorial files
- •Multiple Cylinder Tutorial files
- •Closed-Cycle Tutorial files
- •Sector Tutorial files
- •Two-Stroke Tutorial files
- •Mapping Tutorial files
- •ELSA Tutorial files
- •Chapter 2 SURFACE PREPARATION IN STAR-CCM+
- •Importing and Scaling the Geometry
- •Creating Features
- •Defining Surfaces
- •Remeshing and Exporting the Geometry
- •Chapter 3 GEOMETRY IMPORT AND VALVE WORK
- •Importing the Surfaces
- •Modelling the Valves
- •Saving the Model
- •Chapter 4 MESHING WITH THE TRIMMING METHOD
- •Modifying Special Cell Sets in the Geometry
- •Defining Flow Boundaries
- •Creating the 2D Base Template
- •Creating the 3D Template
- •Trimming the 3D Template to the Geometry
- •Improving cell connectivity
- •Assembling the Trimmed Template
- •Running Star Setup
- •Saving the Model
- •Chapter 5 CREATING AND CHECKING THE MESH
- •Chapter 6 STAR SET-UP in es-ice
- •Load Model
- •Analysis Set-up
- •Valve Lifts
- •Assembly
- •Combustion
- •Initialization
- •Cylinder
- •Port 1 and Port 2
- •Boundary Conditions
- •Cylinder
- •Port and Valve 1
- •Port and Valve 2
- •Global settings
- •Post Set-up
- •Cylinder
- •Port 1 and Port 2
- •Global settings
- •Time Step Control
- •Write Data
- •Saving the Model
- •Chapter 7 STAR SET-UP in pro-STAR
- •Using the es-ice Panel
- •Setting Solution and Output Controls
- •File Writing
- •Chapter 8 RUNNING THE STAR SOLVER
- •Running in Serial Mode
- •Running in Parallel Mode
- •Running in Parallel on Multiple Nodes
- •Running in Batch
- •Restarting the Analysis
- •Chapter 9 POST-PROCESSING: GENERAL TECHNIQUES
- •Creating Plots with the es-ice Graph Tool
- •Calculating Apparent Heat Release
- •Plotting an Indicator Diagram
- •Calculating Global Engine Quantities
- •Creating a Velocity Vector Display
- •Creating an Animation of Fuel Concentration
- •Creating an Animation of Temperature Isosurfaces
- •Chapter 10 USING THE AUTOMATIC 2D TEMPLATE
- •Importing the Geometry Surface
- •Defining Special Cell Sets in the Geometry
- •Modelling the Valves
- •Creating the Automatic 2D Template
- •Refining the 2D Template Around the Injector
- •Adding Features to the Automatic 2D Template
- •Using Detailed Automatic 2D Template Parameters
- •Saving the es-ice Model File
- •Chapter 11 MULTIPLE-CYCLE ANALYSIS
- •Setting Up Multiple Cycles in es-ice
- •Setting Up Multiple Cycles in pro-STAR
- •Chapter 12 HEAT TRANSFER ANALYSIS
- •Resuming the es-ice Model File
- •Mapping Wall Temperature
- •Exporting Wall Heat Transfer Data
- •Saving the es-ice Model File
- •Cycle-averaging Wall Heat Transfer Data
- •Post-processing Wall Heat Transfer Data in pro-STAR
- •Plotting average wall boundary temperatures
- •Plotting average heat transfer coefficients
- •Plotting average near-wall gas temperature at Y-plus=100
- •Mapping Heat Transfer Data to an Abaqus Model via STAR-CCM+
- •Chapter 13 MESH REPLACEMENT
- •Preparing the File Structure
- •Rebuilding the Dense Mesh
- •Creating Ahead Files for the Dense Mesh
- •Defining Mesh Replacements
- •Setting Up Mesh Replacement in pro-STAR
- •Setting up the coarse model
- •Setting up the dense model
- •Chapter 14 MULTIPLE CYLINDERS
- •Resuming the es-ice Model File
- •Making, Cutting and Assembling the Template
- •Setting Up Multiple Cylinders
- •Checking the Computational Mesh
- •STAR Set-Up in es-ice
- •Analysis set-up
- •Assembly
- •Combustion
- •Initialization
- •Boundary Conditions
- •Post Setup
- •Time Step Control
- •Write Data
- •Saving the es-ice Model File
- •Importing the Geometry
- •Generating the Closed-Cycle Polyhedral Mesh
- •Assigning shells to geometry cell sets
- •Specifying General, Events and Cylinder parameters
- •Creating a spray-optimised mesh zone
- •Importing a user intermediate surface
- •Checking the spray-optimised zone
- •Creating the closed-cycle polyhedral mesh
- •Running Star Setup
- •Creating and checking the computational mesh
- •Saving the Model File
- •Chapter 16 DIESEL ENGINE: SECTOR MODEL
- •Importing the Bowl Geometry
- •Defining the Bowl Shape
- •Defining the Fuel Injector
- •Creating the 2D Template
- •Creating the Sector Mesh
- •Creating and Checking the Mesh
- •Saving the Model
- •Chapter 17 DIESEL ENGINE: STAR SET-UP IN es-ice and pro-STAR
- •STAR Set-up in es-ice
- •Load model
- •Analysis setup
- •Assembly
- •Combustion
- •Initialization
- •Boundary conditions
- •Post setup
- •Time step control
- •Write data
- •Saving the Model File
- •STAR Set-up in pro-STAR
- •Using the es-ice Panel
- •Selecting Lagrangian and Liquid Film Modelling
- •Setting up the Fuel Injection Model
- •Setting up the Liquid Film Model
- •Setting up Analysis Controls
- •Writing the Geometry and Problem Files and Saving the Model
- •Chapter 18 DIESEL ENGINE: POST-PROCESSING
- •Creating a Scatter Plot
- •Creating a Spray Droplet Animation
- •Chapter 19 TWO-STROKE ENGINES
- •Importing the Geometry
- •Meshing with the Trimming Method
- •Assigning shells to geometry cell sets
- •Creating the 2D template
- •Creating the 3D template
- •Trimming the 3D template to the geometry
- •Assembling the trimmed template
- •Running Star Setup
- •Checking the mesh
- •STAR Set-up in es-ice
- •Analysis setup
- •Assembly
- •Combustion
- •Initialization
- •Boundary conditions
- •Post setup
- •Time step control
- •Write data
- •Saving the es-ice Model File
- •Chapter 20 MESHING WITH THE MAPPING METHOD
- •Creating the Stub Surface in the Geometry
- •Creating the 2D Base Template
- •Creating the 3D Template
- •General Notes About Edges and Splines
- •Creating Edges and Splines Near the Valve Seat
- •Creating the Remaining Edges and Splines
- •Creating Patches
- •The Mapping Process
- •Chapter 21 IMPROVING THE MAPPED MESH QUALITY
- •Creating Plastered Cells
- •Chapter 22 PISTON MODELING
- •Meshing the Piston with the Shape Piston Method
- •Chapter 23 ELSA SPRAY MODELLING
- •Importing the Bowl Geometry
- •Defining the Bowl Shape
- •Setting the Events and Cylinder Parameters
- •Creating the Spray Zone
- •Creating the Sector Mesh
- •STAR Set-up in es-ice
- •Load model
- •Analysis setup
- •Assembly
- •Combustion
- •Initialization
- •Boundary Conditions
- •Time step control
- •Write data
- •Saving the Model File
- •STAR Set-up in pro-STAR
- •Using the es-ice panel
- •Activating the Lagrangian model
- •Defining the ELSA scalars
- •Setting up the Lagrangian droplets
- •Defining boundary regions and boundary conditions
- •Setting up analysis controls
- •Adding extended data for the ELSA model
- •Writing the Geometry and Problem Files and Saving the Model
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
Chapter 22 PISTON MODELING
Meshing the Piston with the Shape Piston Method
The Shape Piston method is a flexible method that can model very complex piston geometries. All meshing for the piston is handled directly by es-ice and it is currently the only method that allows penetration of cylinder head features into the piston area, such as the deep spark plug in our tutorial example.
Most of the techniques used for the Shape Piston method are identical to those used previously to map the cylinder head, intake port and exhaust stub. Thus, cells may be removed to help the template conform better to the geometry, edges and splines are created for control, patches are created and a similar mapping and projecting process is employed. Just like in the previous mapping process, only the surface of the piston will be mapped and its interior vertices will be moved automatically by es-ice during the analysis.
Before we can begin creating edges, splines and patches, we need to create shells that approximately represent the piston surface. These are called “dummy target shells” as they serve as a target for layers of vertices. The layers will consist of a user-specified key grid plane from the original template. Since this grid plane represents the surface of a continuous layer of cells, it must be relatively smooth. Therefore, the dummy target shells must also be relatively smooth. As a result, piston features such as bowls and crowns should not be included when creating the dummy target shells.
We will first create splines and then create the dummy target shells between these splines:
•Isolate the piston shells in the currently active cell set and make sure that it is in the correct TDC position
•Using Vertex for the Pick mode, create a spline starting from one corner of the intersection between the cylinder wall and symmetry plane to the other corner.
•Choosing as few vertices as possible, click only on vertices where there is a change in angle between the flat surfaces and stay along the symmetry plane line of y=0 whenever possible, as shown in Figure 22-1.
•The dashed line shown in the figure indicates the assumed shape of the dummy target shells.
The curved shape of the spline should also be ignored since flat shells will be created between the knots at a later stage.
Version 4.20 |
22-1 |
PISTON MODELING |
|
|
|
|
|
Chapter 22 |
||||||||||||||
Meshing the Piston with the Shape Piston Method |
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Selected vertices
Figure 22-1 Geometry window: Piston and created spline
Next, create two other splines (copies of the spline we have just created) in both the +y and -y direction so that they extend beyond the piston shells. To do this:
•Create new splines by a translation of their knots in the global cartesian y-direction, as shown in Figure 22-2, with the following commands (assuming the created spline ID is 47):
spline,48,from,47,0,-50,0,1 spline,49,from,47,0,50,0,1
The new splines should extend beyond the piston geometry shells, especially when viewed from the global +z-axis direction (view,0,0,1).
22-2 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
Figure 22-2 Geometry window: Two additional projected splines created
•The dummy target shells can now be created between the two outer splines by typing the following command:
sshell,cursor,1
•Since the cursor is now in pick mode, left-click the two outer splines (splines 48 and 49) with the mouse. Flat shells, our dummy target shells, will then be created between the picked splines and assigned to the next available cell type.
•Clear the three created splines as they are no longer needed
•Isolate the newly created dummy target shells in the currently active cell set, shown in Figure 22-3, and save them to Geometry Cset 2 by clicking the G: piston shells 2 button of the training panel. For the Shape Piston method, es-ice will assume that the shells in Geometry Cset 2 are to be used as the dummy target shells.
Version 4.20 |
22-3 |
PISTON MODELING |
Chapter 22 |
Meshing the Piston with the Shape Piston Method |
|
|
|
Figure 22-3 Geometry window: Dummy target shells saved to Geometry Cset 2
22-4 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
• |
Now click the Piston button in the Select |
|
panel to open the Piston panel |
• |
From the pop-up menu at the top of the |
|
panel, select the Shape piston option. Since |
|
it is critical to minimize skew at TDC when |
|
the piston is closest to the cylinder head, the |
|
default value for Crank angle (deg) can be |
|
left at 360. |
• |
Click the Map piston XYZ button. This |
|
instructs es-ice to calculate and store the |
|
position of the bottom layer of template |
|
vertices at a crank angle of 360 degrees, |
|
assuming the piston was shaped like the |
|
dummy target shells in Geometry Cset 2. |
After this finishes, this vertex spacing information can be applied to a number of cell layers starting from the bottom template cell layer; the distance between these layers can also be specified.
Judging by our 1 millimetre approximate valve curtain height and the geometric height of the piston bowl, we will use ten cell layers to model the piston.
• Another cell layer must be added to account for the “key grid plane” so enter a value of 12 for the Layers to read parameter
•Click the Layer DZ button and enter a value of 1 in the adjacent text box
•Click the Read piston XYZ button to display Figure 22-4
Version 4.20 |
22-5 |
PISTON MODELING |
Chapter 22 |
Meshing the Piston with the Shape Piston Method |
|
|
|
Key Grid
Plane
Piston Mesh
Figure 22-4 Template window: Result after “Read Piston XYZ”
The bottom sixteen layers of the template will now be spaced 1 millimetre apart in the global z-direction, have a vertex spacing defined by the Map piston XYZ function, and have the shape of the dummy target shells. This results in a piston mesh that will match most closely to the combustion dome mesh when the piston is close to the dome, thus minimizing mesh distortion.
Isolate the actual piston shells again in the currently active cell set. The Shape Piston method is the only method that requires the piston to be at its BDC position since the mapping process will eventually be done in the BDC position. With only the piston shells in the currently active cell set, we will gather all piston shell vertices and move them down by the piston stroke length in the global Cartesian system.
•Select Sets > Vset > Newset > Cset, 0 from the pull-down menus (equivalent to command vset,newset,cset)
•Type the following commands:
csys,1 vmod,vset,0,0,-68.5,relative
Similarly to what was done in Chapter 20 with the spark plug (see Figure 20-26), the appropriate template cells need to be deleted so that the piston bowl and crescent conform better to the geometry. The double-plotting feature and other similar techniques should be used as before. An additional technique that needs explanation here is the use of the Plaster button in the Edge or Spline Tool panel. This creates non-hexahedral cells in order to improve mapping to curved geometry surfaces (see also Chapter 20).
22-6 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
To gather the cells involved in the piston bowl mapping, we recommend creating three cell sets:
1.A cell cset that includes the bottom twelve layers (the Layers to read parameter as specified in the Piston panel) (Cset 10)
2.The topmost layer of the above cset labelled as ‘Key grid plane’ in Figure 22-5 (Cset 11)
3.A cell set formed by subtracting Cset 11 from Cset 10 (Cset 12). This is the ‘Piston mesh’ shown in Figure 22-5
•For Cset 10, view the full model (Cset 1) from the +y direction (view,0,1,0,1) and use command Cset,subs,zone to collect the bottom 11 layers. Then use command Cset save 10 to save the set to Cset 10.
•For Cset 11, execute the following commands:
Cset recall 10 Cset invert
Cset subset cset 1 vset newset cset cset recall 10
cset subset vset any vset none
cplot
cset save 11
•For Cset 12, execute the following commands:
Cset reca 10 Cset dele cset 11 cplot
Cset save 12
The above sets are shown in Figure 22-5
Version 4.20 |
22-7 |
PISTON MODELING |
Chapter 22 |
Meshing the Piston with the Shape Piston Method |
|
|
|
Cset 11 (Key grid plane)
Cset 12 (Piston mesh) |
Cset 10 |
Z
Figure 22-5 Template cell sets 10, 11, and 12
After collecting Cset 12, perform the following operations:
•Change to the Geometry window
•Collect the piston shells using command Cset newset type cursor
•Turn Off the Mesh plotting and the Fill options
•Create a spline on the piston crown to capture its features using command spline angle 30
•Change to the Template window
•Change the viewpoint to view,0,0,1,1
•Turn On the Mesh plotting and turn Off the Fill option
•Select Dplot
The resulting view is shown in Figure 22-6
22-8 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
|
cset,delete,zone |
Feature
Figure 22-6 Double plot of Cset 12 together with the piston geometry
•Using command Cset,delete,zone, remove the cells outside the bowl as shown in Figure 22-6. This process could be repeated several times until you get the cells that represent the bowl. Unfortunately, selecting the cells near the bowl feature can be tricky. Three possible cases are illustrated in Figure 22-7. Figure 22-7a is not desirable because the resulting mesh has distorted cells. Generally, the cell configuration in Figure 22-7b and Figure 22-7c should give you good mesh quality. Ideally, you want to get a cell configuration as similar to Figure 22-7c as possible.
•Save this set as Cset 12 again (Cset,save,12). Note that the selected cells to capture the bowl feature could affect the mesh quality near the bowl region.
•Add Cset 11 to Cset 12, and save this as Cset 13 using the following commands:
Cset reca 12 Cset add cset 11 Cset save 13
Version 4.20 |
22-9 |
PISTON MODELING |
|
|
Chapter 22 |
||
Meshing the Piston with the Shape Piston Method |
|
|
|
||
|
|
|
|
|
|
a) |
b) |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
c) Ideal
Figure 22-7 Removing cells outside the bowl feature
Cset 13 is shown in Figure 22-8.
22-10 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
Figure 22-8 Cset 13 obtained by adding Cset 12 (modified) and Cset 11
After gathering all cells to be mapped to the piston bowl, we can improve the ‘stair-step’ mesh resulting from the cell deletion by filling in columns of prismatic cells. This is accomplished by bounding each set of stair-steps by an edge that runs diagonally across some cell faces.
•Click the Diagonal button in the Edge or Spline Tool to allow edges to run diagonally across a cell face
Rectangular cell faces will eventually be cut into two triangular faces, resulting in trimmed cells of type 1, as shown in Appendix A of the STAR-CD V4.10 Meshing User Guide. Note that a single edge can be used for multiple, adjacent stair-steps.
•Click the Plaster button and then left-click on an edge knot to create the necessary cells, in this case prisms, shown in Figure 22-9
•As with most other cursor-pick functions, type q or click on an empty part of the screen to quit this function
•After the plastered cells are created, the edges are no longer useful so they should be cleared with the Clear edge button
Version 4.20 |
22-11 |
PISTON MODELING |
Chapter 22 |
Meshing the Piston with the Shape Piston Method |
|
|
|
Figure 22-9 Template window: Piston bowl cells before (left) and after (right) plastering columns
We also wish to put a crown of plastered cells around the piston bowl so that we do not have to map adjoining side and bottom faces to the smoothly-contoured piston bowl (this could result in cells with excessively large interior angles). The task is accomplished by first deleting some cells to obtain a stair-step feature and then plastering it. The plastering function will automatically create prisms, pyramids, tetrahedrals and trimmed cells to fill the stair-step correctly, as shown in Figure 22-10.
Note that one can also create new cells using the Cdx Tool, as described in Chapter 4, “Improving cell connectivity” of this volume. However, new vertices should not be created or they will be fixed into the grid. Cells created with Cdx should use vertices from the original template created by es-ice.
Figure 22-10 Template window: Piston bowl cells before (left) and after (right) plastering crown cells
Similar things can be done for the crescent cells at the other end of the piston. Edges, splines and patches can then be created and the Edge and Surface mapping processes performed previously can be repeated to map the piston surface, as shown in Figure 22-11, Figure 22-12 and Figure 22-13.
22-12 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
Figure 22-11 Template window: Result before (left) and after (right) plastering crescent cells
Figure 22-12 Template window (left) and Geometry window (right): Edges/patches and splines for Shape Piston
Figure 22-13 Template window: Cmark plot of piston after mapping
Version 4.20 |
22-13 |
PISTON MODELING |
Chapter 22 |
Meshing the Piston with the Shape Piston Method |
|
|
|
Once you are satisfied with the mapped piston, you can update Cset 1 to include the piston cells (Cset 11, bowl cells, crescent cells, and plaster cells). Figure 22-14 illustrates the steps to update Cset 1. In this figure, Cset 14 contains cells from Cset 11, the bowl, crescent, and plaster cells.
cset,add,cset,14
cset,delete,zone
Click update cset 1 button in the training panel
Figure 22-14 Updating Cset 1 to include piston bowl before mapping
Since the spark plug is deep enough to penetrate the piston bowl at TDC, the ‘discontinuous deletion layer’ feature of es-ice should be used. The deletion layer normally occurs at a fixed number of layers above the highest bottom face in the template. By creating attachment boundaries under specified edges, we can create distinct regions. In each region, the deletion layer is a fixed number of cell layers above the highest bottom face. The deletion layer can thus be made discontinuous, allowing the penetration of a cylinder head component into the piston or a piston component into the cylinder head.
The attachment boundaries are created by making edges on the surface of the template and saving them into Eset 11. Eset 11 has been reserved for edges that ‘demerge’ their vertices and all the underlying vertices in the z-direction within the template. This demerging process occurs during the Star Setup operation if the Add cuts to template option is selected.
22-14 |
Version 4.20 |
Chapter 22 |
PISTON MODELING |
|
Meshing the Piston with the Shape Piston Method |
|
|
• |
Isolate the bottom-most edge of the spark |
|
plug, shown in Figure 22-15, and save it in |
|
Eset 11 |
• |
Select the Add cuts to template button in the |
|
Star Setup panel |
Figure 22-15 Template window: Edge saved in Eset 11
The default values used for the other parameters can be found by clicking Used in the Create Template tool. It is recommended to check these parameters, reload the input values by clicking Input and change the parameters if necessary. Clicking on Input is necessary to save the default values.
Version 4.20 |
22-15 |
PISTON MODELING |
Chapter 22 |
Meshing the Piston with the Shape Piston Method |
|
|
|
•BDC cylinder layers in the Cylinder parameters panel by default uses 35 for the piston BDC layers. Since 12 layers were used for piston modelling, we should add these layers back into the stroke count by increasing the parameter to 47.
•Enter 12 for the Bottom small layers parameter to take advantage of the thin spacing in the bottom 12 template cell layers used to model the piston
•Click Ok to accept the new values and close the panel
•In the Create Template panel, click the Make Template button to make a new save_ice file with the new parameters. This file is included with the other tutorial example files.
•Click the Read Template button with the option changed to Modify Template so that the new template information is read and applied without losing the previous work.
22-16 |
Version 4.20 |