CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Problem in DPM_OUTPUT Macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2016, 22:18
Default Problem in DPM_OUTPUT Macro
  #1
New Member
 
JungHo Lee
Join Date: Mar 2015
Posts: 20
Rep Power: 11
jhlee9622 is on a distinguished road
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
}
jhlee9622 is offline   Reply With Quote

Old   July 12, 2016, 20:36
Default
  #2
New Member
 
JungHo Lee
Join Date: Mar 2015
Posts: 20
Rep Power: 11
jhlee9622 is on a distinguished road
Is there anyone who know this problem?
jhlee9622 is offline   Reply With Quote

Old   April 10, 2017, 11:17
Default
  #3
Member
 
yun
Join Date: Jul 2015
Posts: 37
Rep Power: 10
gush is on a distinguished road
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
gush is offline   Reply With Quote

Old   April 10, 2017, 13:42
Default
  #4
New Member
 
Swapnil Chavanda
Join Date: Jan 2017
Location: Pune
Posts: 19
Rep Power: 9
swpnl9282@gmail.com is on a distinguished road
Hi jhlee
Please store no. Of memory location

Sent from my Moto G (4) using CFD Online Forum mobile app
swpnl9282@gmail.com is offline   Reply With Quote

Old   April 10, 2017, 14:05
Default
  #5
Member
 
yun
Join Date: Jul 2015
Posts: 37
Rep Power: 10
gush is on a distinguished road
Quote:
Originally Posted by swpnl9282@gmail.com View Post
Hi jhlee
Please store no. Of memory location

Sent from my Moto G (4) using CFD Online Forum mobile app
it is needed to use user defined memory locations then?

in which cases do we need to use UDMs? this is little bit confusing for newbies like me to be honest!
gush is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 10:01.