CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

obtaining total pressure at a patch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By immortality

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2013, 12:57
Default obtaining total pressure at a patch
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
which functionObjects can use to obtain p0 (average,min,max) at inlet or outlet in time folders?
immortality is offline   Reply With Quote

Old   April 19, 2013, 13:45
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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
    {
        type patchExpression;
        patches (
            wall
        );
        verbose true;
        expression "p*area()/sum(area())";
        accumulations (
            sum
        );
    }
I have too little time to triel and error.so all experiences are thanked.
my flow is compressible then how can account for cp if I write total pressure formula in isentropic formula?

Last edited by immortality; April 19, 2013 at 14:03.
immortality is offline   Reply With Quote

Old   April 20, 2013, 07:56
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
is this a correct work?
what about average temperature and velocity at a patch? can use "patchAveragePressure"? or its only for pressure?
immortality is offline   Reply With Quote

Old   April 20, 2013, 14:52
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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)
immortality is offline   Reply With Quote

Old   April 24, 2013, 13:52
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
for anyone needs now or in future see here by search,it works well by this function:
Code:
total_pressure_right
       {
        type swakExpression;
        valueType patch;
        patchName right;
        accumulations (
            min
            max
            average
        );
        outputControl outputTime;
        expression "p+.5*rho*magSqr(U)";
        verbose true;
       }
    total_pressure_left
       {
        type swakExpression;
        valueType patch;
        patchName left;
        accumulations (
            min
            max
            average
        );
        outputControl outputTime;
        expression "p+.5*rho*magSqr(U)";
        verbose true;
       }
for calculating total pressure in two patches(right and left)
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.
namsivag likes this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in run Batch file saba1366 CFX 4 February 10, 2013 01:15
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19
Total pressure to static pressure ratio roadracer Siemens 1 April 17, 2003 05:31


All times are GMT -4. The time now is 17:41.