|
[Sponsors] |
February 8, 2012, 11:26 |
UDF problem in multiphase boundary condition
|
#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; } |
|
April 5, 2015, 22:38 |
Check your settings and maybe geometry.
|
#2 |
New Member
Join Date: Oct 2014
Posts: 4
Rep Power: 12 |
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.
|
|
|
|
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 03:19 |
a problem with Boundary condition | M Rad | Main CFD Forum | 12 | November 27, 1998 13:49 |