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

Flow recirculation - UDF boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2020, 12:57
Lightbulb Flow recirculation - UDF boundary conditions
  #1
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Background: My goal is to study flow over an isothermal plate covered with hemispherical wall features. The far-field temperature is equal to 0.9*Wall_Temperature.

Problem: To simulate an "infinite" domain, I impose periodic BC sideways and I would need flow recirculation from exit to inlet. I am running LES so I have to recirculate Density*Velocity at every time-step.

Question: Would you have any practical suggestions on how to do it?

Thank you.
cfdEng_ is offline   Reply With Quote

Old   April 20, 2020, 14:19
Default Flow Recirculation
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
What do you mean by Flow Recirculation? If it implies translational periodicity, then you can make inlet and outlet periodic, just like your side walls.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 20, 2020, 15:16
Default
  #3
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Quote:
Originally Posted by vinerm View Post
What do you mean by Flow Recirculation? If it implies translational periodicity, then you can make inlet and outlet periodic, just like your side walls.
Ideally, I would like to simulate an infinitely long domain so that the flow field is not affected by the entrance effect.

I don't think I can simply impose translational periodicity between inlet and outlet. The fluid experiences a total pressure drop throughout the domain.
cfdEng_ is offline   Reply With Quote

Old   April 20, 2020, 16:26
Default Infinitely Long Domain
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
For modeling an infinitely long domain, translational periodicity is the most suitable condition. Translational periodicity allows user to specify either mass flow rate, which, of course, stays constant along the length or the pressure drop per unit length. So, you can specify one and Fluent will calculate the other. Other alternative is to make it really, really long.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 23, 2020, 10:04
Default
  #5
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Quote:
Originally Posted by vinerm View Post
For modeling an infinitely long domain, translational periodicity is the most suitable condition. Translational periodicity allows user to specify either mass flow rate, which, of course, stays constant along the length or the pressure drop per unit length. So, you can specify one and Fluent will calculate the other. Other alternative is to make it really, really long.
Thank you very much, that was very useful. I would have one more related question.

In my case, I have two periodic BCs: side walls and inlet-outlet. Thus, I need to set the pressure drop to 0 sideways (periodic side walls), and to a specified value in the flow direction (inlet-outlet). However, through the GUI, I can only define a single pressure drop value that is applied to all periodic BCs.

Do you know how can I impose a specified pressure drop from inlet to outlet and a 0 pressure drop sideways?

Thank you in advance.
cfdEng_ is offline   Reply With Quote

Old   April 23, 2020, 10:29
Default Periodic BC
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
I am afraid that's not possible. However, if there is not cross flow, then you can use symmetry condition for the side wall. If there is cross flow, then you have no choice but to either make the domain very long or use a UDF.
cfdEng_ likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 23, 2020, 17:10
Default
  #7
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Thank you for your answer.
cfdEng_ is offline   Reply With Quote

Old   April 23, 2020, 21:26
Default
  #8
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You use the periodic BC for the inlet and outlet.

For the sides, you use a periodic interface.
LuckyTran is offline   Reply With Quote

Old   April 24, 2020, 05:05
Default Periodicity
  #9
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
It won't matter whether you use interface to create translational periodic boundary or directly create it via TUI. The periodic conditions apply to all translational boundaries.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 28, 2020, 19:10
Default
  #10
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Thank you for the explanation.

According to the FLUENT user's guide, the actual temperature field is not periodic; nevertheless, the scaled temperature (theta) obeys the periodic condition. (Link: https://www.afs.enea.it/project/nept...4.htm#eq16.4.4).

