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

Temperature Data From Outlet to Inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By `e`

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2016, 10:37
Default Temperature Data From Outlet to Inlet
  #1
New Member
 
alper yıldırım
Join Date: Feb 2014
Posts: 10
Rep Power: 12
shzinwoyk is on a distinguished road
Dear forum Users,

I met with a small problem.

In short, I need to do a thermal analysis of a stream in the tank. There is an inlet, outlet and heater near the tank floor. The tank's half full. Inlet, outlet and heater surface are below phase 1. Normally I use recirculation BC but it does not work with VOF. The Inlet and Outlet are only in Phase 1. It's a heating process. There is a circulation system in the tank. I would like to define the outlet temperature as inlet temperature. This is transient analysis. My code background is at the entry level. I prepared some codes but I get error messages.

I think it is a very simple problem for experienced coders. Could you help or guide me in this matter?

Thank you
Best Regards
shzinwoyk is offline   Reply With Quote

Old   November 14, 2016, 06:17
Default
  #2
New Member
 
alper yıldırım
Join Date: Feb 2014
Posts: 10
Rep Power: 12
shzinwoyk is on a distinguished road
No one with knowledge?
shzinwoyk is offline   Reply With Quote

Old   November 14, 2016, 20:22
Default
  #3
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Is the temperature distribution at the outlet uniform? Then you could set the inlet boundary as the average of the outlet, otherwise you'll need to carry the distribution between boundaries (easier if the boundaries are conformal).
`e` is offline   Reply With Quote

Old   November 15, 2016, 02:18
Default
  #4
New Member
 
alper yıldırım
Join Date: Feb 2014
Posts: 10
Rep Power: 12
shzinwoyk is on a distinguished road
Quote:
Originally Posted by `e` View Post
Is the temperature distribution at the outlet uniform? Then you could set the inlet boundary as the average of the outlet, otherwise you'll need to carry the distribution between boundaries (easier if the boundaries are conformal).
Probably temperature distribution is not uniform at the outlet but ı want to get average value and to define at inlet this value. Boundaries are not conformal and area, shape..etc are different.
shzinwoyk is offline   Reply With Quote

Old   November 15, 2016, 03:54
Default
  #5
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
That shouldn't be too difficult to write code for. Have a read of: http://www.cfd-online.com/Forums/flu...tml#post613859

They have looped over a boundary (for your case, use the outlet boundary ID) and calculated the weighted average (by boundary face area) temperature. Apply this average temperature to all boundary faces on the inlet using a DEFINE_PROFILE macro (the loop over the outlet boundary temperature values should also sit inside this macro; no need for their DEFINE_EXECUTE_AT_END in your case).
Berkk likes this.
`e` is offline   Reply With Quote

Old   November 15, 2016, 04:33
Default
  #6
New Member
 
alper yıldırım
Join Date: Feb 2014
Posts: 10
Rep Power: 12
shzinwoyk is on a distinguished road
Quote:
Originally Posted by `e` View Post
That shouldn't be too difficult to write code for. Have a read of: http://www.cfd-online.com/Forums/flu...tml#post613859

They have looped over a boundary (for your case, use the outlet boundary ID) and calculated the weighted average (by boundary face area) temperature. Apply this average temperature to all boundary faces on the inlet using a DEFINE_PROFILE macro (the loop over the outlet boundary temperature values should also sit inside this macro; no need for their DEFINE_EXECUTE_AT_END in your case).

Thx for massege, I will try If it will work correctly, I will share my code
shzinwoyk is offline   Reply With Quote

Old   November 21, 2016, 04:16
Default Drum brake
  #7
New Member
 
sanju
Join Date: Nov 2016
Posts: 19
Rep Power: 10
sanjeevkumar patne is on a distinguished road

Hi everyone,

I will take discussion little deviated.

I am doing heat analysis of drum using fluent.
I am finding difficult in giving inlet and outlet boundary condition.
As it is inlet flow and I feel defining a cylindrical or rectangular region is not appropriate.

So kindly suggest me as I am new to it(student).

Thanks in advance.
sanjeevkumar patne is offline   Reply With Quote

Old   October 21, 2021, 10:37
Default
  #8
New Member
 
AHMED KANDIL
Join Date: Oct 2021
Posts: 14
Rep Power: 5
Ahmed kandil is on a distinguished road
please ,
i need this code as ineed it for my research could you help me..
Ahmed kandil is offline   Reply With Quote

Reply


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
Pressure inlet vs outlet position, transient, time dependent pressure and gravity silent2608 FLUENT 0 February 6, 2016 11:19
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
To change temperature in mass flow inlet boundary condition per iteration ajinkya201991 FLUENT 1 July 11, 2014 12:29
Temperature at a velocity/mass flow outlet saisanthoshm88 CFX 1 July 8, 2014 19:35
Inlet won't apply UDF and has temperature at 0K! tccruise Fluent UDF and Scheme Programming 2 September 14, 2012 07:08


All times are GMT -4. The time now is 18:22.