14.1. KeyGrid Setup in Solver

In the Properties window of the ICE Solver Setup cell select Yes from the KeyGrid drop-down list.

An additional option is now seen under Keygrid, Reset Mesh on Keygrid Mesh Failure. As this is enabled by default, it will reset the KeyGrid mesh if it fails and to generate it again. The Crank Angles property is now displayed. Click Select KeyGrid Angles to open the Crank Angle Selection dialog box.

Active Angles

contains a list of crank angles which will be considered for update. These will be the ones you have set for keygrid. The list displays the information about the crank angle:

  • Description: One crank angle will be added by default, Initial. You can edit the Description of the other crank angles you add.

  • Status: This column shows the current status of the crank angle. For example, it could be Mesh Generated, Not Generated, Geometry Failed, or Mesh Failed.

  • Skewness displays the skewness of the mesh.

  • No of Elements displays the number of elements of the generated mesh.

Inactive Angles

contains a list of crank angles which have been removed from the list of Active Angles with the help of the arrow buttons.

Add Angle

will open the Add Angle dialog box.

Add Angle Option

To add a single angle select Single from the Add Angle Option drop-down list. Multiple angles can be added by selecting Multiple .

Angle

When you select Single you can enter the specific angle in the Angle text box.

Start Angle, Interval, Number of Angles

When you select Multiple from the Add Angle Option drop-down list, the multiple angles will be created by entering values for Start Angle, Interval and Number of Angles.

Description

You can edit the Description.

Topology Option

You can select Full for ICE topology, or Single for single zone topology, from the Topology Option drop-down list. This will generate meshes with your choice of topology in KeyGrid. Default choice will be the topology of the default angle.

Decompose Chamber

You can select Yes, No, or Program Controlled. For more information see chapter Cold Flow Simulation: Preparing the Geometry.

Mesh Type

You can choose Medium, Fine, or Coarse from the Mesh Type drop-down list.

Reference Size

You can edit the Reference Size value. This will change the other dependent mesh control parameters.

Number of Inflation Layers

You can edit the default value.

Inflation in Chamber

This is set to No by default. You can change this if required.

Local Refinement Around Spark

This option will be present only when spark is defined in a combustion simulation. This option will be disabled if Multiple is chosen from the Add Angle Option drop-down list. The default selection will be Yes only if the crank angle is between IVC and (TDC+10). You can select Yes or No from the drop-down list. Spark refinement for the mesh will only be done if Yes is selected for Local Refinement Around Spark.

Refinement Radius

By default this value is set to 3.3 X Reference Size.

Browse Angle

will open the Browse Mesh dialog box.

Here enter the angle for which you would like to read and replace the mesh. Click Browse to open the browser window where you can select the mesh. While selecting the mesh, ensure that it meets the minimum zone requirement as required by the IC Engine system. For more information about the IC Engine supported mesh topologies go to Supported Mesh Topologies.


Note:  While browsing the mesh ensure that the order of selection of vales while decomposition is the same as for the mesh you are browsing. The valve names and zone names must be consistent with the upstream data.


Delete Angle

will remove the selected angle from the Active Angles list.

Reset Angle

will clear the mesh and other backup data of the selected angle from the Active Angles list.

Update with duplicate system

When this option is enabled, and you click Update Keygrid, a new system is created in the Workbench Project Schematic window.

If large number of crank angles are included in KeyGrid, substantial amount of time (over few hours if frequent keygrids are used) is required to complete the meshing before you can start the solver. However, the solver will not need these meshes immediately.

An option to run the solver while meshes are being generated is therefore highly desirable and will greatly expedite the workflow. This feature of creating a new system, will run mesh generation and solution simultaneously to save time.

The new system is a duplicate system of the original ICE system and will be named as ICE-KeyGrid. This slave or duplicate system will have the cells only till ICE Solver Setup. This system will update the KeyGrid meshes. In the meanwhile you can do solver setting changes and run the Fluent solution. You can check the status of mesh generation anytime by clicking on Select KeyGrid Angles which opens the KeyGrid Angle Selection dialog box.

Once the KeyGrid duplicate or slave system is created, KeyGrid Angle Selection dialog box will point to the data in the slave system only. Any changes made in the dialog box like add, remove, reset angle, set new default, etc. will be affected in the slave system only.

In the solver for each of the KeyGrids defined in the duplicate ICE-KeyGrid system, separate mesh-replace event will be created. So even if you insert new KeyGrid in the duplicate system while the solver run is going on, then also dynamic event of mesh replace will be created for that newly inserted KeyGrid. If during the foreground solver run, the KeyGrid mesh file is not found due to mesh failure or the Keygrid being not generated as yet, then the solver will stop at that event for user input. A dialog box will pop up which will have two options —

  • Check for Mesh File — Clicking this, the solver will search for the mesh file in ../ICE/Keygrids directory and in the current working directory. If it finds the mesh in either place mesh replacement is done. If it cannot find the mesh then the same dialog box will pop up again.

  • Continue with Existing Mesh — On clicking this option, the solver will proceed without mesh replacement.

If the solver is running in the background mode and if the mesh file is not found then this dialog box will not pop up and the solution will continue without mesh replacement.

Update Keygrid

will update the mesh for all those crank angles in the Active Angles list, whose status is other than Mesh Generated.

After Update Keygrid is clicked you will get a message of closing the mesh and geometry editors.

Ensure that all the windows are closed and click OK.

The Update Keygrid button is now replaced with the Stop Update button. Also a progress bar and current update status are displayed.

Once update starts, a backup will be taken of the project and mesh files. Mesh files will be saved in the KeyGrids folder. The other files will be saved in the BackupFiles\Crank Angle folders. If you click Stop Update the update process is terminated after completing the current geometry or mesh generation. After update is finished or terminated, keygrid.txt file is written which contains a list of the angles for a which a mesh is successfully generated.

The first time the Crank Angle Selection dialog box opens the Initial Angle will be the default angle. This angle will be highlighted. To change the default angle right-click on the angle of your choice from the list of Active Angles and click on Set default angle. You will be asked to confirm if you would like to set the selected angle as the default angle. After you click Yes the angle chosen to be default will be highlighted.


Important:  When the option of Update with duplicate system is enabled, then in slave system if you change the default angle it will not be reflected in the original system.


Before the mesh in generated you can edit the properties of the added angle. Right-click on the angle of your choice from the list of Active Angles and click on Edit angle. Other than the Add Angle Option and Angle options others can be edited.

In the list of Active Angles you will see the crank angles. If you do not want to update the mesh for any of the crank angles in the list, select it and move it to the Inactive Angles list. You can always add these angles later to the list of Active Angles. If you would like to update the mesh for an additional angle, click Add Angle and enter the angle of interest. You can remove a selected angle by selecting and clicking Delete Angle. After you click Update, the mesh is updated for all the Active Angles. Fluent automatically:

This is how you can set up the simulation using KeyGrids.


Release 18.2 - © ANSYS, Inc. All rights reserved.