|
[Sponsors] |
February 28, 2022, 07:21 |
Simulating pressure diffusion in OpenFoam
|
#1 |
New Member
Julia Fed
Join Date: Jul 2020
Location: UK
Posts: 4
Rep Power: 6 |
Hi everyone,
I'm studying some simple cases to validate my own code. The initial set up is very simple: a large square of constant pressure with another square of higher pressure at the centre of the domain. Viscosity is very high (100) and the timestep very small (0.01). The goal is to observe pressure diffusion in time. The whole domain is defined as porous in fvOptions. I've been trying with pimpleFoam and a lot of different settings, but the result after any timestep > 0 is always a homogeneous pressure field, with the same value as the outer part of the domain. The high-pressure area disappears. Does this make sense, or is it something that openFoam doesn't do...? If you think I should be able to see pressure diffusion and I'm doing something wrong, I will post more details. Thank you! |
|
February 28, 2022, 17:58 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 745
Rep Power: 14 |
If you look at the description of pimpleFoam (e.g. https://cfd.direct/openfoam/user-gui...andard-solvers), you'll see that it says "Transient solver for incompressible, turbulent flow of Newtonian fluids, with ...". In an incompressible flow, the pressure field adjusts instantaneously to the velocity field, and that's why your initial pressure field disappears in the first timestep. So, you need a compressible solver like rhoPimpleFoam.
Secondly, and perhaps you have done this already, it's worth just doing some sums on the speed of sound and the physical dimensions of your pressurised zone to ensure that 0.01s is a fine enough resolution to capture all that you want to see. Good luck! |
|
March 1, 2022, 05:29 |
|
#3 |
New Member
Julia Fed
Join Date: Jul 2020
Location: UK
Posts: 4
Rep Power: 6 |
Thank you very much for your reply, that sounds right! I'll try it and let you know if it works
|
|
Tags |
openfoam, pimplefoam, pressure diffusion, transient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
In what unit is pressure measured on OpenFOAM? | Matheus.Costa | OpenFOAM | 16 | February 23, 2024 05:08 |
Generate convective pressure fluctuation | Bananenflanke | CFX | 10 | May 12, 2021 19:33 |
Fail to converge when solving with a fabricated solution | zizhou | FLUENT | 0 | March 22, 2021 07:33 |
Reference pressure in OpenFOAM | P.Satish | OpenFOAM Running, Solving & CFD | 7 | December 21, 2017 13:01 |
Can OpenFoam deal with pressure waves in pipe? | coompressor | OpenFOAM Running, Solving & CFD | 4 | September 27, 2016 17:36 |