CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Using Salome for mesh generation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By MatP

Reply
 
LinkBack Thread Tools Display Modes
Old   July 11, 2012, 13:59
Default Using Salome for mesh generation
  #1
New Member
 
Matthias P
Join Date: May 2010
Posts: 16
Rep Power: 7
MatP is on a distinguished road
Hey there!

Can anyone give me some hints about the capability of any Salome version to mesh an imported geometry with a hexahedral mesh?
MatP is offline   Reply With Quote

Old   August 23, 2012, 10:26
Default
  #2
New Member
 
Steven Chew
Join Date: May 2012
Posts: 12
Rep Power: 5
Steven Chew is on a distinguished road
Hi,

I am also looking for assistance regarding meshing in Salome.

I can't seem to find any information on implementing line/surface mesh sources. Is there any tutorial available regarding this?

I tried this site

http://www.salome-platform.org/user-...ome-tutorials/

but somehow my meshing process always fails.
Steven Chew is offline   Reply With Quote

Old   August 24, 2012, 06:58
Default
  #3
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 579
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,

http://www.salome-platform.org/user-...edf-exercise-1

http://www.caelinux.org/wiki/index.php/Doc:CAETutorials
=>4 Salome & OpenFOAM tutorial

maybe http://pythonflu.wikidot.com/hybridflu it is not 100% what you looking for (but at least salome and meshing)

One comment ideasUnvToFoam does not convert everything that is meshed in salome therefore some people use hybridflu

Last edited by elvis; August 24, 2012 at 07:14.
elvis is offline   Reply With Quote

Old   August 25, 2012, 02:29
Default
  #4
New Member
 
Steven Chew
Join Date: May 2012
Posts: 12
Rep Power: 5
Steven Chew is on a distinguished road
Thanks elvis. Will go and try it out.
Steven Chew is offline   Reply With Quote

Old   August 27, 2012, 07:51
Default
  #5
New Member
 
Steven Chew
Join Date: May 2012
Posts: 12
Rep Power: 5
Steven Chew is on a distinguished road
Hi, I have tried following the pipe tutorial, but it actually does not have face sources. What it does is only uniform meshing applied across all the surfaces of the pipe.

I have tried exporting a simple cube using uniform mesh already, and it works in OpenFOAM. There shouldnt be any problem over there, but my real headache is finding any information on implementing mesh sources on geometrical faces. Any advice?
Steven Chew is offline   Reply With Quote

Old   August 27, 2012, 08:02
Default
  #6
New Member
 
Steven Chew
Join Date: May 2012
Posts: 12
Rep Power: 5
Steven Chew is on a distinguished road
I am trying using this approach, but im not sure if it's right

Geometry
new entity -> primitive -> box -> 10x10x10 -> Box_1
Box_1 -> Create Group -> Face Type -> left click one side -> Add -> Apply and Close -> Group_1

Mesh
Box_1 -> Create Mesh -> Netgen 1D-2D-3D -> Netgen 3D Parameters -> Max 1 Min 0.05 Fineness Fine Optimize -> Mesh_1
mesh_1 -> Compute
mesh_1 -> Create Group -> Face type -> Group on geometry -> geometrical object -> direction selection -> Box_1 Group_1
mesh Group_1 -> edit Mesh -> Netgen 1D-2D -> Netgen 2D Parameters -> Max 0.5 Min 0.05 Fineness Fine Optimize -> Mesh_2
Right click Mesh_2 -> Compute

But it always hangs and fails.
Steven Chew is offline   Reply With Quote

Old   August 27, 2012, 08:30
Default
  #7
New Member
 
Matthias P
Join Date: May 2010
Posts: 16
Rep Power: 7
MatP is on a distinguished road
Hi Steven,

did you try to define the Sub-Meshes before computing the whole mesh? And you don't have to define new groups of faces in the mesh module but you can use those defined in geo-module. So after defined the global mesh define the sub-meshes (refinement ...) on the desired groups and once you've finished just press compute.

hope this helps..
MatP is offline   Reply With Quote

Old   August 27, 2012, 09:05
Default
  #8
New Member
 
Steven Chew
Join Date: May 2012
Posts: 12
Rep Power: 5
Steven Chew is on a distinguished road
Quote:
Originally Posted by MatP View Post
Hi Steven,

did you try to define the Sub-Meshes before computing the whole mesh? And you don't have to define new groups of faces in the mesh module but you can use those defined in geo-module. So after defined the global mesh define the sub-meshes (refinement ...) on the desired groups and once you've finished just press compute.

