|
You can enable the In-Cylinder option in the Dynamic Mesh task page (Figure 11.3.1) and click the Settings... button under Options to display the In-Cylinder Settings dialog box. Specify the Crank Shaft Speed, the Starting Crank Angle, and the Crank Period which are used to convert between flow time and crank angle. You must also specify the time step to use for advancing the solution in terms of crank angle in Crank Angle Step Size. By default, ANSYS FLUENT assumes a Crank Angle Step Size of 0.5 degree.
ANSYS FLUENT provides a built-in function to calculate the piston location as a function of crank angle. If the piston motion is specified using this function, you need to specify the Piston Stroke and Connecting Rod Length. The piston location is calculated using
where is the piston location (0 at top-dead-center (TDC) and at bottom-dead-center (BDC)), is the connecting rod length, is the piston stroke, and is the current crank angle. The current crank angle is calculated from
where is the Starting Crank Angle and is the Crank Shaft Speed.
The Piston Stroke Cutoff and Minimum Valve Lift values are used to control the actual values of the valve lift and piston stroke such that
(11.3-13) | |||
(11.3-14) |
where is the valve lift computed from the appropriate valve profiles, is the Minimum Valve Lift, is the stroke calculated from Equation 11.3-11, and is the Piston Stroke Cutoff. (See Section 11.3.6 on how the Piston Stroke Cutoff is used to control the onset of layering in the cylinder chamber.)
At the bottom of the In-Cylinder Settings dialog box is an Output Controls... button. Click this button to display the In-Cylinder Output Controls dialog box. In the In-Cylinder Output Controls dialog box, you can specify various quantities needed for the calculation of swirl and tumble along with the frequency of writing the output to the chosen file. Swirl is used to describe circulation about the cylinder axis. Tumble flow circulates around an axis perpendicular to the cylinder axis, orthogonal to swirl flow.
The following list describes the In-Cylinder Output Controls dialog box.
In addition to these two options, you can chose to use your own compiled UDF to calculate the swirl center.
For details on using a dynamic mesh UDF, see the separate UDF Manual for information on user-defined functions.
The In-Cylinder specific output controls can also be controlled using the TUI as follows:
Go to \html{\begin{rawhtml}<p><font color="forestgreen">\end{rawhtml}}\mpath{define}\mpath{models}\mpath{dynamic-mesh-controls}\tui{in-cylinder-output?} \html{\begin{rawhtml}</font>\end{rawhtml}} \linebreak Enable in-cylinder output?[no]yes Output Write Frequency[0]10 Cell zone name/id(1)[()]2 Cell zone name/id(1)[()] File Name["/nfs/devvault/data9/ic-sp-output.txt''] Swirl Center Method: (fixed cg user-defined) Option[cg] Swirl Axis x[0] Swirl Axis y[1] Swirl Axis z[0] Tumble X-Axis x[0] Tumble X-Axis y[0] Tumble X-Axis z[1] Tumble Y-Axis x[1] Tumble Y-Axis y[0] Tumble Y-Axis z[0] |
If you select fixed as the choice at Swirl Center Method then you will be prompted to enter the swirl center as follows:
Swirl Center(x) (mm) [0] Swirl Center(y) (mm) [0] Swirl Center(z) (mm) [0] |
Swirl Center UDF[] swirl_udf::libudf |
If the name of the UDF library is libudf then you can omit this and enter in the swirl center UDF[]swirl_udf, otherwise the name of the UDF followed by the UDF library name with symbol:: in between, should be entered.
By filling up the various entries that are needed in the In-Cylinder Output Controls dialog box and pressing the OK button, the swirl and tumble calculations will be written at the chosen frequency to the chosen file while doing the solution run. Details of the quantities written to the file are as follows:
Altogether, eight quantities are written to the output file in the following order, column wise from left to right. A sample file is shown below:
Using the In-Cylinder Option
This section describes the problem setup procedure for an in-cylinder dynamic mesh simulation.
Overview
Consider the 2D in-cylinder example shown in Figure 11.3.19 for a typical pent-roof engine.
In setting up the dynamic mesh model for an in-cylinder problem, you need to consider the following issues:
Defining the Mesh Topology
ANSYS FLUENT requires that you provide an initial volume mesh with the appropriate mesh topology such that the various mesh update methods described in Section 11.3.2 can be used to automatically update the dynamic mesh. However, ANSYS FLUENT does not require you to set up all in-cylinder problems using the same mesh topology. When you generate the mesh for your in-cylinder problem (using GAMBIT or other mesh generation tools), you need to consider the various mesh regions that you can identify as moving, deforming, or stationary, and generate these mesh regions with the appropriate cell shape.
The mesh topology for the example problem in Figure 11.3.19 is shown in Figure 11.3.20, and the corresponding volume mesh is shown in Figure 11.3.21.
Because of the rectilinear motion of the moving surfaces, you can use dynamic layering zones to represent the mesh regions swept out by the moving surfaces. These regions are the regions above the top surfaces of the intake and exhaust valves and above the piston head surface, and must be meshed with quadrilateral or hexahedral cells (as required by the dynamic layering method).
For the chamber region, you need to define a remeshing zone (triangular cells) to accommodate the various positions of the valves in the course of the simulation. In this region, the motion of the boundaries (valves and piston surfaces) is propagated to the interior nodes using the spring-based smoothing method. If the cell quality violates any of the remeshing criteria that you have specified, ANSYS FLUENT will automatically agglomerate these cells and remesh them. Furthermore, ANSYS FLUENT will also remesh the deforming faces (based on the minimum and maximum length scale that you have specified) on the cylinder walls as well as those on the sliding interfaces used to connect the chamber cell zone to the layering zones above the valve surfaces.
For the intake and exhaust port regions, you can use either triangular or quadrilateral cell zones because these zones are not moving or deforming. ANSYS FLUENT will automatically mark these regions as stationary zones and will not apply any mesh motion method on these cell zones.
The dynamic layering regions above the piston and valves are conformal with the adjacent cell zone in the chamber and ports, respectively, so you do not have to use sliding interfaces to connect these cell zones together. However, you need to use sliding interfaces to connect the dynamic layering regions above the valves and the remeshing region in the chamber. This is shown in Figure 11.3.22 with the exhaust valve almost at full extension. Notice that cells on the chamber side of the interface zone are remeshed (i.e., split or merged) as the interface zone opens and closes because of the motion of the exhaust valve.
Defining Motion/Geometry Attributes of Mesh Zones
As the piston moves down from the TDC to the BDC position, you need to expand the remeshing region such that it can accommodate the valves when they are fully extended. To accomplish this, you need to specify the dynamic layering zone adjacent to the piston surface to move with the piston until some specified distance from the TDC position. Beyond this cutoff distance, the motion of the layering zone is stopped and the piston wall is allowed to continue to the BDC position. Because there is relative motion between the piston head surface and the now non-moving dynamic layering zone, cell layers will be added when the ideal layer height criteria is violated. Figures 11.3.23 to 11.3.28 show the sequence of meshes before and after the onset of cell layering when the motion in the layering zone above the piston surface is stopped (shown with = 5 ).
ANSYS FLUENT provides built-in functions to handle the full piston motion and the limited piston motion for the dynamic layering zone above the piston surface. When you define the motion attribute of the dynamic layering zone above the piston surface, you need to use the limited piston motion function ( **piston-limit** in the C.G. Motion UDF/Profile field in the Dynamic Mesh Zones dialog box). Note that you must define the parameters used by these functions before you can use them. In the current example, the piston stroke is 80 mm and the connecting rod length is 140 mm. The piston stroke cutoff is assumed to happen at 25 mm from TDC position. The lift as a function of crank angle between and is shown in Figure 11.3.29 for both limited and full piston motion.
To define the motion of the valves, you need to use profiles that describe the variation of valve lift with crank angle. ANSYS FLUENT expects certain profile fields to be used to define the lift and the crank angle. For example, consider the following simplified profile definition:
((ex-valve 5 point) (angle 0 180 270 360 720) (lift 0.05 0.05 1.8 0.05 0.05)) ((in-valve 5 point) (angle 0 355 440 540 720) (lift 0.05 0.05 2.0 0.05 0.05)) |
ANSYS FLUENT expects the angle and lift fields to define the crank angle and lift variations, respectively. The angle must be specified in degrees and the lift values must be in meters. The actual valve lift profiles that you will use for the current example are shown in Figure 11.3.30. Notice that there is an overlapped period where both the intake and exhaust valves are open.
The valve lift profiles and the built-in functions will describe how each surface moves as a function of crank angle with respect to some reference point. For example, the valve lift is zero when the valve is fully closed and the valve lift is maximum when it is fully open. In order to move the surfaces, ANSYS FLUENT requires that you specify the direction of motion for each surface. ANSYS FLUENT will then update the "center of gravity'' of each surface such that
(11.3-15) |
where is some reference position, is the unit vector in the direction of motion, and is either the valve or the piston distance with respect to the reference position . Note that the unit vector of the direction of motion is specified to point in the negative direction. For example, the correct intake valve axis for this example is , as shown in Figure 11.3.31.
Defining Valve Opening and Closure
ANSYS FLUENT assumes that once you have set up the mesh topology, the mesh topology is unchanged throughout the entire simulation. Therefore, ANSYS FLUENT does not allow you to completely close the valves such that the cells between the valve and the valve seat become degenerate (flat cells) when these surfaces come in contact (removing these flat cells would require the creation of new boundary face zones). To prevent the collapse, you need to define a minimum valve lift and ANSYS FLUENT will automatically stop the motion of the valve when the valve lift is smaller than the minimum valve lift value. The minimum valve lift value can be specified in the In-Cylinder Settings dialog box. For the current example, a minimum valve lift value of 0.1 mm is assumed.
When the valve position is smaller than the minimum valve lift value, it is normal practice to assume that the valve is closed. The actual closing of the valves is accomplished by deleting the sliding interfaces that connect the chamber cell zone to the dynamic layering zones on the valves. The interface zones are then converted to walls to close off the "gaps'' between the valves and the valve seats.
The valve opening is achieved by the reverse process. When the valve lift has reached beyond the minimum valve lift value, the valve is assumed to be open and you can redefine the sliding interfaces such that the chamber zone is now connected to the dynamic layering zones above the valves.