CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

the punctuation token ')' error!

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2013, 12:25
Default the punctuation token ')' error!
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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
why this error occurred?
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.
immortality is offline   Reply With Quote

Old   June 30, 2013, 18:02
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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;"
If this works and the other doesn't, then it's possibly a bug in the parser (the algorithm that interprets the expressions) that groovyBC uses.
immortality likes this.
__________________
wyldckat 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
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


All times are GMT -4. The time now is 20:44.