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

Syntax Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2007, 06:47
Default Syntax Error
  #1
Mechstud
Guest
 
Posts: n/a
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
  Reply With Quote

Old   June 29, 2007, 07:36
Default Re: Syntax Error
  #2
Pankaj
Guest
 
Posts: n/a
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
  Reply With Quote

Old   June 29, 2007, 07:49
Default Re: Syntax Error
  #3
Mechstud
Guest
 
Posts: n/a
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
  Reply With Quote

Old   June 29, 2007, 08:22
Default Re: Syntax Error
  #4
opaque
Guest
 
Posts: n/a
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

  Reply With Quote

Reply


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
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 06:17
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06:18
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 12:44.