CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Air flow through porous media (https://www.cfd-online.com/Forums/openfoam/212205-air-flow-through-porous-media.html)

KyriakosPaso November 28, 2018 05:33

Air flow through porous media
 
Hello.


I need to simulate an air flow through a porous media, but I do not want to use the porousSimpleFoam or the rhoPorousSimpleFoam. I want to import the equations governing the problem in another solver, such as icoFoam.



I tried to build a new solver, named porousIcoFoam. I used the equation:

fvVectorMatrix UEqn
(
fvm::ddt(gamma,U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
- (nu)*(D&U)*lamda
);


where gamma=porosity at the porous media, and gamma=0 otherwise

lamda=1 at the porous media, and lamda=0 otherwise


In setFeilds i have defined lamda and gamma, and in transport properties the tensor D.


Is this a correct way to solve my problem?


All times are GMT -4. The time now is 12:37.