|
[Sponsors] |
July 10, 2016, 22:18 |
Problem in DPM_OUTPUT Macro
|
#1 |
New Member
JungHo Lee
Join Date: Mar 2015
Posts: 20
Rep Power: 11 |
Hi, guys.
Now, I'm using DEFINE_DPM_OUTPUT Macro for exporting particle information (ex: Particle position, velocity, time, et al.) First one, UDF code about particle x-position and x-velocity was made for test and compiled in fluent. This UDF was hooked by "Sample trajectories" in fluent. The plane and injection were selected in Sample trajectories, and after that I was computed. After computing is finished, .dpm file was created in fluent working folder. In this file, however, there was no particle information. Just empty file. There was no error during compiled UDF or computed by Sample trajectories. What's the problem in my simulation? My UDF coding was attached below. Thank you. #include "udf.h" DEFINE_DPM_OUTPUT(PSI_C_method, header, fp, p, t, plane) { #if RP_PARALLEL if(header) { par_fprintf_head(fp, " x u "); } if(NULLP(p)) return; par_fprintf(fp, "%f %f \n", P_POS(p)[0], P_VEL(p)[0]); #endif } |
|
July 12, 2016, 20:36 |
|
#2 |
New Member
JungHo Lee
Join Date: Mar 2015
Posts: 20
Rep Power: 11 |
Is there anyone who know this problem?
|
|
April 10, 2017, 11:17 |
|
#3 |
Member
yun
Join Date: Jul 2015
Posts: 37
Rep Power: 10 |
Hi jhlee!
Can you explain the solution if you solved it! I have exactly the same problem. Thank you! Sent from my iPhone using CFD Online Forum mobile app |
|
April 10, 2017, 13:42 |
|
#4 |
New Member
Swapnil Chavanda
Join Date: Jan 2017
Location: Pune
Posts: 19
Rep Power: 9 |
Hi jhlee
Please store no. Of memory location Sent from my Moto G (4) using CFD Online Forum mobile app |
|
April 10, 2017, 14:05 |
|
#5 | |
Member
yun
Join Date: Jul 2015
Posts: 37
Rep Power: 10 |
Quote:
in which cases do we need to use UDMs? this is little bit confusing for newbies like me to be honest! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro Problem | Gigaincfd | STAR-CCM+ | 0 | April 20, 2016 13:18 |
DEFINE_HET_RXN_RATE macro problem | zzt_1234 | Fluent UDF and Scheme Programming | 0 | December 6, 2010 03:16 |
Problem with FLUID_THREAD_P(t) macro | Sciaco | FLUENT | 0 | November 18, 2007 02:23 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |