CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Negative absolute pressure in rhoPorousMRFSimpleFoam (https://www.cfd-online.com/Forums/openfoam/111290-negative-absolute-pressure-rhoporousmrfsimplefoam.html)

doubtsincfd January 14, 2013 09:22

Thank you, Niklas and maHein.

I monitored the outlet pressure using this code:
pOutlet
{
type patchAverage;
functionObjectLibs ("libsimpleFunctionObjects.so");
verbose true;
patches (outlet);
log true;
fields
(
p
);
}

immortality March 5, 2013 12:10

then its incorrect to set totalPressure at outlet?
I have 2 totalPressure BC at inlet and outlet.at inlet it behaves somewhat good(except supersonic velocity at 3-4 begining time steps that should be subsonic in real but it modifies at later time steps and becomes subsonic) but when outlet opens pressure goes too little and velocity increases a lot and problem diverges.
could anyone argue about the formula I have written at other thread also?
Code:

p0_2/pow(1+(gamma-1)/2*magSqr(internalField(U))/(gamma*R*internalField(T)),3.5)
thanks.

immortality March 5, 2013 12:18

dear Omkar I have a foolish question!:D
how do you plot residuals and othe variables like you did above?
I want to plot residuals by iteration numbers like you did but pyFoam draws residuals( and not variables at all) by time step in x-axis.

immortality March 8, 2013 03:56

can anyone guide me through two questions i propounded at two posts above?

doubtsincfd March 8, 2013 08:56

You can plot residuals using gnuplot as mentioned in this post:

http://www.cfd-online.com/Forums/ope...tml#post410537

I am not sure about using total pressure at both ends. When you specify total pressure at both ends, it is like fixing the loss across the system rather than letting the system decide. This is what I think, I am not sure about it though.

Plus, as per the discussions above, if the flow is leaving the domain, OF will considered the input value as static pressure because the term 1.0 - pos(phip) will go to zero.

woodwick March 12, 2013 03:13

I was looking at the files posted by you and those modified by Niklas to understand the reason of the improvement. When you say "The damping for pressure is amazing" are you referring to the decrease in tolerance from 1e-6; to in 1e-9; the fvSolution?
...
p
{
solver GAMG;
tolerance 1e-9;
relTol 0.1;

doubtsincfd March 12, 2013 07:04

No. What I meant was that the pressure values stabilized quickly.

immortality March 14, 2013 16:49

how can avoid high velocities at first iterations?maybe limiting of velocity to mach velocity?i tried but without useful result.
Efforts are thanked

immortality March 15, 2013 04:42

has anyone done a progress on the issue of high velocities at first few iterations in total pressure model of BC?


All times are GMT -4. The time now is 03:54.