CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (http://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   how to create geometry with salome to make "IdeasUnvToFoam" working! (http://www.cfd-online.com/Forums/openfoam-meshing-open/117230-how-create-geometry-salome-make-ideasunvtofoam-working.html)

amorenelchino May 5, 2013 05:14

how to create geometry with salome to make "IdeasUnvToFoam" working!
 
Hello!!

I am working with Salome to create a mesh with NETGEN 1D-2D-3D, i export to .unv but IdeasUnvtoFOam works but makes nothing! I know that the problem is in my geometry, but i dont know how to do it...this is the message error:

Case : /home/amorenelchino/openfoam/amorenelchino-2.2.0/run/tempel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Sorting boundary faces according to group (patch)

Constructing mesh with non-default patches of size:

End


what i make in geomety, its to cut two solid, one of them is a "primitive box" and the other one is a fuse, and the fuse is a union from "Hexahedral solid", and them were maked with 2 faces, it is something not allowed???

i hope i expressed it gut...sorry for my english...:-(

And thanks a lot!!i tried lot of things, and i dont know how to do it...i am really lost...

RGoersch May 14, 2013 03:54

Look into my blog
 
Hi Laura,

take a look into my blog. Over there I'm explaining how you can set a good geometry to be exported to Openfoam.


You are having this issue because you didn't set your boundaries in your mesh.

chasingaftermystuff.blogspot.com.br

Over there you will what you are probably missing.

Cheers.

amorenelchino May 14, 2013 06:04

Thanks Rafael!

I was watching a bit your blog, and i think i can use lot of things! I was really tired from this mesh error and now i am trying with .stl (salome) and snappymesh...but i still want to know how to export properly the mesh with salome to use with openfoam...

Cheers!!

RGoersch May 14, 2013 19:58

Laura,

what you are doing is correct. The problem is that you are not creating the boundaries in your mesh, so, when the grid is exported using UNV you won't have boundaries and Openfoam is not going to accept.

In http://chasingaftermystuff.blogspot....ting-mesh.html I'm showing how you can use your geometry to set you boundary mesh.

If you still have doubts send me a dump of your Salome problem so I can take a look.

Cheers.

amorenelchino May 15, 2013 03:02

:D
 
Thanks again,

that was the post i was watching...i understand the problem..so i will try to fix it and i hope it will work! if i still having problems, i will send you my geometry and things from salome, thanks! for your support!its really difficult at the beginnig but i really like this program and i want to learn who to use properly...

Best regards! :D

pici June 24, 2013 10:35

RE: how to create geometry with salome to make "IdeasUnvToFoam" working!
 
Quote:

Originally Posted by amorenelchino (Post 425287)
Hello!!

I am working with Salome to create a mesh with NETGEN 1D-2D-3D, i export to .unv but IdeasUnvtoFOam works but makes nothing! I know that the problem is in my geometry, but i dont know how to do it...this is the message error:

Case : /home/amorenelchino/openfoam/amorenelchino-2.2.0/run/tempel
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Sorting boundary faces according to group (patch)

Constructing mesh with non-default patches of size:

End


what i make in geomety, its to cut two solid, one of them is a "primitive box" and the other one is a fuse, and the fuse is a union from "Hexahedral solid", and them were maked with 2 faces, it is something not allowed???

i hope i expressed it gut...sorry for my english...:-(

And thanks a lot!!i tried lot of things, and i dont know how to do it...i am really lost...

Hi Laura,
I hope I'm arriving too late and you already solved any your problem, but I want add something to nice Rafael Goersch replies.
I have to notice that if you miss wall's definition in Salomé, OpenFOAM should anyway be capable to find at least one group of boundary faces and name it patch0, at least for cavity problems (I'm working with VOF to study sloshing at present, and obviously all my domains are cavities).
Generally, error you have should mean that you have noting in .unv file; in effect, when .unv file is bad, you should receive some error like this:
Quote:

For group 8 named PressRef trying to read 1 patch face indices.
--> FOAM Warning :
From function readSets(..)
in file ideasUnvToFoam.C at line 552
Reading "Vessel-Fori_Mesh.unv" at line 3182125

When reading patches expect entity type code 8
Skipping group code 7
For group 9 named WaterLine-1 trying to read 262 patch face indices.
For group 10 named WaterLine-2 trying to read 256 patch face indices.
For group 11 named HCLine-1 trying to read 246 patch face indices.
For group 12 named HCLine-2 trying to read 188 patch face indices.
For group 13 named ExtLine-1 trying to read 131 patch face indices.
For group 14 named ExtLine-2 trying to read 130 patch face indices.
For group 15 named VesselWalls trying to read 86594 patch face indices.

Sorting boundary faces according to group (patch)
0: WaterLine-1 is faceZone


--> FOAM FATAL ERROR:
3015 not found in table. Valid entries:
...
...
From function HashTable<T, Key, Hash>:Operator[](const Key&)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/HashTableI.H at line 117.

FOAM exiting

This was a series of error that I received because I did a small imprecision in Salomé interactive session.
If you didn't already, you should read Salomé tutorial (look at www.caelinux.com website) an help files, to learn how to use it; I also suggest to not start directly in Pyton programming, because Salomé is developed to be used principally in interactive way (just like a CAD system or like Femap, Patran etc...) and, if you have some skill in parametric CAD, is very effective and nice to use specially for very complicated geometry.
Have a a nice day,
Piero


All times are GMT -4. The time now is 10:46.