Measuring total pressure with simpleFunctionObjects
I want to monitor the mass flow rate and the total pressure every iteration at the outlet of my geometry. A good way to do this is using the simpleFunctionObjects (http://openfoamwiki.net/index.php/Co...unctionObjects).
Using simpleFoam, I am able to calculate the mass flow rate, but not the total pressure. My code in the controlDict file is given as: Code:
functions In post-processing, I would first calculate the total pressure with the command "ptot" and then averaging it with the command "patchAverage ptot outlet" Does anybody know how to implement this using simpleFunctionObjects? |
Solved: I have modified the simpleFoam solver so that it calculates ptot every iteration.
|
Hi Cedric,
could you please explain me how you modified the solver that it calculates ptot every iteration??? |
I've copied simpleFoam to another directory and renamed all files (mysimpleFoam)
In createFields.H, I changed this: Code:
Info << "Reading field U\n" << endl; Code:
{ |
Does anybody know how I can modified the rhoSimpleFoam solver so that it calculates ptot every iteration?
|
Quote:
Have You heard any more about total pressure calculation in rhoSimpleFoam solver? Best regards. Claudio |
Quote:
Hello Claudio, I have written a tool, which is able to calculate total pressure. But i haven't integrated it into the solver. You can use it for post processing. Are you interesting in this tool? I can also integrate it (after writing some tools and other stuff, i am able to programming on my own) into the solver, but then I need some time. Regards Ralph |
Quote:
can I kindly have this tool in order to integrate it into the solver (by myself)? Thank You in advance. Best, Claudio |
1 Attachment(s)
Dear Claudio,
no problem, here is the tool. my_ptot.C attach folder Make: options: EXE_INC = \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/turbulenceModels \ -I$(LIB_SRC)/turbulenceModels/compressible/RAS/RASModel \ -I$(LIB_SRC)/finiteVolume/cfdTools \ -I$(LIB_SRC)/finiteVolume/lnInclude EXE_LIBS = \ -lbasicThermophysicalModels \ -lspecie \ -lcompressibleTurbulenceModel \ -lcompressibleRASModels \ -lfiniteVolume \ -lmeshTools files: my_ptot.C EXE = $(FOAM_USER_APPBIN)/my_ptot |
Quote:
Claudio |
All times are GMT -4. The time now is 10:08. |