Author |
Message |
Brown.GS (manking)
New member Username: manking
Post Number: 2 Registered: 11-2005
| Posted on Thursday, November 10, 2005 - 07:51 am: | |
Now,I have a trouble using PDE. The problem raise from the user_guide_500_2up.pdf I saw a example on page 28. The script as flow: TITLE 'heat folw around an insulating blob' { the problem identification } VARIABLES { system variables } Phi { the environment temperature } DEFINITIONS { parameter definitions } k=1 r=0.5 EQUATIONS div(-k*grad(phi))=0 {differetal equation} ! CONSTRAINTS { Integral constraints } BOUNDARIES { The domain definition } REGION 1'box' START(-1,-1) value(Phi)=0 line to (1,-1) natural(Phi)=0 line to (1,1) value(Phi)=1 line to (-1,1) natural(Phi)=0 line to close region 2 'blob' k=0.001 !?????? start 'ring'(r,0) arc(center=0,0) angle=360 {?????} PLOTS CONTOUR(Phi) vector(-k*grad(phi) ELEVATION (Phi) from(0,-1) to (0,1) ELEVATION (normal(-k*grad(Phi))) on 'ring'} END My software versions is 5.0.7 . Once you click the "run" ,it will generate dialog "Illegal item encountered in input". why? Can you help me? Thank you! |
Poletaev (nick)
Member Username: nick
Post Number: 4 Registered: 11-2005
| Posted on Thursday, November 10, 2005 - 11:53 am: | |
Remove a brace after ELEVATION (normal(-k*grad(Phi))) on 'ring'} |
Poletaev (nick)
Member Username: nick
Post Number: 5 Registered: 11-2005
| Posted on Thursday, November 10, 2005 - 12:23 pm: | |
Close right parenthesis after vector(-k*grad(phi)
|
Brown.GS (manking)
Junior Member Username: manking
Post Number: 3 Registered: 11-2005
| Posted on Friday, November 11, 2005 - 03:29 am: | |
Thank you I have modified as flow: ELEVATION Phi from(0,-1) to (0,1) ELEVATION normal(-k*grad(Phi)) on 'ring' end BUT it have the problem Once you click the "run" ,it will generate dialog "Illegal item encountered in input". The mouse stayed the character "elevation". |
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 493 Registered: 06-2003
| Posted on Friday, November 11, 2005 - 03:29 pm: | |
Start at the point marked as "Illegal item" and work backward. Somewhere not far away, you will find a typographically incorrect construct. Most likely, you will find that you have not corrected the missing paren as identified by Nick Poletaev in the posting immediately before yours.
|