|
[Sponsors] |
setting pressure gradient in the internal field |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 15, 2015, 20:01 |
setting pressure gradient in the internal field
|
#1 |
New Member
ahmad
Join Date: Oct 2012
Posts: 5
Rep Power: 14 |
Hi guys. Can anyone explain how I can set the pressure gradient as the initial condition in the internal field?
Most studies use pressure gradient as their initial condition to drive the flow in the streamwise direction. I'm trying to do the same using pisoFoam. I would appreciate any suggestions. Thanks. |
|
January 16, 2015, 18:08 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
If the flow is internal, you can use inlet and outlet pressure conditions to manifest your pressure gradient. The pressure field cannot just be applied as an initial condition because it will depend on potentially complicated flow behavior between the inlet and outlet. pisoFoam will solve the pressure field during its first timestep calculation and the pressure driven flow will evolve.
That is all I can offer without more details about what you are trying to accomplish. I know some simulations may use periodic domains (maybe for DNS/LES) and try to apply a pressure gradient to drive the flow. If that is what you are trying to accomplish, you can pick a pressure gradient and then add it as a source term to the momentum equation as a body force. Note that this is applicable only to simple flow domain (periodic channel flow, periodic flow between two plates) because in more complicated flow configurations, you cannot assume a uniform pressure gradient source term. |
|
January 18, 2015, 20:58 |
|
#3 |
New Member
ahmad
Join Date: Oct 2012
Posts: 5
Rep Power: 14 |
Hi Michael. Thanks for ur suggestion.
I'm running LES for turbulent flow over a surface with two rows of buildings. And, it's a periodic domain, very small with low velocity applied at the top boundary. So, within the internal domain, I wish to set constant pressure gradient, as done in previous studies as u said. So far, I have only set uniform velocity within the internal field as the initial condition, and its value is the same as the one on the top boundary. That's pretty much summarized my boundary conditions. But of course I will look into how I could add the pressure gradient term. This would involve compiling a new version of pisoFoam solver, which I haven't done before. Thanks again. |
|
January 18, 2015, 21:32 |
|
#4 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Conceptually, replace with . and are the pressures on either side of the periodic BCs. is the distance between the two periodic boundaries. When you insert that into the equation, you get the form for the body force. PisoFoam will be solving the flow with the modified pressure . So the full pressure (for post processing) will require you to add the linear term back on by hand.
As long as your boundary conditions are only periodic or zero-gradient for pressure, this transformation is valid for any geometric configuration. Also, this assumes incompressible flow. |
|
Tags |
internal field, pisofoam, pressure gradient |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC | Endel | OpenFOAM Running, Solving & CFD | 3 | September 11, 2014 17:29 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
SPH - Finding Pressure Gradient Anywhere | sckulp | Main CFD Forum | 0 | March 13, 2013 19:14 |
Pressure BC for combustion chamber | Giuki | FLUENT | 1 | July 19, 2011 12:35 |
Implicit elliptic pressure field equation. | TheBoyce | Main CFD Forum | 2 | June 3, 2011 14:08 |