Pressuretools: pressureDifferencePatch
I'm want to use this tool to calculate the pressure difference between the inlet and outlet, as I'm optimizing with respect to minimum pressure loss.
Code:
postProcess -func "pressureDifferencePatch(...)" Code:
--> FOAM Warning : Code:
FoamFile I got the flow rate command working for a single patch as given in the user guide: Code:
postProcess -func "flowRatePatch(name=outlet)" |
Hi, Jeroen,
Check out the file pressureDifferencePatch at $FOAM_ETC\caseDicts\postProcessing\pressure. Names of Two patches , in your case outlet and inlet, could be defined in it. Then you can use postPrcoess by including it in controlDict file. Now it would work.:) |
Quote:
I'm trying too to use pressureDifferencePatch but I didn't understand what you suggested. I tried to use the dictionary in the ect/... folder by copying and modifying it in the case directory and then using the -dict attribute while calling postProcess in the command line, but it is not working. How did you make it work? Thanks |
Hi Andrea,
I didn't use the -dict attribute. Instead, I add functions { #includeFunc pressureDifferencePatch } to controlDict, and then call postProcess directly. Best, Dyle |
Hello Jeroen,
Have you fixed your problem with pressureDifferencePatch function? |
Hi together,
I try to give a solution that works for me: Add in your system directory of your case a file pressureDifferencePatch as suggested in the first post and replace <patch1> and <patch2> by the names of your patches. Then in the command line one can call the command Code:
postProcess -fields '(p)' -func pressureDifferencePatch Regards Sebastian |
Hi Sebastian,
this approach works also for me. Thank you, Regards, Robin |
Code:
FoamFile |
pressureDifferencePatch is nothing but a wrapper over fieldValueDelta.
For more controls. Just use Code:
pressureDifferencePatch1 |
Quote:
I have internal "faceZone" (using writeZone) and I wanted to calculate total pressure on this facezone. But, as we know pressure value is stored on cell center. if we use faceSource will it interpolate the value or we have some other way to calculate total pressure. and p will give static pressure so for total pressure do we use " fields (total(p))"? |
All times are GMT -4. The time now is 22:10. |