CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

multiphase interfoam k-omega BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Marpole

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2020, 22:58
Default multiphase interfoam k-omega BC
  #1
New Member
 
Diego Villegas Díaz
Join Date: Oct 2020
Posts: 4
Rep Power: 5
DiegoAlonso is on a distinguished road
Hi, I am a new foamer. I am simulating a section of an openchanel steady water flow with interFoam solver.

The inlet condition is a water profile and a constant flow in. To represent this situation I used this boundary condition:

1) alpha.water: I used funkySetBoundaryFields to map the waterprofile to alpha.water variable. 1 for water and 0 for air, without intermediate values.

2) U: I used the variableHeightFlowRateInletVelocity with the inlet flow.

3) p_rgh: zero gradient.

4) nut: calulated.

5) k: turbulentIntensityKineticEnergyInlet; with Intensity = 0.0573

6) omega: turbulentMixingLengthFrequencyInlet; with mixing length = 0.00258

I've had some troubles with the k and omega boundary conditions. interFoam fall at the start and I dont understand why. Meanwhile, I am using a fixed value for omega (3.46) or fixed value for k (0.0044065), and its work but I really want to understand why when I use the boundary condition 5) and 6) together interFoam fall.

Thaks in advance.
DiegoAlonso is offline   Reply With Quote

Old   October 8, 2020, 01:08
Default
  #2
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
I'm curious how do you get these values, i.e. intensity 0.0573, mixing length 000258, omega 3.46 and k 0.0044065. I guess the divergence was caused by improper initial conditions because turbulence model is prone to diverge.
Marpole is offline   Reply With Quote

Old   October 8, 2020, 08:53
Default
  #3
New Member
 
Diego Villegas Díaz
Join Date: Oct 2020
Posts: 4
Rep Power: 5
DiegoAlonso is on a distinguished road
Quote:
Originally Posted by Marpole View Post
I'm curious how do you get these values, i.e. intensity 0.0573, mixing length 000258, omega 3.46 and k 0.0044065. I guess the divergence was caused by improper initial conditions because turbulence model is prone to diverge.
I get these values using the water profile at the inlet and a median velocity (U) . I calculated the intensity using some expresion in the book
"Turbulence in open channel flows" (Nezu & Nakagawa) the mixing length scale, k = (3/2)*(I*U)^2, the mixing length for the omega condition I calculated as 0.07*Rh (with Rh the hydraulic radius) I found this scale in these forum but I dont have any formal information. Finally to calculate omega (for fixed value), I calculated another length scale to mixing length lm equal to 0.41*Rh (based in Von Karman constant) and omega is equal to sqrt(k)/lm.

I forgot to mention that my system is initialized at the inlet as uniforms values for k, omega and lm, the same values that I mentioned above. May be these unifor initial condition is the reason why interFoam falls.
DiegoAlonso is offline   Reply With Quote

Old   October 8, 2020, 20:10
Default
  #4
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
k = (3/2)*(I*U)^2 is not mixing length, but is turbulent kinetic energy. So, I guess you need to review these initial values.
Marpole is offline   Reply With Quote

Old   October 8, 2020, 22:41
Default
  #5
New Member
 
Diego Villegas Díaz
Join Date: Oct 2020
Posts: 4
Rep Power: 5
DiegoAlonso is on a distinguished road
Quote:
Originally Posted by Marpole View Post
k = (3/2)*(I*U)^2 is not mixing length, but is turbulent kinetic energy. So, I guess you need to review these initial values.
Ohh I made a mistake writing the last post. I know that k is turbulent Kinect energy. But I'm thinking that interFoam fall due the uniform initial condition un k and omega.
DiegoAlonso is offline   Reply With Quote

Old   October 9, 2020, 01:44
Default
  #6
Senior Member
 
Charles
Join Date: Aug 2016
Location: Vancouver, Canada
Posts: 148
Rep Power: 9
Marpole is on a distinguished road
You have two mixing length. The first mixing length 0.07Rh might be problematic and is too small. You can try 0.41Rh instead.
DiegoAlonso likes this.
Marpole is offline   Reply With Quote

Reply

Tags
boundary condition, interfoam, k-omega model, open channel flow

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Multiphase interFoam pipeflow One inlet Two outlets mwmalkawi OpenFOAM 9 January 29, 2020 22:37
Multiphase airwater BC problem in InterFoam rochamatheus OpenFOAM Running, Solving & CFD 1 March 31, 2019 12:38
multiphase explicitsolve function in interFoam abdo1984 OpenFOAM Programming & Development 0 September 4, 2016 11:26
multiphase explicitsolve function in interFoam abdo1984 OpenFOAM Running, Solving & CFD 0 September 4, 2016 05:45
InterFoam wall boundary multiphase RBJ OpenFOAM Bugs 2 December 3, 2009 05:00


All times are GMT -4. The time now is 19:46.