|
[Sponsors] |
February 22, 2013, 01:51 |
CEL simple error
|
#1 |
New Member
Naishadh
Join Date: Jan 2013
Posts: 2
Rep Power: 0 |
ERROR
Syntax error detected in the expression assigned to 'CP'. Successfully read 22 characters: RefPressure == 10 [Pa] then error detected at: Dynhead=0.5 * areaAve(Density)@inlet * areaAve(Velocity)@inlet^2 cp=(Pressure-RefPressure)/Dynhead Details - Syntax error: variable name may not follow units specifier. . . . I have tried using units for density and velocity but its not working....!! Can anyone help me out with proper way to assign units.. ? I am naive in CFX and CEL sooo...!!! Thank you. Last edited by naishadh; February 22, 2013 at 03:11. |
|
February 22, 2013, 03:33 |
|
#2 |
Senior Member
|
Change to
RefPressure = 10 [Pa] and (areaAve(Velocity)@inlet)^2 Should do it? I think =/ |
|
February 22, 2013, 03:45 |
|
#3 |
New Member
Naishadh
Join Date: Jan 2013
Posts: 2
Rep Power: 0 |
Thank you Jrunsten for your reply...
I did try that and if I use '=' its showing me... ERROR Syntax error detected in the expression assigned to 'CP'. Successfully read 12 characters: RefPressure then error detected at: = 10 [Pa]Dynhead=0.5 * areaAve(Density)@inlet * (areaAve(Velocity)@inlet)^2 cp=(Pressure-RefPressure)/Dynhead Details - Unexpected character. . . . and I used same syntax as u mentioned and still it shows.. ERROR Syntax error detected in the expression assigned to 'CP'. Successfully read 22 characters: RefPressure == 10 [Pa] then error detected at: Dynhead=0.5 * areaAve(Density)@inlet * (areaAve(Velocity)@inlet)^2 cp=(Pressure-RefPressure)/Dynhead Details - Syntax error: variable name may not follow units specifier. . . . its first time I am using CEL... Is there any other basic things i need to assign before I write my expression ? Thank you...!! |
|
Tags |
cel expression, cfx error, cfx simple error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 08:24 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
compile errors of boundary condition "expDirectionMixed" | liying02ts | OpenFOAM Bugs | 2 | February 1, 2010 21:11 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |