CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   how can I set porous media in porousSimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/121488-how-can-i-set-porous-media-poroussimplefoam.html)

shaoqi July 29, 2013 21:40

how can I set porous media in porousSimpleFoam
 
1 Attachment(s)
good morning everyone, and sorry for my poor english

I meet a problem with porousSimpleFoam calculator.
I use solidworks to build the model, use blender and swiftsnap add-in to generate the mesh. The model is as attached(the model is continued, there is no space between three part)
Attachment 23870

And there is somthing wrong with the meshes, the file cellsZone is only 871B (empty), when I start the simulation,some error as follows happening.

Creating porous zone: porosity

Quote:

--> FOAM FATAL ERROR:
cannot find porous cellZone porosity
From function Foam::porousZone::porousZone(const fvMesh&, const word&, const dictionary&)
in file cfdTools/general/porousMedia/porousZone.C at line 92.
FOAM exiting

than change snappyHexMeshDict as below, the cellZones file changes to 7.2MB.
Quote:

refinementSurfaces
{
outlet
{
level (0 0);
}
inlet
{
level (0 0);
}
wall
{
level (0 0);
}
porosity
{
level (0 0);
faceZone porosity;
cellZone porosity;
zoneInside true;
}
}


then run the simulation, error again.

Quote:

--> FOAM FATAL ERROR:
This mesh contains patches of type empty but is not 1D or 2D
by virtue of the fact that the number of faces of this
empty patch is not divisible by the number of cells.
From function emptyFvPatchField<Type>::updateCoeffs()
in file fields/fvPatchFields/constraint/empty/emptyFvPatchField.C at line 150.
FOAM exiting

Do my words convey my meaning to you?

Thanks for help



furthermore, my ultimate goal is know how to set porous easier (without compiling),
if anyone has some relevant cases to share, ignore my case. Thanks again.

m5m5kh July 30, 2013 16:25

same problem
 
3 Attachment(s)
hi
I have the same problem ,I import a fluent mesh to openfoam
but I do not know how to define a porous zone. someone told me I should use topoSetDict .I am not so advanced to modify topoSetDict and I need your help. please help me if you can

gooya_kabir August 5, 2013 17:48

porous
 
Dear friend,

As you are familiar with porous solver in openfoam I have question.I want to simulate the flow in the oil resevoir condition. I've seen many porous solver in the openfoam. but I want to simulate the geometry which has been given from tomography data (3D geometry). is it possible to simulate this condition? or porous solvers in openfoam just take some properties such as porosity and solve the equations according to them?

Many thanks for your helpful comment
Reza


All times are GMT -4. The time now is 20:49.