CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   PorousZone using Mesh imported from Salome (http://www.cfd-online.com/Forums/openfoam/91060-porouszone-using-mesh-imported-salome.html)

Rapha July 29, 2011 03:12

PorousZone using Mesh imported from Salome
 
Hello,

I have created a Mesh in Salome pre-processing software and exported it into OpenFOAM using the ideasUnvToFoam process. I have designed it in 6 separate sections then built a compound mesh with all sections together, each defined by their respective group geometries such as inlet, outlet, etc.
However, I am trying to use the rhoPorousMRFSimpleFoam case with this mesh. When I load it up with all the various parameters, I get stuck when it asks for

--> FOAM FATAL ERROR:
cannot find porous cellZone Stone_1

From function Foam::porousZone::porousZone(const keyType&, const fvMesh&, const dictionary&)
in file cfdTools/general/porousMedia/porousZone.C at line 94.

The problem is when I've exported the Mesh from salome, no cellZones are created so I can't modify them for this case.
If someone could tell me how either to export the mesh from Salome to include cellZones or how to modify the porousZone input without the need for cellZones, I would be really grateful.

Thanks in advance

Rapha October 18, 2011 07:51

If anyone wants to know the answer of how to create a cellzone using Salome. Simply select the regions from the "Create Groups from Geometry" under the volume element. Add these in the Mesh section, then export.

NickolasPl November 8, 2013 07:03

Hello Raph,

I did exactly the same thing on a case with porous zone from SALOME using ideasUnvToFoam but with no luck. It gives me the following error:

From function HashTable<T, Key, Hash>::operator[](const Key&)
in file /home/sarris/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/HashTableI.H at line 110.


The problem is probably on the "Group on Volume" from SALOME. Because, when I exported the mesh from SALOME to OpenFOAM without the porous zone, the export was done ok with no problem. Any reccomendations?

I would greatly appreciate your help.

Regards,

Nickolas

nsf November 12, 2013 10:10

Quote:

Originally Posted by NickolasPl (Post 461172)
Hello Raph,

I did exactly the same thing on a case with porous zone from SALOME using ideasUnvToFoam but with no luck. It gives me the following error:

From function HashTable<T, Key, Hash>::operator[](const Key&)
in file /home/sarris/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude/HashTableI.H at line 110.


The problem is probably on the "Group on Volume" from SALOME. Because, when I exported the mesh from SALOME to OpenFOAM without the porous zone, the export was done ok with no problem. Any reccomendations?

I would greatly appreciate your help.

Regards,

Nickolas

Hi Nickolas,

If you haven't solved your problem yet you could try a python script I created. See my post at
http://www.cfd-online.com/Forums/ope...-openfoam.html

It supports cellZones, just add all domains as separate groups and it should work. Let me know if you run in to problems.

Best regards
Nicolas

NickolasPl November 12, 2013 12:57

Hi Nicolas,

I downloaded your utility and loaded the script in SALOME. I get the following error message when try to run it:

p, li { white-space: pre-wrap; } File "<input>", line 1, in <module>
File "/home/sarris/OpenFOAM/Nickolas/Melt_Impr_BATES/salomeToOpenFOAM-master/salomeToOpenFOAM.py", line 46, in <module>
from salome.smesh import smeshBuilder
ImportError: cannot import name smeshBuilder

Do you know which might be the reason for such an error?

Thanks in advacne!


Nickolas


All times are GMT -4. The time now is 04:55.