PRELUDE Tutorial VWT3SA
Simulating flow around a simple object

Author: E.O.Pankova, Moscow Baumann State Technical University

Summary

In this tutorial, you will continue learning how to use PRELUDE's Virtual-Wind-Tunnel Gateway to simulate the flow around a simple object.

The third tutorial (VWT3sa) in the VWT stand-alone series will explain how to change the object inside the Virtual-Wind-Tunnel and its initial settings.

Contents

  1. How to start
  2. Changing the initial settings
  3. Making the simulation and inspecting the results
  4. Saving the results of your work with PRELUDE
  5. Concluding remarks

1. How to start

  1. First create your working directory under /phoenics/d_prelud in an ordinary way.
  2. Start this tutorial by clicking on the [chopin.gif] icon on the desktop.

  3. To load the case which is discussed in this tutorial, click on the arrow to the right of the 'Load Gateway' box and select already familiar 'vwt', which stands for Virtual Wind Tunnel.

  4. List of initial settings (options) will appear inviting you to introduce the necessary changes at the very beginning. Let us now replace the sphere inside the VWT with a half cylinder object for which purpose substitute the ball.dat in the test object window by halfcyl.dat (standing for a half cylinder) in the list of objects that is revealed when you click on the arrow to the right of this box.

    [sa3_1.gif]

  5. Click on the button "Next" leaving other settings unchanged for the time being.

    You will then see the following in the calculation domain.

    [sa3_2.gif]

    The sphere has disappeared and instead - a half cylinder object has been placed in the same place of the VWT.

  6. Now specify your working directory in the drop-down menu of the 'Edit' button, select 'Set Working Directory', and navigate thereafter to the directory you have just created.
    Click on that folder. It will remain your working directory for PRELUDE until you change it again.

2. Changing the initial settings

  1. First of all let us make the 'object tree' visible clicking on the [treen.gif] icon in the toolbar.

    [sa3_3.gif]

  2. It is good mentioning here that a substitution of a test-item can be also made at this point (not with the help of the VWT Creation Wizard as we did), but using the objects from the store cupboard.

    Pay attention that no object should be selected at this moment and the sign of this is the word 'Director' in the top-right corner of the Graphics window.

    Click on the 'red-tick' icon [immov.gif] in the tool-bar and you will get the picture with the 'store cupboard' tab visible, which, when clicked upon, will reveal its contents.

    [sa3_3a.gif]

    You can try locating any object from the store cupboard into the VWT, but in the end restore the half cylinder object. It is another opportunity of changing the default test-item object in the VWT.

  3. It is reasonable here to remind of the default settings introduced at the first step by the VWT Creation Wizard paying a special attention to the 'Turbulence' setting.

    [sa3_4.gif]

    The word 'No' in the Turbulence box signifies that no turbulence model will be introduced into the future flow simulation, i.e. the flow is laminar. However, if you check the default Reynolds number, it will definitely be turbulent. This is inaccuracy which we introduced using default settings. Let us first reduce the inlet speed value from 2.0 m/sec to 0.5 m/sec. This can be easily done as the inlet speed being set in a parametric form ('WINDSPEED) can be edited if you click on the 'Parameters' tab.

    [sa3_5.gif]

  4. Now type '0.5' instead of '2.0' in the corresponding box.

  5. To be certain that this new setting has been introduced, check the inlet velocity by selecting the 'inlet' object in the object tree, then clicking on the 'Attributes' tab and from the 'Edit parameter' box choosing 'velocity'. You will get a picture like this one.

    [sa3_6.gif]

    The 'X velocity' option although being still a parameter 'WINDSPEED' has now changed its value to 0.5 m/sec.

  6. It is certainly not a sufficient reduction of the Reynolds number and in order not to change the VWT sizes, let us increase the flow viscosity. To do so, expand the 'materials' object in the object tree clicking on the sign '+' on the left, then select the 'phase1' object dealing with the heat transfer medium to be used for the simulation. You will then have a picture as follows.

    [sa3_7.gif]

    To increase the flow viscosity, e.g. one thousand times, change the exponent from -5 to -2 leaving all other parameters as they are.

    [sa3_8.gif]

    Note that this has been done only to get laminar flow conditions in the VWT and the new viscosity has nothing to do with this of air being used in simulation.

3. Making the simulation and inspecting the results

  1. We are ready now to make a run. So click on 'Options' in the Menu bar, and then on 'Run Solver'. It will take some time until the simulation is finished and a user is again taken to the Prelude Graphics window.

  2. Click on the sign '+' to the left of the vtkphi object to expand it and select the cplane (i.e. cut plane) - a plane where the calculation results will be displayed.

  3. Now click on the object properties button [immov.gif] to open the window as follows.

    [sa3_9.gif]

  4. let us first display pressure (P1) contours on the cplane.

  5. Click on the Cutplane tab, then select the Y Contour box, i.e. along the VWT to get a picture like this one.

    [sa3_10.gif]

  6. Let us display pressure contours in Z plane, i.e. in the cross-section plane. First remove the above picture, clicking in the box 'None' in the Y-plane and then select 'Contour' in the Z-plane. You will have a picture similar to this one.

    [sa3_11.gif]

    You can enlarge and rotate the images to get a better view of the results.

  7. To display the simulation data for velocity, first make this variable a default one, clicking on the Scalar Properties tab, then on the PlotScalar button and choose VABS from the list standing for absolute velocity.

  8. You can then repeat your previous steps to get the pictures like these. The options accessed via the 'Cutplane' tab also allow display of both Lines & Vectors, Contours & Vectors as the following picture shows.

    [sa3_17.gif]

    Experiment with the options to get pictures which suit more your requirements.

Pressure and velocity pictures show that there are regions of lower pressure and higher velocity close to the VWT walls and a low-pressure and low-velocity zone behind the object caused by a vortex created there.

4. Saving the results of your work

The results of the simulation will be saved in your working directory when you want to close the Prelude window and finish this rather prolonged session.
  1. First close the present Prelude window clicking on the top right cross.

  2. Answer 'yes' to the invitation 'Save the unsaved changes'.

  3. To load your case, click on the tab 'Load other' and you will be asked to run any file having extension *.q1, *.q3 or *.psc from your working directory.

  4. Open the vwtpscrun.psc file and your case will be loaded.

  5. Then display the object tree clicking on the corresponding button [treen.gif] in the tool bar.

  6. Click on the VTK button [vtk.gif] and open the familiar phi.vtk file from the 'Choose VTK results file' window. The phivtk object together with its cplane will be displayed in the object tree and you can make similar steps already explained in the previous section.

5. Concluding remarks

In this tutorial you have learnt how to introduce a different object from the store cupboard into the VWT; how to change its defalt settings as well as these of the flow. You have also made simulation and got the results that confirmed the presence of the vortex zone behind the half-cylinder object.