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

UDF for periodic boundary condition

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2011, 04:35
Default UDF for periodic boundary condition
  #1
New Member
 
Angie
Join Date: Nov 2010
Posts: 17
Rep Power: 15
Angeline is on a distinguished road
Hi Guys

My case is gas solid flow in a pipe. Instead of simulating a long pipe , I take a small length using periodic BC. After every iteration the values from outlet will be updated in inlet. I want to write a UDF for this.

Can anybody help me please.


Regards
Angie
Angeline is offline   Reply With Quote

Old   May 31, 2011, 09:07
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Hi Angie,
If you don't want to use FLUENT periodic BC (maybe for its restrictions ?), you have to loop over desired faces with an exhaustive search. (it's much more better to have same topologies in two faces)

Regards,

Amir

Last edited by Amir; May 31, 2011 at 13:46.
Amir is offline   Reply With Quote

Old   June 1, 2011, 03:02
Default
  #3
New Member
 
Angie
Join Date: Nov 2010
Posts: 17
Rep Power: 15
Angeline is on a distinguished road
Thanks Amir for your reply.

Can you please elaborate it more for me to understand.......


Regards
Angie
Angeline is offline   Reply With Quote

Old   June 1, 2011, 06:45
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
Amir is on a distinguished road
Quote:
Originally Posted by Angeline View Post
Thanks Amir for your reply.

Can you please elaborate it more for me to understand.......


Regards
Angie
First, ensure whether you can use periodic boundary condition of FLUENT or not; check its restrictions in user manual. If you can use that, it wouldn't need any UDF.
If it doesn't the case, for writing UDF and for simplicity, use the same topology on both faces which you want to project data. After that, you can use 2 procedures:
1) if you have used same topologies and strategies in creating faces, FLUENT searchs faces' elements in the same manner, so you can write data in a temporary files and then use them; in this method, you have to ensure same searching manner.
2) in this method you can use exhausting search between to faces to achive appropriate cells to which you want to project data. (using this method is not reasonable and also time-consuming and it isn't recommended)

Regards,

Amir
Amir is offline   Reply With Quote

Old   April 30, 2012, 09:51
Default
  #5
New Member
 
Learner
Join Date: Nov 2011
Location: Ingolstadt
Posts: 27
Rep Power: 14
raghu.tejaswi is on a distinguished road
Hi Angeline, Amir

I assume the use of periodic BC is to reduce the computational domain. I have been using it to update the values of outlet to inlet in a 2D flow.
I am basically using it to achieve a fully developed flow (Thermally and hydrodynamically).

Amir: Could you pls clarify if I can really use periodic BC to achieve fully developed temperature profile? My results from simulations match with the analytical results but the temperature profile doesnt seem to maintain constant even after 10m length of the pipe. Is there anything I need to note before using periodic BC?

Raghu
raghu.tejaswi is offline   Reply With Quote

Old   April 30, 2012, 11:04
Default
  #6
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Hi Raghu,

Thermally fully developed doesn't mean that temperature profile no longer changes. It is the relative shape of the profile that no longer changes, and the local convection coefficient becomes a constant independent of flow axis.
macfly is offline   Reply With Quote

Old   November 7, 2015, 01:08
Talking Reason for divergence of continuity in Periodic boundary condition
  #7
Member
 
HK
Join Date: Oct 2015
Location: Madras
Posts: 31
Rep Power: 10
Luttappy is on a distinguished road
Hi all
I was working on Periodic Boundary condition for a wavy channel considering one module at a time in Fluent at very low Re (Laminar and steady).
In this case except continuity both momentum and energy equations are converging.
What might be the reason for this issue
Thanks in Advance.
Attached Images
File Type: png Untitled.png (42.7 KB, 58 views)
Luttappy 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
Resolved: Changing boundary condition with UDF according to pressure outlet boundary alpemre Fluent UDF and Scheme Programming 12 February 24, 2014 11:18
Boundary Condition Types Using Scheme and UDF Nasir FLUENT 0 September 15, 2008 22:54
UDF for pressure oulet boundary condition Jubs FLUENT 0 February 13, 2007 01:26
UDF for the boundary condition Sridhar FLUENT 3 July 13, 2001 20:18
UDF : boundary condition ID Flav FLUENT 4 June 28, 2001 10:52


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