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

pressureTools postProcessing function objects in 2.2.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree6Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   August 16, 2014, 12:22
Default
  #21
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
As of 2.3.0, at the end of each time step, it will execute the calculation of this requested pressure.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 20, 2014, 08:57
Default
  #22
New Member
 
Join Date: Mar 2014
Posts: 17
Rep Power: 3
BenJ is on a distinguished road
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
BenJ is offline   Reply With Quote

Old   August 28, 2014, 11:02
Default
  #23
Member
 
Brock Lee
Join Date: Sep 2012
Location: Midwest
Posts: 36
Rep Power: 4
GRAUPS is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
As of 2.3.0, at the end of each time step, it will execute the calculation of this requested pressure.
@Bruno: Thanks for your comment. You are correct, OpenFOAM 2.3 now executes the calculation after every time-step.

Quote:
Originally Posted by BenJ View Post
Thank you GRAUPS, it works perfectly now!
@Ben: Glad I could help!
GRAUPS is offline   Reply With Quote

Old   September 22, 2014, 17:22
Default pressureTools
  #24
New Member
 
James Rodgers
Join Date: Jul 2013
Posts: 4
Rep Power: 4
jrwrodgers is on a distinguished road
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

Code:
--> FOAM FATAL ERROR: 
Unknown function type pressureTools

Valid functions are : 

17
(
cellSource
faceSource
fieldAverage
fieldCoordinateSystemTransform
fieldMinMax
fieldValueDelta
nearWallFields
patchProbes
probes
processorField
readFields
regionSizeDistribution
sets
streamLine
surfaceInterpolateFields
surfaces
wallBoundedStreamLine
)
My function call looks like this:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

 pressuretools1   // user-defined name of function object entry
    {
        type            pressureTools;
        libs ("libutilityFunctionObjects.so");
        //region          defaultRegion;
        enabled         yes;
        //timeStart       0;
        //timeEnd         10;
        outputControl timeStep;//outputTime;//
        outputInterval 1; // 5000;
        calcTotal   yes;
        calcCoeff   yes;
    }


// ************************************************************************* //

Last edited by wyldckat; April 6, 2015 at 13:40. Reason: Added [CODE][/CODE]
jrwrodgers is offline   Reply With Quote

Old   September 23, 2014, 04:41
Default
  #25
New Member
 
James Rodgers
Join Date: Jul 2013
Posts: 4
Rep Power: 4
jrwrodgers is on a distinguished road
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
jrwrodgers is offline   Reply With Quote

Old   April 6, 2015, 13:48
Default
  #26
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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:
Originally Posted by jrwrodgers View Post
I'm by no means an expert but when through a similar exercise a week ago. I found that to calculate the coefficients both static and total you need to specify the reference static pressure and reference velocity within the pressureTools {}. OF didn't pick up the values from the boundary conditions. I think I ended up specifying also the reference density although this is superfluous for the incompressible simulation I was running.
In addition to your finding, the answer to your previous post:
Quote:
Originally Posted by jrwrodgers View Post
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?
... is that you would need to add two function object entries instead of just one, e.g.:
Code:
pressuretools1
{
//...
}

pressuretools2
{
//...
}
Only then will your be able to get the two types of results calculations.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 01:47
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23


All times are GMT -4. The time now is 10:19.