Encyclopaedia Index

Flow in an Agitated Tank using MOFOR


Introduction

This tutorial illustrates the setup and simulation of a three-dimensional agitated vessel by using MOFOR, Moving Frames of Reference, capability of PHOENICS to predict the time-dependent flow, mixing and chemical reaction. The time-varying impeller-fluid interaction is modeled by allowing the objects associated with the moving impeller to rotate relative to the stationary mesh associated with the vessel.

Chemical industry makes much use of large reactor vessels, in which contact between the reactants is effected by mechanical stirring. The productivity of the reactor depends greatly on the effectiveness of the mixing; it is often important to predict the flow and concentration fields in the mixing region and in its neighbourhood in order to properly design the rotating impellers.

In this tutorial, you will learn how to


Pre-requisites

This tutorial assumes that you have little experience with PHOENICS. However, it is supposed that you are, at least, generally familiar with its user interface, VR-Editor/Viewer. If you are not, please review TR324 "Starting with PHOENICS-VR".


Problem description

The problem to be considered is shown here.

vessel.gif (14143 bytes)

The rectangular vessel, 0.5x0.5x0.5 m, houses two layers of initially unmixed, chemically reactive fluids: one of the 0.2 m in height is underneath of another. They are both at rest, and are separated by a horizontal interface. The impeller, suddenly set in motion, forces the surrounding fluids to rotate with it, mix with each other and react to produce the product.

The impeller consists of the rod, mounted on rotating vertical shaft. The rod carries two inclined paddles, which agitate the flow. The angular velocity of the shaft is 60 rpm.

The physical properties of the fluids are assumed as the same and constant.

Reaction is treated as a single-step irreversible diffusion-controlled with an infinitely fast rate between reactants:

Fluid1(Fuel) + Fluid2(Oxidant) = 2.Product

The fluid composition is related to the mixture fraction according to the Simple Chemical Reaction Scheme, SCRS, concept.

The computational task is to predict unsteady mixing, represented by the subsequent distributions of velocity and concentrations, and the productivity history of the reactor, ie the product concentration at any point as a function of operational time.


Preparation

  1. Start the VR-Editor of PHOENICS.
  2. Click on 'File', 'Start new case', and select 'Core'.

Step 1: Domain geometry and grids

  1. Click on 'Menu' and set 'Flow in an agitated tank, MOFOR' as the Title.
  2. Click on 'Geometry'.
  3. Change the X-,Y-, and Z-Domain Size to 0.5 m.
  4. Change the Number of cells to 20 cells in X, Y and Z.
  5. Click on 'Apply' to implement settings.
  6. Click on Time dependence 'Steady' to toggle to 'Transient'.
  7. Click on 'Time step settings'.
  8. Set:
  9. Click on 'Apply' to implement settings.
  10. Click on 'OK' to close the 'Time step settings' dialog.
  11. Click on 'OK' to close the 'Geometry' dialog.

Step 2: Modelling settings

  1. Click on 'Models'.
  2. Leave the 'Solution for velocities and pressure' ON.
  3. Click on 'Turbulence models' and select 'CONSTANT' and then click 'OK'.
  4. To activate MOFOR and read-in the MOF file for object movement, click on 'Sources', then on 'OFF' next to 'Moving Bodies (MOFOR)'. A file browser will appear. Select the file /phoenics/d_earth/d_vr/moflib/agitated.mof and click 'Save'.
  5. Click on 'Settings' of 'Solution control/Extra variables'.
  6. To activate solution for concentration field:

Step 3: Domain properties

  1. Click on 'Properties'
  2. Leave 'Use property tables' ON.
  3. Make sure that 'The current domain material is' air at 20 deg c, 1 atm.

Step 5: Numerics ( solution controls)

  1. Click on 'Numerics'.
  2. Change 'Total number of iterations' to 20.
  3. Click on 'Relaxation control'.
  4. Switch 'Automatic convergence control' OFF
  5. Change 'DTFALS' for U1,V1,W1 and C1 to 1.
  6. Click on 'Previous panel'.

Step 6: Output settings

  1. Click on 'Output'.
  2. Click on 'Settings' of 'Field dumping'.
  3. Set 'First step' to 1, 'Last step' to 20, and 'Step frequency' to 1.
  4. Set 'CSG1' of 'Start letter for PHI' to M.
  5. Click on 'Previous Panel'.
  6. Click on 'Top Menu'.
  7. Click on 'OK'

Step 7: Monitoring locations and view

  1. Change X-, Y- and Z- of 'Position' to 0.1
  2. Click on 'Reset' and then 'Fit to window'.
  3. Click on 'Mouse' on the movement control panel and use the mouse to change the geometry view position as shown below.

    .


Step 8: Pressure relief

  1. Click on 'Settings', 'New' and New Object' on the top bar menu.
  2. Change 'Name' to RELIEF.
  3. Click on 'BLOCKAGE' of 'Type'.
  4. Locate 'PRESSURE_RELIEF'.
  5. Click on 'OK'.

