|
[Sponsors] |
November 26, 2019, 07:01 |
porousInterFoam solver fixed and tutorial case
|
#1 |
New Member
Thomas N.
Join Date: Nov 2018
Posts: 11
Rep Power: 8 |
Dear foamers,
recently, I had to run some multiphase porous simulations and I realized that there isn't any tutorial case regarding the porousInterFoam. Therefore, I've decided to create one, at least for foam-extend 4.0, in the case that somebody needs it in the future. Before creating the case, I recompiled the solver so, it will be independent from interFoam. However, a minor change also should be made. In the UEqn.H, the volScalarField mu is defined such as Code:
.... // Calculate and cache mu for the porous media volScalarField mu(twoPhaseProperties.mu()); .... Code:
... pZones.addResistance(UEqn); ... Code:
// Need to store mu volScalarField mu ( IOobject ( "mu", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT ), twoPhaseProperties.mu() ); porosityInterFoam.zip Further, a case has been also attached and this describes the two-phase flow in a channel with a porous media. porosityInterFoam-case.zip Here are some results: results.zip Enjoy freely! Thomas N. Last edited by physicosm; December 11, 2019 at 03:51. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CAD formats] Creating waterproof STL using snappyHexMesh or salome | Tobi | OpenFOAM Meshing & Mesh Conversion | 58 | May 13, 2020 07:01 |
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing | peterhess | OpenFOAM Meshing & Mesh Conversion | 2 | January 3, 2018 03:54 |
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. | jasv | OpenFOAM Meshing & Mesh Conversion | 4 | May 10, 2016 03:55 |
Strange Results With snappyHexMesh | calebamiles | OpenFOAM Running, Solving & CFD | 0 | August 14, 2011 17:02 |
[snappyHexMesh] stitchMesh and snappyHexMesh | gdbaldw | OpenFOAM Meshing & Mesh Conversion | 0 | December 23, 2009 03:09 |