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

the punctuation token ')' error!

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools 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,186
Rep Power: 16
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Thread Tools
Display Modes

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 On
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 06:34
Saving ParaFoam views and case sail OpenFOAM Paraview & paraFoam 9 November 25, 2011 16: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 18:38


All times are GMT -4. The time now is 02:59.