Imposed P-Outlet

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
rbecker
Posts: 16
Joined: Thu Jun 28, 2012 4:35 pm

Imposed P-Outlet

Post by rbecker »

If I am correct the "Imposed-P-Outlet" Option in the GUI is the same as using dirichlet conditions for the pressure in the "old style " (icodcl(ifac,ipr) = 1, rcodcl(ifac,ipr) = desired value).
I have following simplified setup
Code_Saturne_Forum.PNG
, two channels connected by a small pipe, while the static pressure drop between lower and upper channel is approx. 3%.
My Setup is BC_1/B_3: inlet with v = 30m/s, BC_4: outlet, BC_2: imposed P-Outlet with p = 1,03*p0. The reference pressure point is placed on a face at BC_4.
Contrary to my expectation the reduced pressure
Code_Saturne_Forum_2.png
is lower at the exit of the lower channel (BC_2) than at the exit of the upper channel (BC_4)
Could you please point me in the right direction? What is wrong with my setup? Which is the misconception?

Thank you in advance.
Ralf
Attachments
run.xml
(12.58 KiB) Downloaded 245 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Imposed P-Outlet

Post by Yvan Fournier »

Hello Ralf,

If might be a bit "optimistic" to impose the pressure on only one outlet and hope the reference pressure on the other outlet will handle the rest. That would be the expected/intuitive behavior, but the the reference pressure is not actually zone-based, so there may be interactions between the 2 (we need to fix this).

In the meantime, could you try imposing the pressure on both outlets ?

Best regards,

Yvan
rbecker
Posts: 16
Joined: Thu Jun 28, 2012 4:35 pm

Re: Imposed P-Outlet

Post by rbecker »

Thank you, Yvan.

Following your suggestion I have changed BC_4 to an Imposed-P-Outlet, setting the Pressure to p = 1e5 and BC_2 to an imposed P-Outlet with p=1.1e5. This should force a pressure difference in the range of 10%.

Have look at the result
Code_Saturne_Forum_3.png
Still not the expected pressure field.

Do you have some more hints?

Thank you in advance.
Regards,
Ralf
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Imposed P-Outlet

Post by Yvan Fournier »

Hello Ralf,

No, I'll check with other members of the team who know this part of the code better.

If you have a small test case you can post here, that would be great.

Best regards,

Yvan
rbecker
Posts: 16
Joined: Thu Jun 28, 2012 4:35 pm

Re: Imposed P-Outlet

Post by rbecker »

Dear Yvan,

I have attached my simplified Test-Case.

Kind regards,
Ralf
Attachments
Test.zip
(1.18 MiB) Downloaded 269 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Imposed P-Outlet

Post by Yvan Fournier »

Hello Ralf,

Ok I'll take a look. I'll probably need help from the other developers for this subject, so it might take a few days.

Best regards,

Yvan
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Imposed P-Outlet

Post by Yvan Fournier »

Hello Ralf,

I ran your case, and it seems that if you postprocess the "total pressure" instead of the pressure variable, you have the desired output.

The total pressure is closer to the real pressure (adding the hydrostatic pressure, and, if I am not mistaken, minus some artificial turbulence-resolution related terms), while the pressure is more a by-product of the solution process if I am not mistaken.

Naming the variables differently might be a good idea here....

Best regards,

Yvan
rbecker
Posts: 16
Joined: Thu Jun 28, 2012 4:35 pm

Re: Imposed P-Outlet

Post by rbecker »

Hello Yvan,

sorry for my late reply, I was in holiday.
Maybe I didn't get it. What I want is that in the upper channel the pressure is lower than in the lower channel and the pressure difference is about 10% (setup in Test.zip).
What I get is, independant of the variable "pressure" or "total_pressure" that the pressure in the upper channel is larger.
Could you archive your results and post them? So I could compare your results with mine.

Thank you.

Kind regards,
Ralf
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Imposed P-Outlet

Post by Yvan Fournier »

Hello,

Here is my run (only on a few time steps, as the pressure should match the boundary conditions immediately, and without the checkpoint files, to reduce the archive size).

Best regards,

Yvan
Attachments
20200611-0115.tar.gz
(3.47 MiB) Downloaded 266 times
rbecker
Posts: 16
Joined: Thu Jun 28, 2012 4:35 pm

Re: Imposed P-Outlet

Post by rbecker »

Thank you ,

seems to a problem of the code_saturne Version.
Comparing the parameter files I see no difference. Running your setup with my older 5.xx version i get the same false results using a 6.04 version i get the expected output.
thank you.

Kind regards
Ralf
Post Reply