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

Error:Non-scalars are only allowed as arguments to integrated quantity functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2019, 09:44
Default Error:Non-scalars are only allowed as arguments to integrated quantity functions
  #1
New Member
 
Arvind
Join Date: May 2016
Posts: 26
Rep Power: 10
adilarvind is on a distinguished road
I am writing an expression CFX which includes angular velocity ( i will give it as input when setting up the simulation )
the expression is tc =(8*torque_y()@R1 Blade)/(1.225*(Angular Velocity)^2*(0.3^5))

But whenever i am giving it as monitor point, it shows error :Non-scalar variable 'Angular Velocity' referenced by parameter 'Expression Value' in object '/FLOW:Flow Analysis 1/OUTPUT CONTROL/MONITOR OBJECTS/MONITOR POINT:tcc'.
Non-scalars are only allowed as arguments to integrated quantity functions.

i can define the angular velocity as fixed value and it works, but i want it to take from my input.
What is wrong here? please suggest
adilarvind is offline   Reply With Quote

Old   December 3, 2019, 09:58
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
Did you try areaAve(Angular Velocity)@R1 Blade
Gert-Jan is offline   Reply With Quote

Old   December 3, 2019, 10:40
Default
  #3
New Member
 
Arvind
Join Date: May 2016
Posts: 26
Rep Power: 10
adilarvind is on a distinguished road
No, it does not work
adilarvind is offline   Reply With Quote

Old   December 3, 2019, 11:56
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
There is some confusion here.

The CFX expression language cannot access values from the parametes provided, i.e. you are trying to access the domain angular velocity. It only access from a list of variables which are categorized as field variabels or single valued variables (see install_dir/etc/VARIABLES or documentation)

If you want to centralize your input, you should create a variable and later used elsewhere, i.e.

MyAngularVelocity = 100 [rpm]

Then use

DOMAIN:
DOMAIN MOTION:
Option = Rotating
Angular Velocity = MyAngularVelocity
END
END

Then

tc =(8*torque_y()@R1 Blade)/(1.225*(MyAngularVelocity)^2*(0.3^5))

Also, Angular Velocity is a CEL provided variable for rigid body model. This may be why the message is even more confusing because the variable exists, but it is not the one you expect it.
Opaque is offline   Reply With Quote

Old   December 4, 2019, 05:37
Default
  #5
New Member
 
Arvind
Join Date: May 2016
Posts: 26
Rep Power: 10
adilarvind is on a distinguished road
Yes, i understand it, Thanks for the reply.
i found out other way what i was intended to do.
adilarvind is offline   Reply With Quote

Old   April 29, 2021, 05:03
Default
  #6
Member
 
Lorenzo Mazzei
Join Date: Dec 2010
Posts: 60
Rep Power: 16
Mazze[ITA] is on a distinguished road
Personally I sorted out the problem moving from Wall Shear to sqrt(Wall Shear X^2 + Wall Shear Y^2 + Wall Shear Z^2)
Mazze[ITA] is offline   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
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 01:52
integrated quantity functions ekhilore CFX 3 July 7, 2011 10:59
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25


All times are GMT -4. The time now is 21:32.