|
[Sponsors] |
January 26, 2022, 02:28 |
RMS value of pressure expression
|
#1 |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
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? |
|
January 26, 2022, 09:49 |
|
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
Do you want to do this during a run? Or afterwards in CFD-Post? This is unclear.
|
|
January 26, 2022, 09:49 |
|
#3 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
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. |
|
January 27, 2022, 03:03 |
|
#4 |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
||
January 27, 2022, 03:09 |
|
#5 |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
"ERROR The function 'sum', referenced by 'RMS of pressure', requires a locator to be specified."
|
|
January 27, 2022, 03:15 |
|
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
what is n in your equation?
|
|
January 27, 2022, 04:16 |
|
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
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. |
|
January 27, 2022, 05:40 |
|
#8 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
@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?" |
|
January 27, 2022, 09:26 |
|
#9 | |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
Quote:
|
||
January 27, 2022, 09:40 |
|
#10 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
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. Last edited by Gert-Jan; January 27, 2022 at 13:11. |
|
January 29, 2022, 02:18 |
|
#11 | |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
Quote:
|
||
January 29, 2022, 04:42 |
|
#12 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
Quote:
The RMS of (10001, 10000, 9999) is 10000, not around 1.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
January 29, 2022, 09:16 |
|
#13 | |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
Quote:
I use [(1/N) sigma (P-P average)^2]^1/2 equation. Is it not correct? |
||
January 29, 2022, 11:02 |
|
#14 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27 |
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?. |
|
January 29, 2022, 14:01 |
|
#15 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
Quote:
The equation you state is the RMS of (P-Paverage). (Not the RMS of P). See https://en.wikipedia.org/wiki/Root_mean_square
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
||
January 29, 2022, 14:09 |
|
#16 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
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 |