|
[Sponsors] |
November 28, 2012, 13:59 |
Gravity source term in PisoFoam
|
#1 |
New Member
Dan M
Join Date: Sep 2010
Location: Munich, Germany
Posts: 20
Rep Power: 16 |
Hello,
I have a question regarding adding a source term to the momentum equation in the piso solver. I would like to model a channel flow taking into account the effect of gravity. To do so I have adjusted the solver as follows: fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) + turbulence->divDevReff(U) - gravity ); I have specified a non uniform pressure outlet condition to the channel that takes into account the effect of gravity. When solving the problem I attain a pressure distribution that seem reasonable (hydrostatic pressure distribution). However, I experience oscillations of the vertical velocity component (U1). This is seen in the attached picture that shows the velocity distribution across the channel height. The picture corresponds to the beginning of the simulation where the horizontal velocity is still zero and the vertical velocity should also be equal to zero across the height. It seems like the boundaries are causing some issues. I have used standard no slip conditions for U and zeroGradient for p so I am not sure what is causing the error. Is there something else I need to consider when trying to include gravity in a pisoFoam flow? I would greatly appreciate any help. Thank you very much, Dan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem of SOURCE term gradient in UDS | wind | Fluent UDF and Scheme Programming | 6 | December 1, 2022 15:21 |
How to write source term into scalar Fiel | JimKnopf | OpenFOAM Programming & Development | 0 | March 23, 2011 06:59 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 05:26 |
Adding a momentum source term | segersson | OpenFOAM Running, Solving & CFD | 5 | March 3, 2006 00:06 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |