CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Creating a solver for porous media

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2019, 18:32
Default Creating a solver for porous media
  #1
New Member
 
Ramaswamy Devakottai
Join Date: Feb 2019
Posts: 9
Rep Power: 7
rsdevako is on a distinguished road
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!
rsdevako is offline   Reply With Quote

Old   May 12, 2019, 23:10
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
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
clapointe is offline   Reply With Quote

Old   May 13, 2019, 04:00
Default
  #3
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
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
Cyp is offline   Reply With Quote

Old   May 13, 2019, 18:59
Default
  #4
New Member
 
Ramaswamy Devakottai
Join Date: Feb 2019
Posts: 9
Rep Power: 7
rsdevako is on a distinguished road
Hey all,


Thanks a lot.


I will look at these links and learn.
rsdevako is offline   Reply With Quote

Old   May 15, 2019, 22:23
Default
  #5
New Member
 
Ramaswamy Devakottai
Join Date: Feb 2019
Posts: 9
Rep Power: 7
rsdevako is on a distinguished road
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!
rsdevako is offline   Reply With Quote

Reply

Tags
openfoam, porous media flow, programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating User Defined Solver Format for exporting Grids JamesDoesCFD GridPro 1 August 29, 2017 08:17
adding Porous media to lagrangian Solver kalyan OpenFOAM Programming & Development 0 September 19, 2014 08:41
creating a new solver wschosta OpenFOAM Programming & Development 0 May 17, 2011 15:40
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Creating a new solver from chtMultiRegionFoam David_010 OpenFOAM Programming & Development 0 April 20, 2010 12:36


All times are GMT -4. The time now is 11:32.