|
[Sponsors] |
March 2, 2006, 11:01 |
Urgent-Problem in UDF
|
#1 |
Guest
Posts: n/a
|
I am using a user defined scalar transport equation (UDS) in which the SOURCE term is defined by the macro DEFINE_SOURCE (name, c, t, dS, eqn).
In this macro, I need to calculate the diameters of all the particles in a cell which can be calculated in discrete phase model (DPM) as P_DIAM (p). Since the Tracked_particle pointer p is not an argument in DEFINE_SOURCE (name, c, t, dS, eqn), it can not be recognized if P_DIAM (p) is directly used. How can I get the particle diameter in a cell when using DEFINE_SOURCE (name, c, t, dS, eqn)? Is there any other parameter in FLUENT which stands for the particle diameters in a cell? |
|
March 2, 2006, 11:15 |
Re: Urgent-Problem in UDF
|
#2 |
Guest
Posts: n/a
|
There is no easy way to access particle diameters during fluid iterations. Diameters are not stored in cells because fluent does not need them for fluid iterations. If you need the diameters you will have to write an additional udf which stores the needed diameters in user defined memories for later access. This has to be done during the particle tracking.
Another option would be to calculate the UDS source term during the particle tracking, store it in an UDM and retrieve it later. Good Luck, RoM |
|
March 2, 2006, 11:35 |
Re: Urgent-Problem in UDF
|
#3 |
Guest
Posts: n/a
|
Thank you very much! Your suggestions are very constructive. I have to make a try even though it is hard for me.
Josh |
|
March 2, 2006, 15:54 |
Re: Urgent-Problem in UDF
|
#4 |
Guest
Posts: n/a
|
Another way, you could do something with the MACRO: DEFINE_DPM_SCALAR_UPDATE as is in the example of the same macro.
You can try, post the results and erros... Lourival |
|
March 2, 2006, 23:01 |
Re: Urgent-Problem in UDF
|
#5 |
Guest
Posts: n/a
|
Thank you very much for your suggestion. I will try this as well.
Josh |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Problem | ozgur | Fluent UDF and Scheme Programming | 18 | January 17, 2016 14:40 |
Pressure profile UDF for unsteady-state problem? | Mohsen Keshavarzian | FLUENT | 2 | August 20, 2008 04:22 |
parallel UDF problem | kerem | FLUENT | 2 | June 20, 2006 06:56 |
Switch problem! using 2 custom udf laws at the same time | HP | FLUENT | 0 | September 15, 2004 09:48 |
UDF variables F1, y / problem with UDF | Fabian | FLUENT | 6 | June 2, 2003 10:22 |