obtaining total pressure at a patch
which functionObjects can use to obtain p0 (average,min,max) at inlet or outlet in time folders?
|
can I use this swak4FOAM function to calculate total p at each time step?how?
is this true that ahead of expression I write: Code:
(p+.5*rho*sqr(U))*area/sum(area()) Code:
patchAveragePressure my flow is compressible then how can account for cp if I write total pressure formula in isentropic formula? |
is this a correct work?
what about average temperature and velocity at a patch? can use "patchAveragePressure"? or its only for pressure? |
I can calculate total pressure without any need to Cp from the formula p0=p+1/2*rho*sqr(U) instead of isentropic relation.because the difference is so little.but how to do this?
add this in solver or can obtain it on inlet and outlet patches like p by (I prefer swak4Foam because it calculates values in each time step not only in writing times) postProcessing functions? (sorry for repeating according to title) |
for anyone needs now or in future see here by search,it works well by this function:
Code:
total_pressure_right you should put like functions in controlDict. also you should have installed swak4FOAM before. it writes p0's in each time step in a separate folder and file and is nice. |
All times are GMT -4. The time now is 06:11. |