|
[Sponsors] |
March 25, 2020, 02:23 |
BC for pressure-pressure run in simpleFoam
|
#1 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Hello all,
I am trying to run a simpleFoam case with pressure inlet and pressure outlet. I know this is not be best way to do (but it runs in the commercial solvers I know). However, in this case I only have pressure BCs available. I tried following BCs: Pressure: "totalPressure" for inlet patch, "fixedValue" for outlet pach -> looks reasonable Velocity: "pressureNormalInletOutletVelocity" for both inlet and outlet patches. I want the solver to calculate velocity based on fluxes and pressure and make the direction normal to the patch faces. However, this gives me a velocity field of more or less zero everywhere in the domain and therefore zero mass flow as well. -> not reasonable What are the correct/best BCs for the velocity field for this kind of BCs? Thanks. |
|
March 25, 2020, 05:35 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
This is what I've used succesfully.
0/U Code:
inlet } type pressureInletOutletVelocity; value uniform (0 0 0); } outlet { type inletOutlet; value uniform (0 0 0); inletValue uniform (0 0 0); } Code:
inlet { type totalPressure; p0 uniform 25.5426; value uniform 25.5426; } outlet { type fixedValue; value uniform 0; }
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
March 25, 2020, 08:29 |
|
#3 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Thanks. This was one of my previous trys. Good news: Results where he same as for my last try. Bad news: Velocity results are not physical.
|
|
March 25, 2020, 08:31 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Remember to use normalized pressure.
OF uses p/rho in in-compressible cases.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
March 25, 2020, 09:36 |
|
#5 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
I know, I did use normalized pressure. Volume flow is far from expected (e-10 instead of e-4). Indeed I did run the same case with velocity-inlet before and I know what pressure drop should give what volume-flow.
|
|
March 26, 2020, 04:50 |
|
#6 |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Ok, I quick-checked with the "squaredBend" tutorial with OpenFOAM-v1906. The BCs given from linnemann above works as expected for this geometry.
I am currently investigating why it does not work as expected for my model. |
|
March 27, 2020, 04:51 |
|
#7 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19 |
bastil,
I agree with the bc combination suggest by linnemann. For your particular case, is the dynamic pressure a significant fraction of the total pressure? If so, you may simply be setting the inflow total pressure too low. |
|
March 27, 2020, 05:57 |
|
#8 | |
Senior Member
BastiL
Join Date: Mar 2009
Posts: 530
Rep Power: 20 |
Quote:
Suggestions on how to solve this are welcome. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pressure in incompressible solvers e.g. simpleFoam | chrizzl | OpenFOAM Running, Solving & CFD | 13 | March 28, 2017 06:49 |
simpleFoam - pressure (coefficient) of head shape | GJM1991 | OpenFOAM Running, Solving & CFD | 4 | May 12, 2015 18:15 |
[swak4Foam] Swak4Foam/GroovyBC for total pressure in simpleFoam | fivos | OpenFOAM Community Contributions | 5 | February 14, 2014 12:51 |
Trying to run a benchmark case with simpleFoam | spsb | OpenFOAM | 3 | February 24, 2012 10:07 |
Gas pressure question | Dan Moskal | Main CFD Forum | 0 | October 24, 2002 23:02 |