|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Join Date: Aug 2012
Posts: 269
Rep Power: 15 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,948
Rep Power: 28 ![]() |
Do you want to do this during a run? Or afterwards in CFD-Post? This is unclear.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Join Date: Jun 2009
Posts: 1,891
Rep Power: 33 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Aug 2012
Posts: 269
Rep Power: 15 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Join Date: Aug 2012
Posts: 269
Rep Power: 15 ![]() |
"ERROR The function 'sum', referenced by 'RMS of pressure', requires a locator to be specified."
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,948
Rep Power: 28 ![]() |
what is n in your equation?
|
|
![]() |
![]() |
![]() |
![]() |
#7 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,917
Rep Power: 145 ![]() ![]() ![]() ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,948
Rep Power: 28 ![]() |
@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?" |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
Join Date: Aug 2012
Posts: 269
Rep Power: 15 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,948
Rep Power: 28 ![]() |
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 14:11. |
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Senior Member
Join Date: Aug 2012
Posts: 269
Rep Power: 15 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#12 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,917
Rep Power: 145 ![]() ![]() ![]() ![]() |
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. |
||
![]() |
![]() |
![]() |
![]() |
#13 | |
Senior Member
Join Date: Aug 2012
Posts: 269
Rep Power: 15 ![]() |
Quote:
I use [(1/N) sigma (P-P average)^2]^1/2 equation. Is it not correct? |
||
![]() |
![]() |
![]() |
![]() |
#14 |
Senior Member
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,948
Rep Power: 28 ![]() |
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?. |
|
![]() |
![]() |
![]() |
![]() |
#15 | |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,917
Rep Power: 145 ![]() ![]() ![]() ![]() |
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. |
||
![]() |
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Jun 2009
Posts: 1,891
Rep Power: 33 ![]() |
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple Box - Gravity with Pressure Outlet - Unrealistic Reverse Flow | pyccknn | FLUENT | 2 | December 1, 2021 18:31 |
Residuals and forces spiraling out of control before failing | edomalley1 | OpenFOAM Running, Solving & CFD | 3 | September 7, 2018 11:42 |
Pressure Outlet Guage pressure | Mohsin | FLUENT | 36 | April 29, 2016 18:16 |
Discharge of Pressure Vessel into Pipe with Regulator | gajowni2 | System Analysis | 0 | October 31, 2015 19:57 |
Pressure BC for combustion chamber | Giuki | FLUENT | 1 | July 19, 2011 12:35 |