Question 1: if the scaled temperature at the inlet is equal to the scaled temperature at the exit, and we specify Tbulk and Twall, how can the actual temperature not be periodic? (see eq. 13.4-1 from the user's guide)

Question 2: is the 1st Law of Thermodynamics satisfied by such a periodic heat transfer solution?
cfdEng_ is offline   Reply With Quote

Old   April 29, 2020, 12:26
Default Thermal Periodicity
  #11
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
The periodicity definition is nothing but a way of saying that the profile is independent of axial location. While the temperature field changes, the profile defined with transformation of variable to \theta maintains its value. This does not imply that T has to maintain its value; it only has to maintain its profile, which is true for a developed flow. Apparently, that is the definition of the developed flow - no variation of profile along the axial direction. T (also \theta) will still be function of radial or wall normal direction but not of the direction along the wall.

This has no conflict with first law of thermodynamics since the heat flow depends on gradient and gradient is nothing but mathematical description of profile; similar profile implies similar heat flow.
cfdEng_ likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 10, 2020, 15:30
Default
  #12
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Quote:
Originally Posted by vinerm View Post
The periodicity definition is nothing but a way of saying that the profile is independent of axial location. While the temperature field changes, the profile defined with transformation of variable to \theta maintains its value. This does not imply that T has to maintain its value; it only has to maintain its profile, which is true for a developed flow. Apparently, that is the definition of the developed flow - no variation of profile along the axial direction. T (also \theta) will still be function of radial or wall normal direction but not of the direction along the wall.
Thank you very much for your answer. I am still not 100% sure about what happens to Density.

Question: pressure-based solvers calculate Density from the equation of state: it is a function of the local temperature. Nevertheless, in our case, continuity has to be respected between inlet and outlet and velocity is directly periodic (Uin=Uout). Therefore, it seems we would end up with two requirements for Density. How can that be the case?

Thank you in advance.
cfdEng_ is offline   Reply With Quote

Old   May 10, 2020, 16:41
Default Continuity
  #13
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Only for incompressible flows average velocity at inlet is equal to average velocity at outlet. It is a special case of real scenario. In reality, it is not the velocity but mass flow rate that is equal. So, it is the area integral of the product of density and velocity that remain same not the velocity itself.
cfdEng_ likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 10, 2020, 18:52
Default
  #14
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Only for incompressible flows average velocity at inlet is equal to average velocity at outlet. It is a special case of real scenario. In reality, it is not the velocity but mass flow rate that is equal. So, it is the area integral of the product of density and velocity that remain same not the velocity itself.
So if I understood correctly, by applying FLUENT's periodic inlet BC to compressible flows:

1. (rho*V)in = (rho*V)out
2. Temperature follows the treatment discussed previously
3. rho is calculated through the equation of state
4. V is derived from continuity

Am I right?

Thank you very much for your helpfulness.
cfdEng_ is offline   Reply With Quote

Old   May 11, 2020, 04:53
Default Boundary Treatment
  #15
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Yes, that is correct.
cfdEng_ likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 20, 2020, 11:43
Default
  #16
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Thank you very much for your helpfulness. I would like to ask another question if possible.

Background: My geometry is a duct with a squared section. As you suggested, I imposed periodic BC from inlet to outlet and symmetry BC to the sidewalls and the top surface. The bottom surface is a no-slip wall with uniform wall temperature, Twall=0.9*Tbulk.

Question: By simulating a hot flow over a cold plate I would expect to have a "parabolic" temperature profile where Tmin=Twall and Tmax=Tfreestream. However, I get a hot core with cold walls. How could I fix this problem and impose Tfreestream=Tmax?
cfdEng_ is offline   Reply With Quote

Old   May 20, 2020, 16:19
Default Parabolic profile
  #17
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Any particular reason for expecting a parabolic profile? Top should not be symmetric, however, you can define it as free-slip wall.
cfdEng_ likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 20, 2020, 17:04
Default
  #18
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Any particular reason for expecting a parabolic profile? Top should not be symmetric, however, you can define it as free-slip wall.
Thank you for your reply.

I want to simulate forced convection of warm air over a cold plate, hence Tfreestream=Ttop=Tmax and Twall=Tmin. By contrast, I am getting a hot core with cold air close to the sidewalls and the top surface.
cfdEng_ is offline   Reply With Quote

Old   May 21, 2020, 07:51
Default Boundary Condition
  #19
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Maximum temperature at the top and lowest at the bottom do not imply parabolic profile in between. That is defined by flow structure. If it is laminar flow, then you can expect parabolic profile, else, it would have very high gradient close to the wall and almost plug flow like structure outside. But if you are getting low temperature at the top, then that is due to wrong boundary condition on the top. So, check your thermal boundary condition.
cfdEng_ likes this.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 21, 2020, 11:58
Default
  #20
New Member
 
Join Date: Apr 2020
Posts: 26
Rep Power: 6
cfdEng_ is on a distinguished road
I am running a low-speed laminar simulation. At the top surface, I have simply set heat flux=0. Should I adopt a different thermal BC?
cfdEng_ is offline   Reply With Quote

Reply

Tags
boundary, recirculation, udf


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 07:40
Fluent udf F_PROFILE setting different boundary conditions for different faces syble Fluent UDF and Scheme Programming 0 March 31, 2016 00:35
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
Please help with flow around car modelling! Tudor Miron CFX 17 March 19, 2004 20:23


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