hope this helps..
I just tried to
Create a box, explode into its 6 faces.
Created a group consisting of just one face (Face 6)
Switch to mesh module, create a mesh from box, 1D-2D-3D, max 1, min 0.02
Create sub-mesh on Group, 1D-2D, max 0.5 min 0.02

I tried to click on the global mesh and Compute, the system failed
I tried to click on the sub mesh and Compute, the system failed

by the way, I'm using the Windows version of Salome 6
Steven Chew is offline   Reply With Quote

Old   August 28, 2012, 02:06
Default
  #9
New Member
 
Matthias P
Join Date: May 2010
Posts: 16
Rep Power: 7
MatP is on a distinguished road
Ok... i think the Windows Version may be the reason for your problem. I've had the same problem during testing the capabilities of Salome Meshing tools and when using Netgen for refining the meshing failed and Salome crashed. So try to use another algorithm or use a Linux distribution as working system.
ShuToshio likes this.
MatP is offline   Reply With Quote

Old   August 28, 2012, 02:27
Default
  #10
New Member
 
Matthias P
Join Date: May 2010
Posts: 16
Rep Power: 7
MatP is on a distinguished road
Hmm.. it seems as if there's a bug. I managed to create the mesh you wanted this way:

1. Create Box and group of face as you already have done
2. Create Mesh on box: Assign set of hypotheses -> 3D automatic Tethraedalization with a desired length of 1
3. Create SubMesh of face: Assing set of hypotheses -> 2d automatic triangulation
4. Compute SubMesh: now you can see the fine mesh on the face 6
5. Click on Mesh1 and compute it. Now the process should be successful and you have a mesh with a specific number of edges, faces and voumes.
(5.a it also should work if you just define both your meshes and then click on Mesh1 and compute the whole mesh at once)

But if you want to modify your created mesh or make it once again, the process crashes...
MatP is offline   Reply With Quote

Old   August 28, 2012, 03:12
Default
  #11
New Member
 
Steven Chew
Join Date: Jul 2012
Posts: 4
Rep Power: 5
ShuToshio is on a distinguished road
I've managed to do the refined meshing on one side using Linux Salome. Thanks for your help, man! or else I'd still be floundering in murky waters for god knows how many days, trying to figure out which step I've taken wrongly.
ShuToshio is offline   Reply With Quote

Old   August 28, 2012, 10:41
Default
  #12
New Member
 
Steven Chew
Join Date: Jul 2012
Posts: 4
Rep Power: 5
ShuToshio is on a distinguished road
Well, meshing the cube was successful since the geometry is quite straightforward.

I then proceeded to mesh my real case (which happens to be a car).

- Created a box and did subtraction to derive the fluid domain
- explode into faces and grouped all car surfaces under one group, as well as walls and inlet outlet
- created a mesh under the domain
- created a submesh under the car surfaces

Both the domain mesh and car surface mesh I used automatic tet and triangles. but it constantly gave me error message

NETGEN_3D failed on sub-shape #1 with error COMPERR_BAD_INPUT_MESH "Intersecting triangles"

Algorithm: NETGEN_3D
Subshape: domain
Error: Invalid input mesh. Intersecting triangles
ShuToshio is offline   Reply With Quote

Old   August 30, 2012, 01:46
Default
  #13
New Member
 
Matthias P
Join Date: May 2010
Posts: 16
Rep Power: 7
MatP is on a distinguished road
And don't know the exact meaning of this error message but i think your problem comes from the definintion of your geometry. Maybe you've some double faces or faces with intersections points. You can find those faces after computing the mesh with an error message by clicking on the appearing information panel at show sub-shapes. Now you can see the faces appending to the error colored in your mesh display.

Maybe this could help you too:
http://www.salome-platform.org/forum/forum_10/912677133
MatP is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Entopy generation in CFX maryliz CFX 0 November 2, 2011 23:56
Salome and Code Saturne simulation of simple room and objects cristian.ocnarescu Main CFD Forum 0 June 21, 2010 10:19
Latest News in Mesh Generation Robert Schneiders Main CFD Forum 1 February 18, 2000 01:48
Latest new in mesh generation Robert Schneiders Main CFD Forum 0 February 16, 2000 08:12
Latest news in mesh generation Robert Schneiders Main CFD Forum 0 March 2, 1999 05:07


All times are GMT -4. The time now is 23:03.