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

UDF problem in multiphase

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2012, 12:20
Smile UDF problem in multiphase
  #1
New Member
 
abolfazl
Join Date: Mar 2011
Posts: 4
Rep Power: 15
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

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
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 03:32
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 08:51
Problem in compiling property(density) UDF satish2968 FLUENT 3 October 31, 2008 16:06
problem with running UDF in batch mode James FLUENT 0 June 6, 2006 07:49
UDF variables F1, y / problem with UDF Fabian FLUENT 6 June 2, 2003 11:22


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