CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

can UDF change the boundary type or turbulence model?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2015, 22:15
Default can UDF change the boundary type or turbulence model?
  #1
New Member
 
Haoting Wang
Join Date: Jan 2015
Location: Virginia
Posts: 19
Rep Power: 11
hotin87 is on a distinguished road
Hi,

I am trying to change the turbulence model I am using depending on the flow speed. For example, I want to use a laminar model when flow speed is 0, and a realizable k-e model when the flow speed is 4 m/s. If possible, how can we do that through UDF?
hotin87 is offline   Reply With Quote

Old   January 29, 2015, 08:12
Default
  #2
Member
 
Join Date: Jul 2013
Posts: 80
Rep Power: 13
upeksa is on a distinguished road
It is not possible by UDF. It might be possible by an interaction scheme-UDF, but it seems quite complex.

I can't help you, I don't know a lot about scheme.

Anyway, what you are trying, if it is possible and you can implement it, I think that I will not be numerically stable, besides it does not make sense to me.

If I where you, I would check in your ANSYS Fluent manual the chapter called "How do I choose my turbulent model", for further information.
upeksa is offline   Reply With Quote

Old   January 29, 2015, 10:23
Default
  #3
New Member
 
Haoting Wang
Join Date: Jan 2015
Location: Virginia
Posts: 19
Rep Power: 11
hotin87 is on a distinguished road
Do you think it would be numerically unstable if I keep changing the models? But if the real condition is like a process have both larminar and turbulent flows at different time, would it be OK if I just use the turbulence model?

Quote:
Originally Posted by upeksa View Post
It is not possible by UDF. It might be possible by an interaction scheme-UDF, but it seems quite complex.

I can't help you, I don't know a lot about scheme.

Anyway, what you are trying, if it is possible and you can implement it, I think that I will not be numerically stable, besides it does not make sense to me.

If I where you, I would check in your ANSYS Fluent manual the chapter called "How do I choose my turbulent model", for further information.
hotin87 is offline   Reply With Quote

Old   January 30, 2015, 04:23
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Doesn't the turbulent model give nearly similar results as the laminar model when you apply it to a laminar situation?

In that case I would just use the turbulent model everywhere. You will use some unnecessary computation time on calculating the (small) turbulence in the laminar zones, but I would not worry about that.
pakk is offline   Reply With Quote

Old   January 30, 2015, 11:19
Default
  #5
New Member
 
Haoting Wang
Join Date: Jan 2015
Location: Virginia
Posts: 19
Rep Power: 11
hotin87 is on a distinguished road
Quote:
Originally Posted by pakk View Post
Doesn't the turbulent model give nearly similar results as the laminar model when you apply it to a laminar situation?

In that case I would just use the turbulent model everywhere. You will use some unnecessary computation time on calculating the (small) turbulence in the laminar zones, but I would not worry about that.
The results are different, I don't understand why. I thought in the turbulence model, when velocity is low, there are some mechanism that can depress the turbulence model. But it looks it's not like that.

The attached figure show the difference. It plots the temperature, the upper one is using a laminar model, the lower one is using a turbulence model. The velocity is 0. All the other boundary conditions are the same.

Untitled.jpg
hotin87 is offline   Reply With Quote

Old   January 30, 2015, 16:28
Default
  #6
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
Did you try the rng k-epsilon?
__________________
Google is your friend and the same for the search button!
ghost82 is offline   Reply With Quote

Old   January 30, 2015, 18:26
Default
  #7
New Member
 
Haoting Wang
Join Date: Jan 2015
Location: Virginia
Posts: 19
Rep Power: 11
hotin87 is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
Did you try the rng k-epsilon?
I see, the correct initial value of k and e seems very important, I used 1 as the initial value before. Looks like that is not correct.
hotin87 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
inlet pressure is higher than outlet pressure for fan sivakumar OpenFOAM Pre-Processing 16 December 30, 2017 15:16
Simulation won't show turbulence pete_87 OpenFOAM Running, Solving & CFD 4 June 25, 2014 12:35
T Junction Stability ignacio OpenFOAM Running, Solving & CFD 5 May 2, 2013 11:44
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 15:16
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


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