|
[Sponsors] |
March 1, 2018, 11:12 |
UDF For DPM Storing Variable
|
#1 |
Member
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10 |
I am trying to store the mass of droplets before evaopration as I need it for a calculation within fluent I have tried to compile it as below but it does not seem to be working.
real old_m; DEFINE_DPM_LAW(old_mass, tp, ci) { /* store old mass */ old_m = P_MASS(tp); } I would really appreciate the help |
|
March 1, 2018, 11:30 |
|
#2 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
Does it compile? Does it give warnings? Does it crash Fluent? Does it cause divergence? Does it give no results? Does it give unexpected results? Don't let us guess your problem... |
||
March 1, 2018, 11:31 |
|
#3 |
Member
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10 |
Sorry about that It is not compiling
|
|
March 1, 2018, 11:35 |
|
#4 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
If I go to the manual entry for DEFINE_DPM_LAW, I see that they use TP_MASS(tp) to get the mass instead of P_MASS(tp). So my first guess would be to do what the manual says...
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using a calculated variable in another UDF | hwet | Fluent UDF and Scheme Programming | 12 | November 26, 2015 04:36 |
UDF error for variable Cp | B.Hamada | Fluent UDF and Scheme Programming | 4 | May 18, 2015 07:27 |
udf for variable cp | B.Hamada | Fluent UDF and Scheme Programming | 2 | April 22, 2015 15:20 |
modify a intern variable of Fluent with scheme and UDF | fanch33 | Fluent UDF and Scheme Programming | 3 | March 2, 2015 12:01 |
Do I need to use UDF to get time-averaged variable? | ivanbuz | Fluent UDF and Scheme Programming | 0 | August 11, 2009 15:26 |