pressureTools postProcessing function objects in 2.2.0
here:
http://www.openfoam.org/version2.2.0...processing.php its mentioned about pressureTools.how can use these function objects? is there a tutorial or more guidance through? new pressureTools - enables the calculation of pressure (from kinematic pressure), total pressure, pressure coefficient and total pressure coefficient. |
Hi Ehsan,
Quick answer:
Bruno |
thank you Bruno
can use a Code:
operation areaAverage; totally can use other features of function objects like the one below with it? and is there a totalTemperature too or isn't? Code:
Average_left |
Hi Ehsan,
A bit of a confusion of ideas going on here... OK, so to sort out by items:
Bruno |
you mean I can simply add total(p) to the function as below?without adding anything other?
Code:
Average_left |
:confused: Where's the "pressureTools" entry?
I have not tested this, this is just copy-paste-adapt from the pages I posted links for: Code:
myFunctionObject // user-defined name of function object entry |
Ok.thanks.is it true now?
Code:
totalP // user-defined name of function object entry Code:
operation weightedAverage; |
I think it's all OK. I can't see nothing wrong with it.
|
hi Bruno
Really?i thought maybe those lines for weightedAverarage had another keywords as the case you sent to me before but i can't find now.please have a look into it again tomorrow. Thanks. Have a good night. |
Hi Ehsan,
:confused: Sorry, I don't understand the question. The function objects code seems to be OK. I don't see any problem with it. The reference page on how to use "faceSource" is this one: http://foam.sourceforge.net/docs/cpp...5.html#details Wait... :eek: now I see the problem! It should be: Code:
operation weightedAverage; Bruno |
Hi
if I want to use function object on a face,how should change these terms? Code:
source patch; Code:
source sampledSurface; |
in compressible case I should use pRef 0;
correct? |
it writes total(p) values in all time steps in the solution folder but not in the patch I have set:
Code:
# Source : patch left Code:
totalP // user-defined name of function object entry Code:
totalPressure_left Code:
Average_left |
Hi Ehsan,
Took me a while to get to here, but here goes:
__________________ As for the original issue on the previous post, I'll quote what I've already sent you through emails - The following function objects worked well together: Code:
functions
Bruno |
dear Bruno
it wouldn't make any trouble to use it?because I'm in middle of the run and Bernhard has told maybe it will cause some inconsistency with before versions if I have understood correctly? |
Quote:
Quote:
The second detail is likely related to groovyBC!? |
thanks.I'm compiling i now.it will replaced to before version automatically?
and I have to move old folders to postProcessing folder manually and no other issue will take place? |
Quote:
Quote:
|
Hi Ehsan and Bruno,
I found your post very interesting, since I'm trying to use the pressureTools to compute the static pressure from an incompressible case that uses kinematic pressure. I would have used the utility as follows: { type pressureTools; libs ("libutilityFunctionObjects.so"); enabled yes; outputControl timeStep;//outputTime;// calcTotal no; calcCoeff no; } It does yield a static(p) field, but the values are very low (1e-16). Have I done something wrong ? Best regards BenJ |
Quote:
I just figured this out not too long ago. You have to specify a rho value for pressure tools to use to convert from kinematic to static pressure. Add these two lines to your pressure tools functionObject... rhoName rhoInf; rhoInf 1.225; // density value ______________________________________ Gentlemen, I have an additional question related to this pressure tools function object. Is there a way to calculate static pressure for every time step and not have it write out the iteration folder every time step? I want to be able to monitor a mass-weighted static pressure at an outlet every time-step (for an in-compressible solver). I can't find a way to do this though without forcing pressure tools to write an iteration folder every time step. Here is my current pressure-tools setup... Code:
p_tools Brock |
All times are GMT -4. The time now is 22:31. |