|
[Sponsors] |
February 5, 2019, 16:32 |
Total Pressure Incompressible
|
#1 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 11 |
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; } } |
|
February 11, 2019, 02:12 |
|
#2 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 |
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 |
|
February 12, 2019, 18:54 |
.
|
#3 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 11 |
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; } } Code:
#includeEtc "caseDicts/postProcessing/pressure/pressure.cfg" calcTotal yes; calcCoeff no; rho rhoInf; Code:
type pressure; libs ("libfieldFunctionObjects.so"); executeControl writeTime; writeControl writeTime; log false; |
|
February 27, 2019, 07:09 |
|
#4 |
New Member
Mathias Poulsen
Join Date: Feb 2018
Location: Denmark
Posts: 9
Rep Power: 8 |
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 ) Try running the function below: Code:
functions { pressure { type pressure; functionObjectLibs ("libfieldFunctionObjects.so"); writeControl outputTime; rho rho; pRef 0; calcTotal yes; calcCoeff no; } } Mathias |
|
February 27, 2019, 14:39 |
.
|
#5 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 11 |
Thanks for the advice, that worked!
|
|
Tags |
total pressure |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Total pressure in rel frame and total pressure | Salut | CFX | 14 | May 8, 2023 03:29 |
Periodic flow using Cyclic - comparison with Fluent | nusivares | OpenFOAM Running, Solving & CFD | 30 | December 12, 2017 06:35 |
Star cd es-ice solver error | ernarasimman | STAR-CD | 2 | September 12, 2014 01:01 |
Error in run Batch file | saba1366 | CFX | 4 | February 10, 2013 02:15 |
Total pressure in CFX | famarcfd | CFX | 0 | June 17, 2011 11:33 |