CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Syntax Error (http://www.cfd-online.com/Forums/cfx/24194-syntax-error.html)

Mechstud June 29, 2007 05:47

Syntax Error
 
HI

I am using ANSYS CFX 11.0 version and have written an expression to calculate torque acting on a blade in z direction.

My expression is :

torque_z@Rot Blade 1

where Rot Blade 1 is the location of the blade. This expression looks correct syntaxwise and it worked well in ANSYS CFX 10.0 ..but in CFX 11.0 its showing error.

The error is :

"locator name may not follow variable name."

I am not able to figure out what error says..kindly help me with this..

With regards.

Mechstud

Pankaj June 29, 2007 06:36

Re: Syntax Error
 
Hi

I think in CFX-10 also it will not work. Modify it with a bracket in between as follows.

torque_z()@Rot Blade 1

Pankaj

Mechstud June 29, 2007 06:49

Re: Syntax Error
 
Thanks for your reply Pankaj

Ya it worked in ANSYS CFX 11 ...but it worked without bracekts in cfx 10 ..why bracket is needed there if we dont want an expression.

thanks for ur help..it worked

Mechstud

opaque June 29, 2007 07:22

Re: Syntax Error
 
Dear Mechstud,

It may have worked just by chance in ANSYS CFX 10.0 because the documentation says:

torque [<Fluid>.]torque_[<Axis>[_<Coord Frame>] ]()@<Location>

An error is raised if the location specified is not 2-D.

The syntax is being enforced in 11.0.

Opaque



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