CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CFX (
-   -   Syntax Error (

Mechstud June 29, 2007 05:47

Syntax Error

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.


Pankaj June 29, 2007 06:36

Re: Syntax Error

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

torque_z()@Rot Blade 1


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 worked


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.


All times are GMT -4. The time now is 15:41.