CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Udf - Periodic Boundaries

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

LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2011, 05:44
Default Udf - Periodic Boundaries
New Member
Join Date: Aug 2011
Posts: 5
Rep Power: 14
Erny is on a distinguished road
I have searched the forums for a few weeks now but cannot find any relevant information on this so I finally signed up to ask.

I am creating a UDF to form a periodic boundary condition for inlet/outlet boundaries of different lengths. The basic UDF file I have written is below;-

#include "udf.h"

DEFINE_PROFILE(x_velocity_inlet, thread, index)
real x[ND_ND];
face_t f;
real Uvel[ND_ND];
real Vvel[ND_ND];
Domain *domain;
Thread *tf;

int Zone_ID=3;
tf= Lookup_Thread(domain, Zone_ID);

begin_f_loop(f, tf)
Uvel[1]=F_U(f, tf);
Vvel[1]=F_V(f, tf);
end_f_loop(f, tf)

begin_f_loop(f, thread)
F_PROFILE(f, thread, index) = (Uvel[1]);

This seems to work for just the x-velocity components. I have tried linking the Y-velocity as;-

F_PROFILE(f, thread, index) = (Uvel[1], Vvel[1]);

However the results are the same.

Eventually this will be done in 3D for a multiphase flow. If there are any useful posts/websites/guides out there then please feel free to just point me in the right direction. I would be happy to answer any questions and GREATLY appreciative of any help you could give me.

Erny is offline   Reply With Quote

Old   August 22, 2011, 09:34
New Member
Join Date: Aug 2011
Posts: 5
Rep Power: 14
Erny is on a distinguished road
It should be noted that the outlet boundary has a zone id of 3.

The UDF interprets however it is clear that there is no velocities passed to the inlet as there is no mass flow in or out of the VOF. As though the inlet and outlet are just walls.

Could someone confirm if I am referencing the F_U (X-velocity) and F_V(y-velocity) correctly?
Erny is offline   Reply With Quote

Old   July 7, 2013, 14:22
New Member
Alexey Zakharov
Join Date: Feb 2012
Location: Moscow
Posts: 8
Rep Power: 14
Alex Zak is on a distinguished road
Send a message via Skype™ to Alex Zak

I think in this case need a two UDF both U and V velocity components.

Alex Zak is offline   Reply With Quote


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
periodic boundaries Mary FLUENT 27 January 6, 2021 01:54
CGNS import in fluent - periodic boundaries. Bjarne Børresen FLUENT 2 April 25, 2013 11:12
Why can't I make the boundaries periodic? Alina FLUENT 5 April 12, 2012 14:06
periodic boundaries - flow through a net PK FLUENT 0 July 12, 2007 11:58
Periodic Boundaries in GAMBIT!! swetha FLUENT 1 November 26, 2006 22:02

All times are GMT -4. The time now is 00:25.