CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   CEL simple error (https://www.cfd-online.com/Forums/cfx/113569-cel-simple-error.html)

naishadh February 22, 2013 00:51

CEL simple error
 
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. :)

jrunsten February 22, 2013 02:33

Change to

RefPressure = 10 [Pa]
and
(areaAve(Velocity)@inlet)^2

Should do it? I think =/

naishadh February 22, 2013 02:45

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...:confused:
Is there any other basic things i need to assign before I write my expression ?

Thank you...!!


All times are GMT -4. The time now is 13:28.