CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Simulating pressure diffusion in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2022, 06:21
Default Simulating pressure diffusion in OpenFoam
  #1
New Member
 
Julia Fed
Join Date: Jul 2020
Location: UK
Posts: 4
Rep Power: 5
JuliaFed is on a distinguished road
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!
JuliaFed is offline   Reply With Quote

Old   February 28, 2022, 16:58
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
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!
Tobermory is offline   Reply With Quote

Old   March 1, 2022, 04:29
Default
  #3
New Member
 
Julia Fed
Join Date: Jul 2020
Location: UK
Posts: 4
Rep Power: 5
JuliaFed is on a distinguished road
Thank you very much for your reply, that sounds right! I'll try it and let you know if it works
JuliaFed is offline   Reply With Quote

Reply

Tags
openfoam, pimplefoam, pressure diffusion, transient


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In what unit is pressure measured on OpenFOAM? Matheus.Costa OpenFOAM 16 February 23, 2024 04:08
Generate convective pressure fluctuation Bananenflanke CFX 10 May 12, 2021 18:33
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 06:33
Reference pressure in OpenFOAM P.Satish OpenFOAM Running, Solving & CFD 7 December 21, 2017 12:01
Can OpenFoam deal with pressure waves in pipe? coompressor OpenFOAM Running, Solving & CFD 4 September 27, 2016 16:36


All times are GMT -4. The time now is 13:38.