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/)
-   -   Creating a solver for porous media (https://www.cfd-online.com/Forums/openfoam-programming-development/217402-creating-solver-porous-media.html)

rsdevako May 10, 2019 17:32

Creating a solver for porous media
 
Hi all,

I am relatively new to openFoam. I have run a small number of simulations with openfoam before, with only minor changes to the fvSchemes and fvSolution files.

I am faced with the task of creating a solver to simulate flow in porous media; and I have decided upon the governing equations and boundary conditions.

It would be great if someone pointed me in the right direction to start - I would like to learn on:

  1. How to discretize the governing equations,
  2. How to code on OpenFoam,
  3. The effects of the mathematical models in openfoam


Thanks a lot in advance!

clapointe May 12, 2019 22:10

There are various solvers, methods to model flow through porous media (see e.g. https://github.com/OpenFOAM/OpenFOAM...rousSimpleFoam) -- a search through the forum/google should provide ample information.

Caelan

Cyp May 13, 2019 03:00

You will find a full tutorial to program a solver for porous media over there (from page 86) including basics of openfoam programming.

Cheers,
Cyprien

rsdevako May 13, 2019 17:59

Hey all,


Thanks a lot.


I will look at these links and learn.

rsdevako May 15, 2019 21:23

Hey Cyprien,



I had went through your presentation on OpenFOAM programming.



I am facing a little bit difficulty in understanding the 'semi-discretization' of the NS equations for the icoFoam solver.



My project requires a steady state simulation, so I understand that I would need to use a SIMPLE loop to solve for pressure. Would I need to do 'semi-discretization' there too? Where can I read about this?


Thank you so much and sorry for the trouble.



Cheers!


All times are GMT -4. The time now is 08:50.