|
[Sponsors] |
June 30, 2013, 12:25 |
the punctuation token ')' error!
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
I changed my variables in groovyBC as this
Code:
"p_3=p0_3/pow(1+(gamma3-1)/2*magSqr(U)/(gamma3*R*T),(gamma3/(gamma3-1)));" //"p_2_last=800000;" //"p_2_first=1600000;" "p_2=810000;"//(p_2_last-p_2_first)/(c2r-c1r)*(t_mappedr-c1r)+p_2_first Code:
Time = 0.000118 --> FOAM FATAL IO ERROR: wrong token type - expected string, found on line 30168 the punctuation token ')' file: /home/ehsan/Desktop/WR/0.000118/p.boundaryField.right.variables at line 30168. From function operator>>(Istream&, string&) in file primitives/strings/string/stringIO.C at line 56. FOAM exiting
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
June 30, 2013, 18:02 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
When in doubt, simplify and/or isolate and conquer:
Code:
"p_3_part1=1+(gamma3-1)/2*magSqr(U)/(gamma3*R*T);" "p_3_part2=(gamma3/(gamma3-1));" "p_3=p0_3/pow(p_3_part1,p_3_part2);" "p_2=810000;"
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x | Saxwax | OpenFOAM Installation | 25 | November 29, 2013 05:34 |
[OpenFOAM] Saving ParaFoam views and case | sail | ParaView | 9 | November 25, 2011 15:46 |
POSDAT problem | piotka | STAR-CD | 4 | June 12, 2009 08:43 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 20:50 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 17:38 |