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

THREAD_SUPER_THREAD macro gives parse error

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 25, 2017, 00:59
Default THREAD_SUPER_THREAD macro gives parse error
  #1
New Member
 
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9
anuarun is on a distinguished road
Hello friends,
I have written the following UDF for changing the vapour density based on mixture domain temperature. I am using a mixture model for simulating two phase flow.

While interpretation, it shows
line 51: parse error
line 52: parse error
line 53: undeclared variable rho



DEFINE_PROPERTY(Vapour_density,c,t)
{
Thread *tp;
tp = THREAD_SUPER_THREAD(t); /*line 51*/
real T = C_T(c,tp); /*line 52*/
real rho; /*line 53*/
rho = (0.00329*exp(0.19039*T) - 0.05762)*1000000.0;
return p_v;
}

I cannot find any mistake in it. Is it because I have interpreted instead of compilation (it is not likely to be so)? Any help is greatly appreciated.
anuarun is offline   Reply With Quote

 

Tags
parse error, thread_super_thread


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
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 00:10
error compiling modified applications yvyan OpenFOAM Programming & Development 21 March 1, 2016 04:53
Undeclared Identifier Errof UDF SteveGoat Fluent UDF and Scheme Programming 7 October 15, 2014 07:11
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44


All times are GMT -4. The time now is 12:25.