|
[Sponsors] |
Local permeability in porousSimpleFoam or icoFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 13, 2014, 11:46 |
Local permeability in porousSimpleFoam or icoFoam
|
#1 |
New Member
James minto
Join Date: Nov 2012
Posts: 3
Rep Power: 13 |
Hi everyone,
I'm using OpenFOAM 2.3.0 and would like to model flow through a porous media such as a sandstone core in which the permeability of the media varies spatially. I think one approach (mentioned here) would be to use porousSimpleFoam but modify the DarcyForchheimer porosityModel so that the d and f coefficients are volume scalar fields that can be set with setFields (instead of being constants specified in the porosityProperties dictionary). I am having two problems with this. Firstly the DarcyForchheimer class is located in src/finiteVolume/cfdTools/general/porosityModel and I am having trouble separating DarcyForchheimer from all the other finiteVolume classes so that it can be compiled separately in my user directory without getting a lot of dependency issues. Secondly I can create the new volume scalar fields for d and f (called d_local and f_local) following the adding temperature to icoFoam tutorial, but don't know where to start with changing references to d and f to d_local and f_local. Another approach may be to modify the icoFoam solver so that d_local and f_local are included within the calculation of p and U in icoFoam.C. This might not be as nice a solution as using the existing porosityModel class but if it is a lot simpler then I would prefer this option as I have been using OpenFOAM for 2 years now but I'm new to modifying solvers. And advice on how to implement either of these solutions (or any other solutions you may know) would be greatly appreciated. If anyone knows of a beginners guide/tutorial for creating your own solver than could you please send me a link to it. If I make any progress on my own I'll post an update here. Thanks a lot James |
|
Tags |
darcy-forchheimer, local permeability, openfoam 2.3.0, poroussimplefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 13:58 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 04:03 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 02:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 18:07 |