CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF problem in multiphase boundary condition

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

LinkBack Thread Tools Display Modes
Old   February 8, 2012, 11:26
Lightbulb UDF problem in multiphase boundary condition
New Member
Join Date: Mar 2011
Posts: 4
Rep Power: 6
abolfazl364 is on a distinguished road
Hi everyone!

I am simulating a transient multiphase problem in which I have gas and solid particles in a duct and from on of the outlets I want just let particles go out and not the air, so I tried to test a UDF for my purpose (written below) but it does not work and it seems that even after 13 seconds the particles are in the first cell of the material inlet.

I look forward for your kind comments, solutions or correction for my UDF file.

/************************************************** *****************/
/*This UDF is an implementation of the degassing boundary condition*/
/************************************************** *****************/

#include "udf.h"
#include "sg.h"
#include "sg_mphase.h"
#include "flow.h"
#include "mem.h"
#include "metric.h"

DEFINE_SOURCE(Inlet_x_velocity, cell, thread, dS, eqn)
real source;
Thread *Material_outlet = THREAD_SUPER_THREAD(thread);

source = -C_R(cell,thread)*C_VOF(cell,thread)/CURRENT_TIMESTEP ;

C_UDMI(cell,Material_outlet,0) = source;

dS[eqn] = -C_R(cell,thread)/CURRENT_TIMESTEP;

return source;
abolfazl364 is offline   Reply With Quote

Old   April 5, 2015, 21:38
Default Check your settings and maybe geometry.
New Member
Join Date: Oct 2014
Posts: 3
Rep Power: 3
Upyoung is on a distinguished road
There is no wrong of your code compared to UDF manual. I suppose that you had some setting mistake, can you give the set up step by step.
Upyoung is offline   Reply With Quote


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
boundary condition problem in centrifugal compressor jafar Main CFD Forum 0 February 7, 2010 05:40
UDF for transient boundary condition? Shankar FLUENT 1 November 22, 2003 09:10
UDF Boundary Condition Victor FLUENT 2 November 6, 2003 12:37
How to resolve boundary condition problem? sam FLUENT 2 July 20, 2003 02:19
a problem with Boundary condition M Rad Main CFD Forum 12 November 27, 1998 13:49

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