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

parse error- residence time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2017, 07:20
Arrow parse error- residence time
  #1
Member
 
yun
Join Date: Jul 2015
Posts: 37
Rep Power: 10
gush is on a distinguished road
i need to calculate particle residence time in each cell and found out a code in the forum. but i cant interpret it because it gives parse error. i also checked parse error solutions mentioned here (file name, same folder issue etc.) but couldnt solve it also. i have some other UDFs as this one and they work fine.

my questions are:
1- can you please give me an idea about parse error?
2- is this code sutiable for particle residence time calculations? (if it is possbile to compile or interpret)

DEFINE_DPM_SCALAR_UPDATE(dose, c, t, initialize, p)
{

if (initialize)
{
P_USER_REAL(p,0) = 0; /* this variable will hold the cell residence time, we initialize it here */
}
else
{
P_USER_REAL(p,0) = P_TIME(p)-P_TIME0(p) ; /* store the cell residence time into the variable */
}
}
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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


All times are GMT -4. The time now is 03:39.