CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

how to add a turbulence into a laminar model?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ano

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2017, 04:06
Default how to add a turbulence into a laminar model?
  #1
New Member
 
Matthew
Join Date: Aug 2017
Posts: 28
Rep Power: 9
zhangxc0223 is on a distinguished road
Hi, I have done a simple model of using a velocity at the inlet, to achieve a laminar flow passing through a pipe. The solver is icoFoam. Now I would like to change to a turbulent flow without using any turbulence model (actually I would like to do the DNS). How to modify the boundary conditions to achieve a turbulence?
zhangxc0223 is offline   Reply With Quote

Old   September 6, 2017, 10:36
Default
  #2
ano
Member
 
ano
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 10
ano is on a distinguished road
Hi Matthew,

to turn laminar flow turbulent you have to give some noise as initial condition. To maintain a turbulent flow in a pipe you have to use periodic boundary conditions (and a function object, which imposes a pressure gradient onto your pipe, so that the mean flow rate is steady).
  1. Copy your case to a new directory boxTurbulence, make a simple meshed box slightly bigger than your pipe and use boxTurb:
    1. put this file https://github.com/OpenFOAM/OpenFOAM...nt/boxTurbDict in your constant directory
    2. run
      Code:
      boxTurb
  2. Map turbulence to pipe:
    1. Make a mapsFieldDict with content:
      Code:
      patchMap        ( );
      cuttingPatches  ( pipeWall );
    2. Go to your case directory and use boxTurbulence mapFields to map the turbulence from boxTurbulence to your pipe-Mesh:
      Code:
      mapFields -fields '(U)' [ your path to boxTurbulence directory]
  3. Change the boundary conditions to periodic boundary condtions:
    1. in constant/polyMesh/boundaries the type of your inlet and outlet to cyclic:
      Code:
      type cyclic;
      inGroups 1(cyclic)
    2. Change also the boundary conditions of the inlet and outlet in U,p,T etc. in the 0 directory:
      Code:
      type          cyclic;
  4. Based on the Reynolds number you are interested in impose a pressure gradient. Write in constant/fvOptions the following where you have to substitute the Ubar value by the desired mean velocity:
    Code:
    pressureGradient
    {
        type              pressureGradientExplicitSource;
        active            on;
        selectionMode   all;
    
        pressureGradientExplicitSourceCoeffs
        {
            fieldNames  (U);
            Ubar        ( 1 0 0 );
        }
    }
  5. Run it. If it is not turbulent, play with the values in boxTurbDict.
calf.Z likes this.

Last edited by ano; September 10, 2017 at 08:53.
ano is offline   Reply With Quote

Old   November 14, 2018, 07:59
Default
  #3
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Hello Matthew,

Have you resolved your problem?I am doing similar research on DNS of heated pipe flow.

Any hint or guide is appreciated.

Thank you.
calf.Z is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turbulence model under laminar conditions mbranag CFX 12 March 13, 2023 21:06
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
Capture Laminar Separation Bubble with K-Kl Turbulence Model alireza_b FLUENT 0 April 14, 2014 14:16
Aerofoil Modelling - Laminar approximation, transition and turbulence modelling. Asatorae STAR-CCM+ 1 January 20, 2014 06:25
Why Turbulence models are not universal. Senthil Main CFD Forum 4 July 5, 2000 05:34


All times are GMT -4. The time now is 09:44.