|
[Sponsors] |
February 6, 2012, 12:20 |
UDF problem in multiphase
|
#1 |
New Member
abolfazl
Join Date: Mar 2011
Posts: 4
Rep Power: 15 |
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; } |
|
|
|
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 |