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

Inlet boundary condition of turbulence

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By bigfootedrockmidget
  • 1 Post By bigfootedrockmidget
  • 1 Post By bigfootedrockmidget
  • 1 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2021, 08:05
Question Inlet boundary condition of turbulence
  #1
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 7
Zhen ZHANG is on a distinguished road
Hi all,
I am calculating film cooling problems using the incompressible NS solver with the S-A turbulence model. I am wondering whether I can specify the turbulence intensity at inlets. Could anyone give me some clues?
Thanks a lot!
Zhen ZHANG is offline   Reply With Quote

Old   April 12, 2021, 09:50
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 499
Rep Power: 17
bigfootedrockmidget is on a distinguished road
yes, you can look in config_template.cfg for all available options, or in the example testcases to see how they are used. For SST, intensity i and viscosity ratio R are set using:

Code:
FREESTREAM_TURBULENCEINTENSITY= 0.05
FREESTREAM_TURB2LAMVISCRATIO= 10.0
For the SA model you use:

Code:
FREESTREAM_NU_FACTOR= 3.0
Zhen ZHANG likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   April 12, 2021, 10:26
Smile
  #3
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 7
Zhen ZHANG is on a distinguished road
Thank you for your reply!
There are some related questions:
1. I find the FREESTREAM_TURBULENCEINTENSITY and FREESTREAM_TURB2LAMVISCRATIO in the module "COMPRESSIBLE FREE-STREAM DEFINITION", and similarly FREESTREAM_NU_FACTOR in module "ENGINE SIMULATION". Do these parameters work in other solvers, for instance, the incompressible NS solver here?
2. These parameters seem to be the only ones to control the turbulence level, so are these used in both initial and boundary conditions?
3. Is that possible to set different turbulence levels at different inlets?
Zhen ZHANG is offline   Reply With Quote

Old   April 13, 2021, 15:46
Default
  #4
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 499
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Hi,
Yes the config options are used for compressible as well as incompressible, for instance FREESTREAM_TURBULENCEINTENSITY sets the variable TurbulenceIntensity_FreeStream, which is obtained with GetTurbulenceIntensity_Freestream and then used to initialize the field in CTurbSSTSolver


For boundary conditions it depends what the boundary is, but freestream conditions seem to be used for a number of boundary types. You can find the boundary implementations in CTurbSSTSolver.cpp for instance and have a look.



At the moment it is not possible to set different turbulence levels at different boundaries. So you would like to set a different turbulence intensity at each of your inlets for instance?
Zhen ZHANG likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   April 13, 2021, 22:51
Smile
  #5
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 7
Zhen ZHANG is on a distinguished road
Thank you for your kind reply!
I checked the CTurbSSTSolver.cpp and found how FREESTREAM_TURBULENCEINTENSITY and FREESTREAM_TURB2LAMVISCRATIO worked for both initial and boundary conditions.
As for the inlets, I am calculating the film cooling problem, which is an internal flow and has multiple inlets typically with various flow conditions including the turbulence intensity and length scale. Ignoring these turbulence variations may introduce inaccuracy.
Could you please give me some clues? For example, is it a good way to add an "if statement" somewhere to set different turbulence conditions at different inlets?
Zhen ZHANG is offline   Reply With Quote

Old   April 14, 2021, 05:55
Default
  #6
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 499
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Hi,


I see two possibilities to make su2 work with separate turbulence quantities at inlets in a more general fashion:

1. support for turbulence quantities in the inlet boundary file

2. define turbulence intensity and viscosity ratio for all inlets instead of globally from the free stream values
In BC_Inlet, we have the marker values available and we can get the marker tags as well from that. This can be used to set turbulence intensity for each of the inlets.
Zhen ZHANG likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   April 15, 2021, 07:25
Smile
  #7
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 7
Zhen ZHANG is on a distinguished road
Hi, thanks for the kind reply!

The second method is convenient to set uniform inlet conditions at different inlets. That is good.

The first method seems able to set some distributions of the inlet velocity or turbulence. Is there any guide or tutorial about the inlet boundary file?

Thank you
Zhen ZHANG is offline   Reply With Quote

Old   April 15, 2021, 15:31
Default
  #8
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 499
Rep Power: 17
bigfootedrockmidget is on a distinguished road
The inlet boundary file has x,y,z as the first 3 columns and after that the order of the columns correspond to the order in marker_inlet, so if the first value in marker_inlet is for temperature, than that is also the first column after the coordinate columns.
Zhen ZHANG likes this.
bigfootedrockmidget is offline   Reply With Quote

Old   April 16, 2021, 02:04
Smile solved
  #9
Member
 
Zhen ZHANG
Join Date: Jun 2018
Location: Beijing, China
Posts: 56
Rep Power: 7
Zhen ZHANG is on a distinguished road
Hi,
I see it. Thank you for the kind reply!
Zhen ZHANG is offline   Reply With Quote

Old   April 21, 2021, 15:41
Default
  #10
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 499
Rep Power: 17
bigfootedrockmidget is on a distinguished road
Based on this discussion, an additional 'comment' line is now added to each of the inlets in the inlet profile file when it is being created. This line contains the names of the variables in the columns. The line is ignored by the su2 reader and only meant for the user to make editing easier. The initialization is now also based on (turbulent) free stream and inlet values found in the config file. It is in the develop version now on github, will be in the newest release.

https://github.com/su2code/SU2/issues/1265
bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
boundary condition, su2 7.1.0


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
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 05:53
Inlet boundary condition for transitional turbulence models roozbehmousavi FLUENT 1 October 14, 2015 00:28
Problem with assigned inlet velocity profile as a boundary condition Ozgur_ FLUENT 5 August 25, 2015 04:58
Waterwheel shaped turbine inside a pipe simulation problem mshahed91 CFX 3 January 10, 2015 11:19
Radiation interface hinca CFX 15 January 26, 2014 17:11


All times are GMT -4. The time now is 07:06.