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

Including turbulence damping at the interface

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2018, 07:53
Default Including turbulence damping at the interface
  #1
New Member
 
Gustavo Bochio
Join Date: Mar 2012
Posts: 3
Rep Power: 11
g_bochio is on a distinguished road
Hello, everyone! I would like some help to add a source to the \omega equation, so that I can supress turbulence generation near the interface in a two-phase flow.

This link shows the source that I want to add:
https://www.sharcnet.ca/Software/Ans...turb_damp.html

My main questions are:

1) Is it possible to implement this directly to the fvOptions dict?

2) How could I calculate \Delta n?

Thanks!
g_bochio is offline   Reply With Quote

Old   September 4, 2018, 09:36
Default nearWallDist and wallDist
  #2
ano
Member
 
Elin Vesper
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 7
ano is on a distinguished road
1) I didn't find a fvOptions term included in the omega equation of the kOmega models, so putting something into the fvOptions dict would not work. I guess it is easiest to put your term directly into the k-omega model.

2) There are two wall distance functions used in the turbulence models, both give you an volScalarField:
a) All turbulence models inherit from "turbulenceModel". In turbulenceModel a nearWallDist y_ is defined (as a private member), which would represent your \Delta n.
The nearWallDist gives you the "Distance calculation for cells with face on a wall.", which should give you for all cells next to the boundary the distance between the face and the cell centre (and for the other cells it gives zero). From within your turbulence model, e.g. kkLOmega you can call it with
Code:
this->y()
to obtain \Delta n .. (From within the solver you could call it with "turbulence->y()".)

b) The wallDist gives you the "Calculation of distance to nearest wall for all cells and boundary.". It is defined in some, but not all models, e.g. the kkLOmega. Unfortunately someone gave it also the variable name y_. So be careful that you don't mix them.
ano is offline   Reply With Quote

Old   September 4, 2018, 12:10
Default
  #3
New Member
 
Gustavo Bochio
Join Date: Mar 2012
Posts: 3
Rep Power: 11
g_bochio is on a distinguished road
Hey Ano, thanks for the reply.

\Delta n in my case is not the distance from a wall. It is the distance from the interface between two fluids. Any idea how to calculate this?
g_bochio is offline   Reply With Quote

Old   September 4, 2018, 14:07
Default
  #4
ano
Member
 
Elin Vesper
Join Date: Jan 2017
Location: Delft
Posts: 58
Rep Power: 7
ano is on a distinguished road
Hey Bochio,

I am really sorry for not reading your message well and that my answer missed totally your question.

No, unfortunately I don't know how to calculate it.
ano is offline   Reply With Quote

Old   September 5, 2018, 08:41
Default
  #5
New Member
 
Gustavo Bochio
Join Date: Mar 2012
Posts: 3
Rep Power: 11
g_bochio is on a distinguished road
No problem!
g_bochio is offline   Reply With Quote

Old   September 4, 2020, 08:58
Default
  #6
Member
 
Rishikesh
Join Date: Apr 2016
Posts: 56
Rep Power: 7
mrishi is on a distinguished road
Sorry to bump this, but did you find the solution to this problem?
mrishi is offline   Reply With Quote

Old   September 7, 2020, 03:22
Default
  #7
New Member
 
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 6
Wenyuan is on a distinguished road
Hi,

I have an implementation for the interFoam (interIsoFoam) family in the following repository
https://github.com/wenyuan-fan/varRhoTurbVOF_2

You can also find a manual and a tutorial on how to use it.
Wenyuan is offline   Reply With Quote

Old   September 7, 2020, 04:50
Default
  #8
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 602
Rep Power: 16
Phicau is on a distinguished road
Hi Gustavo,
I think you will find this useful: https://olaflow.github.io/blog/turbu...ons-revisited/
The code is now compatible with OF8 and 2006+

https://github.com/phicau/olaFlow_su...enceMultiphase


Best,
Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   December 30, 2020, 01:37
Default
  #9
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 3
jayson is on a distinguished road
Quote:
Originally Posted by Wenyuan View Post
Hi,

I have an implementation for the interFoam (interIsoFoam) family in the following repository
https://github.com/wenyuan-fan/varRhoTurbVOF_2

You can also find a manual and a tutorial on how to use it.

hi,


I want to change your turbulence damping code for openFoam 2.2.0. How can I do?
thank you
jayson is offline   Reply With Quote

Old   December 30, 2020, 02:56
Default
  #10
New Member
 
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 6
Wenyuan is on a distinguished road
Hi,

In OpenFOAM 2.2.0, turbulence models don't support fvOptions. There are two possible ways to use the turbulence damping model in that version.

1. You can modify the original turbulence models to allow them to use fvOptions, which can be achieved by adding several lines as you can find in new turbulence model implementations. Then you can use the turbulence damping fvOptions to add source terms.

2. You can put the source term directly into omega/epsilon equations, since you need to create new turbulence models anyway.

In either case, you may encounter warnings/errors. Unfortunately, I don't know exactly what they will be since I don't have that version installed.
Wenyuan is offline   Reply With Quote

Old   December 30, 2020, 07:45
Default
  #11
New Member
 
Ilhwan Yeo
Join Date: Jan 2020
Posts: 18
Rep Power: 3
jayson is on a distinguished road
Quote:
Originally Posted by Wenyuan View Post
Hi,

In OpenFOAM 2.2.0, turbulence models don't support fvOptions. There are two possible ways to use the turbulence damping model in that version.

1. You can modify the original turbulence models to allow them to use fvOptions, which can be achieved by adding several lines as you can find in new turbulence model implementations. Then you can use the turbulence damping fvOptions to add source terms.

2. You can put the source term directly into omega/epsilon equations, since you need to create new turbulence models anyway.

In either case, you may encounter warnings/errors. Unfortunately, I don't know exactly what they will be since I don't have that version installed.
Thank you! I will try it!!
jayson is offline   Reply With Quote

Old   May 20, 2021, 04:49
Default
  #12
New Member
 
Hamdani
Join Date: Nov 2011
Posts: 5
Rep Power: 11
hamdani is on a distinguished road
Hi,

Do you have a plan to update the turbulence damping library to OpenFOAM-dev?
It seems that fvOption.H is not found in OpenFOAM-dev.

It would be very nice if you can update the library.
Many thanks
hamdani is offline   Reply With Quote

Old   May 20, 2021, 04:50
Default
  #13
New Member
 
Hamdani
Join Date: Nov 2011
Posts: 5
Rep Power: 11
hamdani is on a distinguished road
Quote:
Originally Posted by Wenyuan View Post
Hi,

I have an implementation for the interFoam (interIsoFoam) family in the following repository
https://github.com/wenyuan-fan/varRhoTurbVOF_2

You can also find a manual and a tutorial on how to use it.
Hi,

Do you have a plan to update the turbulence damping library to OpenFOAM-dev?
It seems that fvOption.H is not found in OpenFOAM-dev.

It would be very nice if you can update the library.
Many thanks
hamdani is offline   Reply With Quote

Reply

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
How to use the CFX periodic interface zhihuawan CFX 61 January 15, 2018 16:20
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 14:32
Radiation interface hinca CFX 15 January 26, 2014 17:11
Turbulence damping at fluid interface Eric Siemens 0 October 4, 2002 14:32


All times are GMT -4. The time now is 12:10.