|
[Sponsors] |
August 25, 2017, 00:59 |
THREAD_SUPER_THREAD macro gives parse error
|
#1 |
New Member
Anuja Vijayan
Join Date: Mar 2017
Location: Thiruvananthapuram
Posts: 23
Rep Power: 9 |
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. |
|
Tags |
parse error, thread_super_thread |
|
|
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 |