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

Half parabolic profile for the velocity inlet

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By flotus1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2012, 09:27
Post Half parabolic profile for the velocity inlet
  #1
New Member
 
adele
Join Date: Apr 2012
Location: France
Posts: 7
Rep Power: 14
adele is on a distinguished road
Hi,
I'm trying to model the heat transfer in a shell and tube heat exchanger and I'm using Fluent for this. To simplify the problem, and to reduce the time calculation, I cut the geometry in 6 in the length direction, and study just a 6th of the geometry. That is why my velocity inlet pipes (the small ones) are cut either in 2 or in 6 equal parts. You can see a picture of the geometry here.




However I want to insert a parabolic profile with a UDF in the 3 cut pipes by respecting the center of the paraboloid and the cut geometry.
My questions are:
- is it possible to define the three inlet faces of the pipes as three different velocity inlet faces, and to define a parabolic profile for each one? Or do I have to group the faces and write only one UDF for the velocity profile?
- Is it possible to insert a parabolic profile even if the tube is cut? I mean, without changing anything in the C code. If yes, how to define a different coordinate system origin for each one? I read somewhere that it's better when the system origin in the UDF is also the system origin in Fluent
Thank you in advance for the help!
Adele
adele is offline   Reply With Quote

Old   July 19, 2012, 09:50
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Quote:
is it possible to define the three inlet faces of the pipes as three different velocity inlet faces
Yes it is. This is the way to do it.

Quote:
and to define a parabolic profile for each one
If you know the coordinates of the center of the small pipes, this should be quite easy. You just need to offset the velocity profiles in your UDF.
Quote:
Is it possible to insert a parabolic profile even if the tube is cut
No problem. In the UDF, you read the face centroids of all the cells adjacent to the inlet. If some o fthe faces are missing because the geometry was cut, the loop over the faces will just finish earlier.
Quote:
If yes, how to define a different coordinate system origin for each one?
Like I said, I wouldn't use different coordinate systems. I would offset the velocity profiles instead.
adele likes this.
flotus1 is offline   Reply With Quote

Old   July 19, 2012, 10:26
Smile Thank you!
  #3
New Member
 
adele
Join Date: Apr 2012
Location: France
Posts: 7
Rep Power: 14
adele is on a distinguished road
Thank you so much for the quick and efficient reply!

I try this solution as soon as possible and if I have problems, I will come back to you!

Adele
adele is offline   Reply With Quote

Old   July 19, 2012, 11:31
Cool offset velocity
  #4
New Member
 
adele
Join Date: Apr 2012
Location: France
Posts: 7
Rep Power: 14
adele is on a distinguished road
One more question:

I made a traditional UDF of a paraboloid profile for the central pipe, whose center corresponds to the coordinates system origin.

I will do the same for the other pipes, but how do I take into account the offset the velocity? Is there a special code for this, or do I have to adapt my equation in function of the x position?

thanks in advance
adele is offline   Reply With Quote

Old   July 19, 2012, 11:43
Default
  #5
New Member
 
Patrick
Join Date: Apr 2012
Posts: 28
Rep Power: 14
Patrick1 is on a distinguished road
Quote:
Originally Posted by adele View Post
One more question:

I made a traditional UDF of a paraboloid profile for the central pipe, whose center corresponds to the coordinates system origin.

I will do the same for the other pipes, but how do I take into account the offset the velocity? Is there a special code for this, or do I have to adapt my equation in function of the x position?

thanks in advance
You could use a conditional statement. ie

if x<rangeXupper1 and x>rangeXlower1 and y<rangeYupper1 and y>rangeYlower1 then

velocity=... (function for inlet 1)

elseif x<rangeXupper2 and x>rangeXlower2 and y<rangeYupper2 and y>rangeYlower2 then

velocity=.... (function for inlet 2)

Where rangeX... are the bounds for the x and y co-ordinates of each inlet.

Or yes just adapt the equation which is perhaps a simpler way of doing it, this way allows you to change the equation and position individually though, which might be quicker if you need to change either of them.
Patrick1 is offline   Reply With Quote

Reply

Tags
3d-geometry, cut pipes, udf, velocity profile


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
UDF inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 15 November 25, 2016 06:45
[swak4Foam] Scale discrete inlet velocity profile with groovyBC cboss OpenFOAM Community Contributions 1 June 20, 2010 13:02
How to define a parabolic velocity inlet of particles with UDF zumaqiong FLUENT 2 February 22, 2010 09:46
Inlet Velocity in CFX aeroman CFX 12 August 6, 2009 18:42
how to give sectional velocity profile at inlet? fkonias CFX 3 January 29, 2008 09:28


All times are GMT -4. The time now is 17:20.