CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CEL simple error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 22, 2013, 01:51
Exclamation CEL simple error
  #1
New Member
 
Naishadh
Join Date: Jan 2013
Posts: 2
Rep Power: 0
naishadh is on a distinguished road
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.
naishadh is offline   Reply With Quote

Old   February 22, 2013, 03:33
Default
  #2
Senior Member
 
Josef Runsten
Join Date: Jul 2010
Location: Gothenburg, Sweden
Posts: 188
Rep Power: 24
jrunsten will become famous soon enough
Send a message via MSN to jrunsten
Change to

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

Should do it? I think =/
jrunsten is offline   Reply With Quote

Old   February 22, 2013, 03:45
Default
  #3
New Member
 
Naishadh
Join Date: Jan 2013
Posts: 2
Rep Power: 0
naishadh is on a distinguished road
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...!!
naishadh is offline   Reply With Quote

Reply

Tags
cel expression, cfx error, cfx simple error


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
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


All times are GMT -4. The time now is 10:14.