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

Error in defining expression

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By urosgrivc
  • 1 Post By urosgrivc
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2016, 07:09
Default Error in defining expression
  #1
Senior Member
 
Aja
Join Date: Nov 2013
Posts: 496
Rep Power: 14
aja1345 is on a distinguished road
Hi,

I am defining an expression, but i have a error as follows:



Why does this happen?

Thanks.

Last edited by aja1345; August 16, 2016 at 08:06.
aja1345 is offline   Reply With Quote

Old   August 12, 2016, 07:24
Default
  #2
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
What does this mean? )(
try )*( multiplication if this is what you want?
aja1345 likes this.
urosgrivc is offline   Reply With Quote

Old   August 12, 2016, 07:34
Default
  #3
Senior Member
 
Aja
Join Date: Nov 2013
Posts: 496
Rep Power: 14
aja1345 is on a distinguished road
Quote:
Originally Posted by urosgrivc View Post
What does this mean? )(
try )*( multiplication if this is what you want?
Yes!!! Thanks
aja1345 is offline   Reply With Quote

Old   August 12, 2016, 09:10
Default
  #4
Senior Member
 
Aja
Join Date: Nov 2013
Posts: 496
Rep Power: 14
aja1345 is on a distinguished road
Hi,

Why does the following error happen?




I want to define gas constant of air.

Last edited by aja1345; August 16, 2016 at 08:05.
aja1345 is offline   Reply With Quote

Old   August 12, 2016, 10:07
Default
  #5
Senior Member
 
Aja
Join Date: Nov 2013
Posts: 496
Rep Power: 14
aja1345 is on a distinguished road
Why does unit of the following expression equal to Kg^2 m s^-5 K^-2?

volumeInt(((Thermal Conductivity/(Temperature)^2)*((1/(Density*(R/(M air))))*(Pressure.Gradient X)^2+(1/(Density*(R/M air)))*(Pressure.Gradient Y)^2+(1/(Density*(R/M air)))*(Pressure.Gradient Z)^2)))@Rotary



R=gas constant


According to above, Unit of Volume integral should be equal to kg m^2/S^-3 K^-1 . I assumed fluid as ideal gas presently. therefore>>>>> P=Ro*R*T

T=P/(RO*T)

.........


Thanks.

Last edited by aja1345; September 7, 2016 at 12:11.
aja1345 is offline   Reply With Quote

Old   August 14, 2016, 14:08
Default
  #6
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
I dont think that [Kj] means enithing.
definitly not with smal j

I am asking the experts now-> (is kilo(k) , mega(M) and other prefixes suported instead of multipliers) as I havent tried it out myself.

Joul=J should work but than, for Kilo you should multiply it by 1000.
so you would end up with [J kg^-1 K^-1]*1000
aja1345 likes this.
urosgrivc is offline   Reply With Quote

Old   August 14, 2016, 19:31
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,716
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, CFX supports the SI unit system with prefixes. But you have to get it correct, as urosgrivc states. Joule is J and kilo prefix is k, so the unit if kJ.
aja1345 likes this.
ghorrocks is offline   Reply With Quote

Old   August 15, 2016, 07:15
Default
  #8
Senior Member
 
Aja
Join Date: Nov 2013
Posts: 496
Rep Power: 14
aja1345 is on a distinguished road
Thanks.

What is your suggestion about defining expression?

I am grateful that guide me about this case.

Last edited by aja1345; August 16, 2016 at 08:08.
aja1345 is offline   Reply With Quote

Old   August 15, 2016, 07:41
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,716
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I think the temperature gradient functions work in CFD-Post. Have a look in the CFX reference manual for a description of the available variables and functions you can apply to them.

Also the temperature gradient variables will be available under the puzzlingly titled "..." button for plotting on surfaces, vectors etc.
aja1345 likes this.
ghorrocks is offline   Reply With Quote

Old   August 15, 2016, 15:28
Default
  #10
Senior Member
 
Aja
Join Date: Nov 2013
Posts: 496
Rep Power: 14
aja1345 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Also the temperature gradient variables will be available under the puzzlingly titled "..." button for plotting on surfaces, vectors etc.
Thanks.

I don't understand this your statement. Can you explain more?

What is "..." button?
aja1345 is offline   Reply With Quote

Old   August 15, 2016, 15:42
Default
  #11
Senior Member
 
Join Date: Jun 2009
Posts: 1,811
Rep Power: 32
Opaque will become famous soon enough
Insert an User Defined Variable, for the method select Gradient, and select Temperature for the variable. CFD-Post will create the Temperature.Gradient variable.

You can then use it as needed.
aja1345 likes this.
Opaque 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
Outlet boundary condition in interFoam Andrea_85 OpenFOAM Running, Solving & CFD 51 July 20, 2017 13:31
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23


All times are GMT -4. The time now is 09:50.