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

Udf - Periodic Boundaries

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 22, 2011, 05:44
Default Udf - Periodic Boundaries
  #1
New Member
 
Join Date: Aug 2011
Posts: 5
Rep Power: 5
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;
domain=Get_Domain(1);
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]);
}
end_f_loop(f,thread)
}


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.

Thanks,
Ern
Erny is offline   Reply With Quote

Old   August 22, 2011, 09:34
Default
  #2
New Member
 
Join Date: Aug 2011
Posts: 5
Rep Power: 5
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
Default
  #3
New Member
 
Alexey Zakharov
Join Date: Feb 2012
Location: Moscow
Posts: 8
Rep Power: 5
Alex Zak is on a distinguished road
Send a message via Skype™ to Alex Zak
Hi!

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

Alex.
Alex Zak is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
periodic boundaries Mary FLUENT 10 January 9, 2014 23:09
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 23:02


All times are GMT -4. The time now is 03:51.