CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Flow through porous media (https://www.cfd-online.com/Forums/openfoam-programming-development/77591-flow-through-porous-media.html)

marango June 28, 2010 12:40

Flow through porous media
 
Hello everybody,

I'm a newbie in OpenFOAM and have some problems with the implementation in OpenFOAM. As you can see in the title I'm examing flow through porous media using a new approach.

Similar to the Darcy-Forchheimer-Equation I want to add a new term to rhs of the incompressible Navier-Stokes-Equation. As a basis I use the simple-solver in OpenFOAM. Now I'd like to change the implemented differential equation. The rhs looks in x-direction as follows:
... = dp/dx - a* u_x - b* (u_x)² .
( a,b - scalar values)
I tried a lot to implement it. But certainly I don't know the right commands. Can anybody help me?

Many thanks in advance! :)

herbert June 28, 2010 12:46

Hi marango,

you don't have to do anything on your own. Please have a look on rhoPorousSimpleFoam and its tutorials. This is a compressible solver, but you can use nearly the same commands for incompressible solvers.

Regards,
Stefan

marango June 28, 2010 14:15

Thanks, Stefan, for your instant answer.

I already used the rhoPorousSimpleFoam-solver and implemented an incompressible version of this solver. Unfortunately the results were completely wrong.

So I use a new approach, which also changes the lhs of the NSE. This is working right, but only the rhs makes problems.

I also considered to use some commands from rhoPorousSimpleFoam, but either I couldn't find out what this command actually does or the mathematical background doesn't suite to my approach.


All times are GMT -4. The time now is 02:03.