Step 9: Initial concentration

  1. Click on 'Settings', 'New' and New Object' on the top bar menu.
  2. Change 'Name' to FLU1IN.
  3. Click on 'Size' and set SIZE of the object as:
  4. Click on 'General' and then on 'Shape'.
  5. Click on 'Default' of 'Geometry'. A browser window will appear.
  6. Locate 'cubet.dat' in public/shapes and click on 'Save'.
  7. Click on 'Options'.
  8. Click on 'Transparency' and set value to 50.

  9. Click on 'General'.
  10. Click on 'BLOCKAGE' of 'Type' and select 'USER_DEFINED'.
  11. Click on 'Attributes'.
  12. Set 'New' to INIF1.
  13. Click on 'Apply'.
  14. Change 'Type' to INIVAL.
  15. Change 'Coefficient' of C1 to 0.0.
  16. Change 'Value' of C1 to 1.0.
  17. Click on 'Apply'.
  18. Click on 'OK'.
  19. Click on 'OK'.

Step 10: Initial position of SHAFT object

  1. Click on 'Settings', 'New' and New Object' on the top bar menu.
  2. Change 'Name' to SHAFT.
  3. Click on 'Size' and set SIZE of the object as:
  4. Click on 'Place' and set POSITON of the object as:
  5. Click on 'General' and then on 'Shape'.
  6. Click on 'Default' of 'Geometry'
  7. Locate 'cylinder.dat' in public/shapes.
  8. Click on 'Save'.
  9. Click on 'Options' and then on 'Rotation options'.
  10. Set 'Rotate Object Face' to 9 and click 'OK'.
  11. Click on 'General'.
  12. Click on 'Attributes'
  13. Click on 'Other materials' of 'Types'.
  14. Locate 'Domain material' and click on 'OK'.
  15. Click on 'Options' and de-activate 'Object affects grid'.
  16. Click on 'OK'.

Step 11: Initial position of ROD object

  1. Click on 'Settings', 'New' and New Object' on the top bar menu.
  2. Change 'Name' to ROD.
  3. Click on 'Size' and set SIZE of the object as:
  4. XSize = 0.05
  5. YSize = 0.25
  6. ZSize = 0.05
  7. Click on 'Place' and set POSITION of the object as:
  8. XPos = 0.125
  9. YPos = 0.125
  10. ZPos = 0.225
  11. Click on 'General'.
  12. Click on 'Shape' and 'Default' of 'Geometry'
  13. Locate 'cylinder.dat' in public/shapes.
  14. Click on 'Save'.
  15. Click on 'Options' and then on 'Rotation options'.
  16. Set 'Rotate Object Face' to 5 and click 'OK'.
  17. Click on 'General'.
  18. Click on 'Attributes'
  19. Click on 'Other materials' of 'Types'.
  20. Locate 'Domain material' and click on 'OK'.
  21. Click on 'Options' and de-activate 'Object affects grid'.
  22. Click on 'OK'.

Step 12: Initial position of PADDLE1 object

  1. Click on 'Settings', 'New' and New Object' on the top bar menu.
  2. Change 'Name' to PADDLE1.
  3. Click on 'Size' and set SIZE of the object as:
  4. XSize = 0.1
  5. YSize = 0.1
  6. ZSize = 0.025
  7. Click on 'Place' and set POSITION of the object as:
  8. XPos = 0.111
  9. YPos = 0.375
  10. ZPos = 0.287
  11. Rotation angle about Y = 45
  12. Click on 'General'.
  13. Click on 'Shape' and 'Default' of 'Geometry'
  14. Locate 'cubet.dat' in public/shapes.
  15. Click on 'Save'.
  16. Click on 'Attributes'
  17. Click on 'Other materials' of 'Types'.
  18. Locate 'Domain material' and click on 'OK'.
  19. Click on 'Options' and de-activate 'Object affects grid'.
  20. Click on 'OK'.

Step 13: Initial position of PADDLE2 object

  1. Click on 'Settings', 'New' and New Object' on the top bar menu.
  2. Change 'Name' to PADDLE2.
  3. Click on 'Size' and set SIZE of the object as:
  4. XSize = 0.1
  5. YSize = 0.1
  6. ZSize = 0.025
  7. Click on 'Place' and set POSITION of the object as:
  8. XPos = 0.132
  9. YPos = 0.025
  10. ZPos = 0.204
  11. Rotation angle about Y = -45
  12. Click on 'General'.
  13. Click on 'Shape' and 'Default' of 'Geometry'
  14. Locate 'cubet.dat' in public/shapes.
  15. Click on 'Save'.
  16. Click on 'Attributes'
  17. Click on 'Other materials' of 'Types'.
  18. Locate 'Domain material' and click on 'OK'.
  19. Click on 'Options' and de-activate 'Object affects grid'.
  20. Click on 'OK'.
  21. Click here to see the screen image.

