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

Total Pressure Incompressible

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By SvenBent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2019, 15:32
Default Total Pressure Incompressible
  #1
Member
 
Join Date: Nov 2015
Posts: 38
Rep Power: 10
WaterHammer1985 is on a distinguished road
I want to use the totalPressureIncompressible (postProcess -func totalPressureIncompressible) but keep getting the following error message:


Error Message
Code:
[69] --> FOAM FATAL ERROR:

    request for volScalarField rhoInf from objectRegistry region0 failed
    available objects of type volScalarField are

17
(
interfaceProperties:K
nut
epsilon_0
alpha.water
rho
k
p_rgh
(0.5*magSqr(U))
nu
gh
nu1
p
rho_0
nu2
alpha.air
k_0
epsilon
)

In the system/controlDict, I have:
Code:
functions
{
pressure
    {
        type            pressure;
        functionObjectLibs ("libfieldFunctionObjects.so");
        writeControl    outputTime;
        rhoInf  1000;
        rho     rhoInf;
        pRef    0;
        calcTotal   yes;
        calcCoeff   no;
  }

}
How do I get this to work properly? I'm using interIsoFoam for the solver but don't think that should matter...
WaterHammer1985 is offline   Reply With Quote

Old   February 11, 2019, 01:12
Default
  #2
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 7
yambanshee is on a distinguished road
try this:
Code:
functions
{
    totalPressure
    {
        #includeEtc "caseDicts/postProcessing/pressure/totalPressureIncompressible.cfg"

        pRef    0.0;
        rhoInf  1000;
    }
}

If you go to openfoam/ect/caseDicts/postProcessing/pressure you can see that the file included here eventually leads down to a similar function call to what you are requesting here
yambanshee is offline   Reply With Quote

Old   February 12, 2019, 17:54
Default .
  #3
Member
 
Join Date: Nov 2015
Posts: 38
Rep Power: 10
WaterHammer1985 is on a distinguished road
Thanks for the suggestion. I just tried it but am still getting same error. I looked through the files you point to and agree that it leads to similar function call. I've tried adding "rhoInf 1000;" to those files also (throw it on the wall and see what sticks technique) but still get the same error. Any other ideas on how I can get it hooked up?


~/system/controlDict
Code:
functions
{
    totalPressure
    {
        #includeEtc "caseDicts/postProcessing/pressure/totalPressureIncompressible.cfg"

        pRef    0.0;
        rhoInf  1000;
    }

}
totalPressureIncompressible.cfg
Code:
#includeEtc "caseDicts/postProcessing/pressure/pressure.cfg"

calcTotal     yes;
calcCoeff     no;
rho           rhoInf;
pressure.cfg
Code:
type            pressure;
libs            ("libfieldFunctionObjects.so");

executeControl  writeTime;
writeControl    writeTime;
log             false;
WaterHammer1985 is offline   Reply With Quote

Old   February 27, 2019, 06:09
Default
  #4
New Member
 
Mathias Poulsen
Join Date: Feb 2018
Location: Denmark
Posts: 9
Rep Power: 8
SvenBent is on a distinguished road
I think the solver "acts" as compressible solver, and use the density in the NS-equations. Therefore, the rhoInf functionality is not available. If you look at the error message, you can see that rho and rho_0 are available from the objectRegistry.

Code:
[69] --> FOAM FATAL ERROR:

    request for volScalarField rhoInf from objectRegistry region0 failed
    available objects of type volScalarField are

17
(
interfaceProperties:K
nut
epsilon_0
alpha.water
rho
k
p_rgh
(0.5*magSqr(U))
nu
gh
nu1
p
rho_0
nu2
alpha.air
k_0
epsilon
)
I would guess that you can get the total pressure from each phase, say rho is the density of water, you would get the totalPressure field for the water phase and vice versa.

Try running the function below:

Code:
functions
{
pressure
    {
        type            pressure;
        functionObjectLibs ("libfieldFunctionObjects.so");
        writeControl    outputTime;
        rho     rho; 
        pRef    0;
        calcTotal   yes;
        calcCoeff   no;
  }

}
Best regards

Mathias
amolrajan and WaterHammer1985 like this.
SvenBent is offline   Reply With Quote

Old   February 27, 2019, 13:39
Default .
  #5
Member
 
Join Date: Nov 2015
Posts: 38
Rep Power: 10
WaterHammer1985 is on a distinguished road
Thanks for the advice, that worked!
WaterHammer1985 is offline   Reply With Quote

Reply

Tags
total pressure


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
Total pressure in rel frame and total pressure Salut CFX 14 May 8, 2023 02:29
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 00:01
Error in run Batch file saba1366 CFX 4 February 10, 2013 01:15
Total pressure in CFX famarcfd CFX 0 June 17, 2011 10:33


All times are GMT -4. The time now is 06:51.