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

[Salome] Mesh broken after combining stl

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2022, 18:43
Default Mesh broken after combining stl
  #1
New Member
 
Ben Andrews
Join Date: Apr 2022
Posts: 2
Rep Power: 0
benjaminandrews38 is on a distinguished road
Hi there,

openFoam noob here, sorry in advance. I am having a problem building my mesh with salome.

combining stl files with individual patches seems to break some of the faces. please see the attached image. My workflow has been:

1. create (very simple) geometry with fusion 360 and export to step format.
2. import step file into Salome
3. create face groups for inlet,outlet,walls
4. triangulate mesh with NETGEN 2D / Wire discretization (adaptive length)
5. export groups of faces to inlet.stl, outlet.stl and walls.stl
6. combine with "cat *.stl > combined.stl"

The exported stl files look fine, but everything goes crazy in the combined file.

Any advice?
Attached Images
File Type: jpg brokenmesh.jpg (61.8 KB, 30 views)
benjaminandrews38 is offline   Reply With Quote

Old   April 7, 2022, 05:25
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
What happens if you use OpenFOAM's surfaceAdd to combine the STLs?

Code:
Usage: surfaceAdd [OPTIONS] <surface1> <surface2> <output>
Arguments:
  <surface1>        The input surface file 1
  <surface2>        The input surface file 2
  <output>          The output surface file
Options:
  -case <dir>       Specify case directory to use (instead of cwd)
  -mergeRegions     Combine regions from both surfaces
  -points <file>    Provide additional points
  -scale <factor>   Geometry scaling factor on input surfaces
  -doc              Display documentation in browser
  -help             Display short help and exit
  -help-full        Display full help and exit

Add two surfaces via a geometric merge on points. Does not check for
overlapping/intersecting triangles.

Using: OpenFOAM-v2112 (2112) - visit www.openfoam.com
Build: _14aeaf8dab-20211220
Arch:  LSB;label=32;scalar=64
GerhardHolzinger is offline   Reply With Quote

Old   April 7, 2022, 08:29
Default
  #3
New Member
 
Ben Andrews
Join Date: Apr 2022
Posts: 2
Rep Power: 0
benjaminandrews38 is on a distinguished road
Similar result unfortunately, although it seems to be translating different nodes.

I think the problem is Salome. I've just tried importing the merged file to fusion 360 and it displays perfectly.
benjaminandrews38 is offline   Reply With Quote

Reply

Tags
stl files


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
[snappyHexMesh] Problems with stl from dem and background mesh VLima OpenFOAM Meshing & Mesh Conversion 1 May 4, 2020 13:04
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[ICEM] Working on imported STL mesh file saitej09 ANSYS Meshing & Geometry 0 January 16, 2015 07:11
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03


All times are GMT -4. The time now is 19:48.