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

Periodic Pipe Flow LES; parabolic profile

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2015, 05:31
Default hello every body
  #21
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
My case is very close to this case
l m going to simulate oscillating flow in circular pipe L=5D
At Re_tau=1440 with pressure gradient not constant value
i used periodic boundary conditions so the fluent doesnt allow to input UDF for pressure gradient if periodic just specific one
can any one know any way to go across this case
thank u all
ahmed ramadan is offline   Reply With Quote

Old   April 9, 2015, 14:05
Default
  #22
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Dear Ahmed,

You just need an UDF with a momentum source term dependent on time. This just represents the opposite of the pressure gradient you would tipically use.

Find attached a trivial example (i have not tried compilation, but it should work with most Fluent releases)
Attached Files
File Type: c unsteady_dp.c (602 Bytes, 19 views)
sbaffini is offline   Reply With Quote

Old   April 9, 2015, 15:34
Default
  #23
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
First: thank you for your time
But in the periodic boundary there is no space to compile UDF i cant inter one
And my pressure gradient dp/dz=a.cos (wt) and a varies from -4&4
I think that is little bit different
thank you again
ahmed ramadan is offline   Reply With Quote

Old   April 23, 2015, 18:07
Default
  #24
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Notice that you don't need to use it under the periodic panel. Just use the source term in a classical sense. This is the way the pressure gradient is fixed by Fluent itself (it's just a source term)
sbaffini is offline   Reply With Quote

Old   April 23, 2015, 19:15
Default
  #25
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
Sorry i cant got it !
Would you give some details
Thank you
ahmed ramadan is offline   Reply With Quote

Old   April 24, 2015, 12:11
Default
  #26
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Well:

1) Setup periodicity as usual but leave the pressure gradient as 0

2) Add a momentum source term using the supplied udf

In order for this to work as expected you have to modify the udf so that the source term has the same direction of your intended pressure gradient, the same magnitude and an opposite sign.
sbaffini is offline   Reply With Quote

Old   April 26, 2015, 02:52
Default
  #27
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
Dear Sbaffini if you are using periodic boundary condition there are no place at fluent to add momentum source term and there is no place available to add the udf for pressure gradient .... just specified number
ahmed ramadan is offline   Reply With Quote

Old   April 26, 2015, 04:44
Default
  #28
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Please, read the UDF manual on how to add a momentum source term in Fluent. If you know how to do that, you can certainly use my udf above for thst purpose. Once you do that, addong periodicity with 0 pressure gradient is trivial. I would help with pictures but i am on the cell phone now
sbaffini is offline   Reply With Quote

Old   August 13, 2015, 17:24
Default
  #29
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
How are you dear Sbaffini
I tried your advice it works well at the steady part but at the unsteady one there is some thing wrong
And i have a question when add the source term to the axial momentum it means to add this source term to all nodes on the internal zone not for the periodic nodes which is boundaries
Is that wright.
ahmed ramadan is offline   Reply With Quote

Old   August 13, 2015, 17:43
Default
  #30
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Dear Ahmed, what do you mean by something wrong in the unsteady part?

You just need to add this as classical source term
(Fluent knows how to do that) under cell zone conditions.

I am on the phone again but i will provide some screenshots as soon as possible
sbaffini is offline   Reply With Quote

Old   August 13, 2015, 17:48
Default
  #31
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
I add the udf to the cell zone condition to the axial momentum but i m asking about that to understand it physically
ahmed ramadan is offline   Reply With Quote

Old   August 13, 2015, 17:54
Default
  #32
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
It means fluent will read this udf at every node of the internal node
And will read 0 for pressure gradient at the the periodic boundaries
ahmed ramadan is offline   Reply With Quote

Old   August 13, 2015, 17:54
Default
  #33
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Well, in finite volume, the source term is applied on a cell by cell basis, just like the pressure gradient. This means that it is simply applied to all the cells.
sbaffini is offline   Reply With Quote

Old   August 13, 2015, 17:57
Default
  #34
New Member
 
ahmed ramadan belal
Join Date: Nov 2014
Posts: 14
Rep Power: 11
ahmed ramadan is on a distinguished road
Ok
I will read this part well and complete this discution
And thank you very much for your time
ahmed ramadan is offline   Reply With Quote

Old   August 13, 2015, 17:58
Default
  #35
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,152
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
I mean, there is no node implied, just cells.

However, for the record, in a finite difference setting you would have used the source term for each of the nodes you are actually solving for.
sbaffini 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
integral length scale and cross-correlation (with openfoam data, LES pipe flow) jet Main CFD Forum 1 November 7, 2016 04:23
Parabolic Velocity Profile In 3 D Pipe FLow abhimanyu_wit FLUENT 5 January 28, 2012 03:39
Blockage in pipe ( using solidwork flow simulation) jchow FloEFD, FloWorks & FloTHERM 1 January 16, 2012 16:03
Disturbed flow field at outlet boundary (Multiphase flow through pipe) Michiel CFX 17 April 21, 2010 10:14
parabolic or flat profile of flow sara Siemens 1 May 20, 2007 01:24


All times are GMT -4. The time now is 23:02.