Greetings to all!
@Brock: That wasn't possible in OpenFOAM 2.2, but it is possible to do in OpenFOAM 2.3. The source code file in question is this: Code:
$FOAM_SRC/postProcessing/functionObjects/utilities/pressureTools/pressureTools.C Best regards, Bruno |
Hi!
Thank you GRAUPS, it works perfectly now! Now I hop this static pressure field can be used to change from simpleFoam to rhoSimpleFoam :) Best regards Benjamin |
Quote:
Quote:
|
pressureTools
Dear all,
I'm trying to get "pressureTools" function to work with simpleFoam but I get the error shown below. I've checked and the files were definitely compiled so should be available to call. Can anyone offer an insight? Thanks, James :D Code:
--> FOAM FATAL ERROR: Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
So.. I have had some success!
I need to change the library reference to: functionObjectLibs ("libutilityFunctionObjects.so"); However, I then needed to specify: pRef pInf rhoInf UInf And the result was total pressure coefficient (Cp0) being calculated but not static pressure coefficient (Cp)? Will the function only calculate one or the other or can you get it to calculate both? The modes of operation are: \table Mode | calcTotal | calcCoeff static pressure | no | no total pressure | yes | no pressure coefficient | no | yes total pressure coefficient | yes | yes \endtable Any advice gratefully received! Thanks |
Greetings James,
Sorry for the very late reply, but only today did I finally manage to take a look into this. From what I can see from another post you've done, you've found a solution: Quote:
Quote:
Code:
pressuretools1 Best regards, Bruno |
Is it possible to write an areaAverage pressure along an axis as asked here using pressure tools?
Thanks |
Quote:
|
Hi there,
Is it possible to use pressureTools as a sample instead of functionObject? I added this piece of code to my controlDict: Code:
functions Two questions: 1) Can I set this up in my sampleDict instead? 2) I really just want to calculate the total pressure at probes on the cylinder to calculate the drag from that.... is this the best way to do it? |
Quick answers:
Quote:
Code:
outputControl outputTime;
Quote:
Then you can use sample to sample over the data in the written fields. Quote:
|
Hi wyldckat,
Thank you for your very thorough response... I have two follow up questions/issues now: 1) I am trying to run execFlowFunctionObjects, which is giving the error that the keyword transport properties is undefined..However, here is my transportProperties file: Code:
/*--------------------------------*- C++ -*----------------------------------*\ 2) I am trying to really understand what the pressure I am getting is because I was having issues implementing the calculating for dragForce, and so I want to calculate it from the pressures instead so I can better understand it. In waveFoam, I am calculating two pressures: p_rgh and p. I am understanding that p_rgh is a reference pressure that is calculated and p would then be p = p_rgh + rho*g*h, which would mean then that the total pressure, and then pressures used in the calculation for pressure coefficient, Cp, would be: p + 0.5*rho*Uinf^2 (where I've been taking Uinf from a probe near the inlet). I'll say now that doing it this way has not been yielding results for the Cp that I'm expecting (as in, the value that I'm calculating for Cp is far too high). Is there something I am misunderstanding about the pressures? Thanks again for your help, Ariel |
1 Attachment(s)
Quote:
Hi, Can anyone help with the running of this code through chtMultiRegionFoam? (I am using OpenFOAM 6) I have copied the above into my controlDict folder and I have tried running the following: chtMultiRegionFoam -postProcess -func writeMissingFields chtMultiRegionFoam -postProcess -func totalP chtMultiRegionFoam -postProcess -func Average_left chtMultiRegionFoam -postProcess -func reloadTotalP chtMultiRegionFoam -postProcess -func totalPressure_left in that order. -I've also tried it without the inclusion of chtMultiRegionFoam in the above order. -I've also tried running each part seperately as well, but it still doesn't work - I don't get a postProcessing folder, or any sort of results. I have changed the patch name to the one I require - cyclicFluidInlet. I am completely at a loss, if anyone could help then I would be very greatful. I have included my controlDict as well (I had to zip it to upload), any other information can be supplied. Thanks, Arthur |
Quick answer: I see that you later on have gotten an answer to your question here: https://www.cfd-online.com/Forums/op...egionfoam.html
Essentially there were two issues:
|
Quote:
|
All times are GMT -4. The time now is 22:00. |