Adding porous zones in icoFoam solver
I am trying to simulate a fluid leak from a capillary into surrounding porous media. I was experimenting with porousSimpleFoam, but my Reynolds number is around 1e-3 so what I really need is a laminar solver and it seems icoFoam is the best option. My problem is that the porous regions do not seem to affect fluid flow regardless of the porosity values that I use. I am not sure if icoFoam is acknowledging the porous zones at all.
Here is my checkMesh file Code:
/*---------------------------------------------------------------------------*\ Thanks, Joe |
Hi,
It is rather interesting switch, from porousSimpleFoam to icoFoam. The first is steady-state solver, the second is transient solver. It is much easier to make (for example) pimpleFoam to behave like icoFoam (i.e. set number of outer correctors to 1, set RASModel to laminar) then to add porous zones to icoFoam (add corresponding pieces of code to solver, recompile solver, test new solver). Also with pimpleFoam (or simpleFoam if you need steady state solution) you can use explicitPorositySource to set porous zones. |
PimpleFoam still not recognizing porosity
I converted to pimpleFoam as you suggested, but I am still struggling to see any resistance.
When I ran the tutorial for porousSimpleFoam, the start of the simulation read like this. Code:
/*---------------------------------------------------------------------------*\ Code:
/*---------------------------------------------------------------------------*\ |
Hi,
If you reread my previous message, it contains "you can use explicitPorositySource to set porous zones", while your execution log shows: Code:
No finite volume options present |
Working now
Thank you!
That was just the hint that I needed. I created the fvOptions file in the system folder and added the contents of the porosity properties file. There were a few more formatting related hiccups, but it looks like everything works now. Thanks for taking the time to help. Joe |
All times are GMT -4. The time now is 14:17. |