CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

PorousZone using Mesh imported from Salome

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2011, 03:12
Default PorousZone using Mesh imported from Salome
  #1
New Member
 
Raph Raggatt
Join Date: Jul 2011
Posts: 9
Rep Power: 14
Rapha is on a distinguished road
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:orousZone:orousZone(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 is offline   Reply With Quote

Old   October 18, 2011, 07:51
Default
  #2
New Member
 
Raph Raggatt
Join Date: Jul 2011
Posts: 9
Rep Power: 14
Rapha is on a distinguished road
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.
Rapha is offline   Reply With Quote

Old   November 8, 2013, 06:03
Default
  #3
Member
 
Nickolas P
Join Date: Oct 2010
Location: Greece
Posts: 30
Rep Power: 15
NickolasPl is on a distinguished road
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>:perator[](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
NickolasPl is offline   Reply With Quote

Old   November 12, 2013, 09:10
Default
  #4
nsf
Senior Member
 
Nicolas Edh
Join Date: Mar 2010
Location: Uppsala, Sweden
Posts: 123
Rep Power: 18
nsf is on a distinguished road
Quote:
Originally Posted by NickolasPl View Post
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>:perator[](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
nsf is offline   Reply With Quote

Old   November 12, 2013, 11:57
Default
  #5
Member
 
Nickolas P
Join Date: Oct 2010
Location: Greece
Posts: 30
Rep Power: 15
NickolasPl is on a distinguished road
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
NickolasPl is offline   Reply With Quote

Reply

Tags
porouszone salome


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Hexa mesh, curve mesh setup, bunching law Anorky ANSYS Meshing & Geometry 4 November 12, 2014 00:27
Converting Salome hybrid mesh to OpenFOAM Arnoldinho OpenFOAM 4 March 28, 2012 10:24
Mesh conversion exits prematurely (Salome to OF) DMcP OpenFOAM 0 July 14, 2011 02:07
Imported ICEM mesh has additional body in the mesh Procyon CFX 1 January 27, 2011 16:21
SimpleFoam error with mesh imported from salome matteo OpenFOAM Running, Solving & CFD 9 January 2, 2008 04:04


All times are GMT -4. The time now is 18:00.