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

RMS value of pressure expression

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 1 Post By Gert-Jan
  • 2 Post By Gert-Jan
  • 1 Post By ghorrocks
  • 2 Post By ghorrocks
  • 2 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2022, 02:28
Default RMS value of pressure expression
  #1
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
I would like to plot the RMS of pressure on a specified plane. I use this expression to create a variable:
sqrt(1/N*sum(Pressure-(Pressure.trnavg))^2)
Where N is the number of measurements during a passing period. However, there is a warning that sum needs a locator. Is there a way to fix it?
Julian121 is offline   Reply With Quote

Old   January 26, 2022, 09:49
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Do you want to do this during a run? Or afterwards in CFD-Post? This is unclear.
Gert-Jan is offline   Reply With Quote

Old   January 26, 2022, 09:49
Default
  #3
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Would you mind showing the expression specifics such as the error message can be interpreted?
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   January 27, 2022, 03:03
Default
  #4
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Do you want to do this during a run? Or afterwards in CFD-Post? This is unclear.
I would like to plot the RMS of pressure distributions in CFD-Post on the blade surface.
Julian121 is offline   Reply With Quote

Old   January 27, 2022, 03:09
Default
  #5
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Would you mind showing the expression specifics such as the error message can be interpreted?
"ERROR The function 'sum', referenced by 'RMS of pressure', requires a locator to be specified."
Attached Images
File Type: jpg expression.jpg (28.5 KB, 9 views)
Julian121 is offline   Reply With Quote

Old   January 27, 2022, 03:15
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
what is n in your equation?
Gert-Jan is offline   Reply With Quote

Old   January 27, 2022, 04:16
Default
  #7
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Doesn't the error message say exactly what the problem is? The syntax is sum(variable)@locator. You need to add the "@locator" bit to say which region to do the sum over.

Also note you probably don't want to use the sum function. You probably want areaAve(variable)@locator instead.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 27, 2022, 05:40
Default
  #8
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
@Glenn, the scientific equation cannot be used in Post directly. That should be obvious, not?
Therefore I asked a silly question, and tried to trigger Julian121 to think for him/her self.

@Julian121: Try to answer the question "What am I actually trying to do? And why is it not working?"
Opaque likes this.
Gert-Jan is offline   Reply With Quote

Old   January 27, 2022, 09:26
Default
  #9
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
@Glenn, the scientific equation cannot be used in Post directly. That should be obvious, not?
Therefore I asked a silly question, and tried to trigger Julian121 to think for him/her self.

@Julian121: Try to answer the question "What am I actually trying to do? And why is it not working?"
I wanted to quantify the unsteadiness of pressure and plot related contours on blade surface or any other planes. The first thing came to my mind was to use standard deviation or root mean square of pressure. The thing I did not understand was that why a location should be specified when defining a variable in CFD-Post. Can't the unsteadiness exist in any plane? I even used the equation without "N". I know CFD-Post a little, so I do not know why it is not working indeed!
Julian121 is offline   Reply With Quote

Old   January 27, 2022, 09:40
Default
  #10
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
Given the variable Pressure.Trnavg, you apparently found in Pre how you can determine an average Pressure over time.
In the same menu, you can find the variable that you want. So, select the RMS there, perform a new calculation, and you have the result you want.

Then in Post, determine an areaAve(Pressure)@surface to find averages over a certain surface.
Btw, better use the function calculator and tick the "Show equivalent expression" to understand the syntax.

Also, please remind that you can have an RMS in time and in space. You look for an RMS in time, but your initial equation refers to something in space, making it somewhat unclear.
Opaque and Julian121 like this.

Last edited by Gert-Jan; January 27, 2022 at 13:11.
Gert-Jan is offline   Reply With Quote

Old   January 29, 2022, 02:18
Default
  #11
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
Given the variable Pressure.Trnavg, you apparently found in Pre how you can determine an average Pressure over time.
In the same menu, you can find the variable that you want. So, select the RMS there, perform a new calculation, and you have the result you want.

Then in Post, determine an areaAve(Pressure)@surface to find averages over a certain surface.
Btw, better use the function calculator and tick the "Show equivalent expression" to understand the syntax.

Also, please remind that you can have an RMS in time and in space. You look for an RMS in time, but your initial equation refers to something in space, making it somewhat unclear.
As you said, I have selected RMS in CFX-Pre transient statistics and performed a new calculation. However, I am not sure the result is correct since the values are just like pressure. I guess RMS values should be much lower than pressure. As I said previously, I would like to plot the RMS of pressure contours not on a single node, but rather on any turbo surface. Shouldn’t the numbers be on orders of 100 or 1000?
Attached Images
File Type: jpg pressure.jpg (111.3 KB, 13 views)
File Type: jpg rms of pressure.jpg (98.6 KB, 11 views)
Julian121 is offline   Reply With Quote

Old   January 29, 2022, 04:42
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
Shouldn’t the numbers be on orders of 100 or 1000?
No. Make sure you understand what mathematical function RMS actually is.

The RMS of (10001, 10000, 9999) is 10000, not around 1.
Opaque likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 29, 2022, 09:16
Default
  #13
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
No. Make sure you understand what mathematical function RMS actually is.

The RMS of (10001, 10000, 9999) is 10000, not around 1.
Lets's say there are 100000, 100500, 100231, 100150, 100780. The average is 100332. Then, the RMS should be around 276. The RMS contour shows numbers around 100000!

I use [(1/N) sigma (P-P average)^2]^1/2 equation. Is it not correct?
Julian121 is offline   Reply With Quote

Old   January 29, 2022, 11:02
Default
  #14
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
Gert-Jan will become famous soon enough
I think your picture is a bit weird since the unit is missing.
It says absolute pressure. In what? Meters water column, torr, psi?
What did you change?

An other thing......why do you look at absolute pressure? Wouldn't it be more logical to just look to Pressure?.
Gert-Jan is offline   Reply With Quote

Old   January 29, 2022, 14:01
Default
  #15
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Quote:
I use [(1/N) sigma (P-P average)^2]^1/2 equation. Is it not correct?
No, that is not correct. The mean of the numbers you list is 100332 as you say, and the RMS is also 100332.

The equation you state is the RMS of (P-Paverage). (Not the RMS of P).

See https://en.wikipedia.org/wiki/Root_mean_square
Opaque and Gert-Jan like this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 29, 2022, 14:09
Default
  #16
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
https://en.wikipedia.org/wiki/Standard_deviation
Julian121 and Gert-Jan like this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
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
Simple Box - Gravity with Pressure Outlet - Unrealistic Reverse Flow pyccknn FLUENT 2 December 1, 2021 17:31
Residuals and forces spiraling out of control before failing edomalley1 OpenFOAM Running, Solving & CFD 3 September 7, 2018 10:42
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 17:16
Discharge of Pressure Vessel into Pipe with Regulator gajowni2 System Analysis 0 October 31, 2015 18:57
Pressure BC for combustion chamber Giuki FLUENT 1 July 19, 2011 11:35


All times are GMT -4. The time now is 08:00.