Step 14: Running the simulation

  1. Click on 'Run'.
  2. Click on 'Earth'.
  3. Click on 'OK'.

Step 15: Displaying flow and mixing

  1. Postprocessing at t=0.5 seconds
    1. Click on 'Run'.
    2. Click on 'VR-Viewer'.
    3. Click 'No' of 'User intermediate step files'.
    4. Change 'Plot step number' to 10.
    5. Click on 'OK'.
    6. Change 'Probe position' X to 0.15
    7. Click on 'V'.
    8. Click on 'settings', 'Vector options' on the top bar menu.
    9. Change 'Scale factor' to 0.04'
    10. Click on 'Vector toggle' to see the flow vectors.
    11. Click on 'Y'.
    12. Click on 'C'.
    13. Locate 'C1'.
    14. Click on 'OK'.
    15. Click on 'Contour toggle' to see concentration contours.
  2. Animation
    1. Click on 'F6'.
    2. Change 'Plot step number' to 1.
    3. Click on 'OK'.
    4. Click on 'Run animation' button on the main control panel.

    Step 16: Enabling and Solving for Chemical Reaction

    1. Click on 'Run'.
    2. Click on 'VR Editor'.
    3. Click on 'Menu'.
    4. Click on 'Models'.
    5. Click on 'Energy Equation' and select 'Enthalpy'/'OK'.
    6. Click on 'STATIC' to toggle to 'TOTAL'
    7. Click on 'Combustion/Chemical Reaction' and select '3 gases mixing'/'OK'.
    8. Click on 'Settings' of '3_GASES_MIXING'.
    9. Change 'Stoichiometric ratio' to 1.
    10. Change 'Heat of combustion' to 0.
    11. Change all 'Specific Heats' to 1005.
    12. Change all 'Molecular Weights' to 29.
    13. Click on 'Previous panel'.
    14. Click on 'Initialisation'.
    15. Change 'FIINIT Value' of H1 to 301500.
    16. Change 'FIINIT Value' of MIXF to 0.
    17. Click on 'Apply'.
    18. Click on 'Numerics'.
    19. Click on 'Relaxation control'.
    20. Change 'DTFALS' of H1 to 1.
    21. Change 'DTFALS' of MIXF to 1.
    22. Click on 'Previous Panel'.
    23. Click on 'Top Menu', then 'OK' to close the main menu panel.
    24. Click on 'Object management' button (Obj) onthe main control panel.
    25. Double click on 'FLU1IN' to bring up the object specification dialog box.
    26. Click on 'Attributes'.
    27. Change 'Coefficient' of MIXF to 0.
    28. Change 'Value' of MIXF to 1.
    29. Click on 'OK' twice to close the object specification dialog box.
    30. Click on 'Run'.
    31. Click on 'Earth'.
    32. Click on 'OK'.

    Step 17: Enabling Higher-Order Discretization for C1

    1. Click on 'Menu'.
    2. Click on 'Numerics'.
    3. Click on 'Differencing Schemes'.
    4. Click on 'Set schemes individually'.
    5. Locate 'Variable' of C1.
    6. Click on 'UPWIND' of 'SCHEME'.
    7. Locate, say, 'MINMOD'.
    8. Click on 'OK'.
    9. Click on 'Previous Panel'.
    10. Click on 'Top menu'.
    11. Click on 'OK'.
    12. Click on 'Run'.
    13. Click on 'Earth'.
    14. Click on 'OK'.

    Step 18: Enabling re-start

    1. Click on 'Menu'.
    2. Click on 'Initialisation'.
    3. Click on 'Restart for all variables'.
    4. Click on 'Top menu', then on 'OK'.
    5. Click on 'Object management' button
    6. hightlight 'FLU1IN'.
    7. Click on 'Action', and select 'Delete object(s)' .
    8. Click on 'Yes' to confirm.
    9. Click on 'Run'.
    10. Click on 'Earth'.
    11. Click on 'OK'.

    Summary

    In this tutorial, you have modeled the time-dependent flow involving moving-impeller-fluid interaction. You have learned how to initialise the positions, set the attributes of the moving bodies and activate MOFOR to handle their effects on the flow field. Similar procedures can be used for any further applications involving moving bodies.

    You have used PHOENICS's time-dependent flow prediction capability, and you have learned how to set solution parameters. These time-dependent flow prediction procedures can also be applied to other, non-moving-body, analyses.

    You have modeled the transport, mixing, and reaction of chemical species. The reaction system was defined by using and modifying a SCRS entry in the PHOENICS model database. The procedures used here can be applied to other reacting flow systems.

    You have also learned how to use the graphics of VR-viewer to analyse the results of transient simulations.

    This exercise has illustrated how to use the higher-order discretization schemes and re-start capability for longer, multi-stage simulations using the cyclic nature of the flow-inducing body movements.