Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
es-ice_tut.pdf
Скачиваний:
127
Добавлен:
18.03.2015
Размер:
10.04 Mб
Скачать

MESH REPLACEMENT

Chapter 13

Creating Ahead Files for the Dense Mesh

 

 

 

Figure 13-6 Exhaust flow boundary

All necessary settings have now been defined for the dense model. The only remaining action is to write the data files via the Star Controls panel.

In the Write data view of the Star Controls panel, click Write data

Creating Ahead Files for the Dense Mesh

As the dense mesh contains considerably more cells than the coarse mesh, it is advantageous to use Ahead Files (see Chapter 11 of the User Guide). This practice avoids the possibility of STAR waiting for es-ice to complete its part in the simulation at every time step. The mvmesh.sh panel is used to define several scripts, which in turn create the Ahead Files. During the analysis, Ice reads these grids instead of generating meshes, thus reducing the calculation time. Note that the same process can be carried out on the coarse mesh if desired, although the low cell count makes it unnecessary.

To create the ahead scripts:

In the Select panel, click mvmesh.sh to open the mvmesh.sh panel

Select the Events ahead script toggle button to activate the Ahead Files section of the panel

Accept the remaining default settings. You can change these settings for other cases, depending on the nature of the mesh and system resources

Click Write to create the scripts in the

ahead subdirectory located within the current working directory.

13-6

Version 4.20

Chapter 13

MESH REPLACEMENT

 

Creating Ahead Files for the Dense Mesh

 

 

Since Ahead Files are used, you need to update the settings within the mvmesh.sh file (see Chapter 11 in the User Guide). To set up this file:

• Locate the Move mesh script section of the mvmesh.sh panel, shown in the adjacent screenshot

Set Processes to 1

Accept the remaining defaults. Again, you can change these settings in your own cases to optimise the analysis run time.

Click Write

Click Yes in the es-ice command window to overwrite the existing mvmesh.sh

file. The file is updated to reflect the changed settings.

Finally you must execute the head scripts in order to generate the event meshes. This procedure is different between Linux and Windows.

On Linux:

Enter the following commands in a shell prompt: sh ahead/<filename>.sh

where <filename> is one of the ahead scripts in the ahead directory

Alternatively, you can use a script to execute each ahead script in turn. For example:

for filename in ahead/*.sh do

sh $filename done

exit 0

On Windows:

Enter the following commands in a PowerShell prompt:

Ice.exe -sB=<filename>.sh

where <filename> is one of the ahead scripts in the ahead directory

Alternatively, you can use a batch file to execute each ahead script in turn. For example:

for %%f in(.\*sh) do Ice.exe -sB=%%f

exit 0

The set-up for the dense model is now complete.

Version 4.20

13-7

MESH REPLACEMENT

Chapter 13

Defining Mesh Replacements

 

 

 

In the Select panel, click Write Data

In the Write Tool, enter save_es-ice.dense_final and click Save

Close es-ice

Defining Mesh Replacements

Mesh replacements must be defined within the master model file. In this tutorial, the coarse model is the master model, which means changing the working directory and loading save_es-ice.4-final into es-ice.

Make the directory containing the coarse model file (save_es-ice.4-final) your current working directory and then launch es-ice in the usual manner

In the Select panel, click Read Data

In the Read Tool, click the ellipsis (...) button next to the Resume file box and select the coarse model file (save_es-ice.4-final) from the browser. This action loads the coarse model and displays it in the

Template window.

Mesh replacements can now be defined using the Multiple mesh panel (see Chapter 6, “Meshes for Simulation with Mesh Replacement” in the User Guide). The first mesh-replacement operation is described below in some detail while the rest of the required settings are summarised in a table.

13-8

Version 4.20

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]