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

[snappyHexMesh] snapEdge - failure

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2011, 07:01
Default snapEdge - failure
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

i wanna test the snapEdge tool and downloaded it from the wiki and installed it correctly.

If i run snapEdge i got a error message that he can 't read the "stl" file.

Code:
--> FOAM FATAL ERROR: 
Cannnot read "inlet.stl"

    From function triSurface::read(const fileName&, const word&, const bool)
    in file triSurface/triSurface.C at line 371.

FOAM exiting
does someone know these error message ?
I ve had a look at the triSurface.C file but there is just the error-report line.

thanks

Tobi
Tobi is offline   Reply With Quote

Old   January 30, 2011, 07:30
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Okay - prolbem solved

the STL has to be in the "case" dictionary. Not in the triSurface.

Tobi
Tobi is offline   Reply With Quote

Old   January 31, 2011, 02:43
Default
  #3
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Let me know how it works.
I've come up with a whole new algorithm and
I'm working on a complete re-write of this tool.
niklas is offline   Reply With Quote

Old   February 16, 2011, 08:28
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi niklas,


i ve been working on a chtMultiRegion case and got very small and big mappedWall types.

Your tool is fantastic for that. without it i never get the interfaces correctly.
Its simple and good.

1. castellated (sHM)
2. snap (sHM)
3. snapEdge
(4. addLayers)

thats it
Great tool...

Here an picture.

Good work
Tobi
Attached Images
File Type: png wosnE.png (3.3 KB, 286 views)
File Type: jpg snapEdge.jpg (11.8 KB, 278 views)
Tobi is offline   Reply With Quote

Old   February 24, 2011, 05:46
Default snapEdge
  #5
New Member
 
Hannes
Join Date: Dec 2010
Location: Oldenburg, Germany
Posts: 17
Rep Power: 16
Hanno is on a distinguished road
Hey Niklas,

im very interested in your work. You've got any further with your re-write?
And, most important: is there a way to run your tool in parallel? decomposePar + mpirun doesn't do the job

Last edited by Hanno; February 24, 2011 at 06:48.
Hanno is offline   Reply With Quote

Old   February 24, 2011, 06:49
Default
  #6
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Quote:
Originally Posted by Hanno View Post
Hey Niklas,

im very interested in your work. You've got any further with your re-write?
yes, but I need to clean it and make it more structured, otherwise I'm quite happy with the new
algorithm.
It works better I think.

N
niklas is offline   Reply With Quote

Old   February 24, 2011, 07:33
Default
  #7
New Member
 
Hannes
Join Date: Dec 2010
Location: Oldenburg, Germany
Posts: 17
Rep Power: 16
Hanno is on a distinguished road
Quote:
Originally Posted by niklas View Post
yes, but I need to clean it and make it more structured, otherwise I'm quite happy with the new
algorithm.
It works better I think.

N
Please get me informed as soon as you have it ready to share. I try to mesh a pretty complex geometry (with only 90° angles) with SHM+SE but SE doesnt do the job so far.
Hanno is offline   Reply With Quote

Old   February 25, 2011, 08:46
Default
  #8
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Try this one and if it fails I'd like to look at your stl if its possible.
(Note that its no longer necessary to link the stl to from the constant/triSurface directory)
http://openfoam.nequam.se/cases/snapEdge_110225.tgz

Everyting is now in a separate class to make it easier for those who want to incorporate snapEdge
with snappy.

N
niklas is offline   Reply With Quote

Old   February 26, 2011, 03:06
Default
  #9
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Hi Niklas,

does this work in parallel as well!?

Best Regards!
Fabian
braennstroem is offline   Reply With Quote

Old   February 26, 2011, 09:14
Default
  #10
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
nope, it does not.
niklas is offline   Reply With Quote

Old   February 26, 2011, 10:53
Default
  #11
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
thanks for the quick response.
braennstroem is offline   Reply With Quote

Old   February 28, 2011, 07:55
Default
  #12
New Member
 
Hannes
Join Date: Dec 2010
Location: Oldenburg, Germany
Posts: 17
Rep Power: 16
Hanno is on a distinguished road
Hey Niklas,

thanks a lot, i'll give it a try and report results later!
Hanno is offline   Reply With Quote

Old   October 30, 2012, 11:09
Default
  #13
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by niklas View Post
Try this one and if it fails I'd like to look at your stl if its possible.
(Note that its no longer necessary to link the stl to from the constant/triSurface directory)
http://openfoam.nequam.se/cases/snapEdge_110225.tgz

Everyting is now in a separate class to make it easier for those who want to incorporate snapEdge
with snappy.

N

Hello Niklas,

Thank you very much for providing the tool!

I have tried it with my STL .. did not really work for me

Please check my STL if you have time


and If you have more time please check my case under this link:
http://dl.dropbox.com/u/32336583/Case.zip


Thanks a lot!
Attached Images
File Type: jpg STL.jpg (48.9 KB, 116 views)
File Type: jpg After_Snapping.jpg (50.8 KB, 116 views)
Attached Files
File Type: zip triSurface.zip (97.0 KB, 9 views)
hfs is offline   Reply With Quote

Old   October 31, 2012, 03:37
Default
  #14
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
it looks like you are trying to 'snap' to a surface.
this tool only work on edges.
niklas is offline   Reply With Quote

Old   October 31, 2012, 04:10
Default
  #15
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by niklas View Post
it looks like you are trying to 'snap' to a surface.
this tool only work on edges.

Exactly.

Could you please advice? I have tried to play around with snapping parameters ... I increased snapping iterations (5000 iterations) ... I have disabled all snapping controls ... nothing is working


Really appreciate your guidance!

Regards,
hfs is offline   Reply With Quote

Old   October 31, 2012, 05:08
Default
  #16
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
How do you get the Umb patch?
niklas is offline   Reply With Quote

Old   October 31, 2012, 05:58
Default
  #17
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
Does these work better?
Attached Files
File Type: gz blockMeshDict.gz (463 Bytes, 57 views)
File Type: gz snappyHexMeshDict.gz (4.7 KB, 86 views)
niklas is offline   Reply With Quote

Old   October 31, 2012, 06:34
Default
  #18
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by niklas View Post
How do you get the Umb patch?
Thanks for your quick reply

I got Umb patch from an STL file... this is what I did

1-Extracted the geometry from the STL and convert it to emesh using the command: surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/Umb.stl Umb

2-Duplicated edges in emesh (simply by copy-pasting) as recommended here (http://www.cfd-online.com/Forums/ope...rane-edge.html)

3-Converted this emesh file to faceZones by adding faceZone Umb; cellZone Umb; cellZoneInside inside; to snappyHexMeshDict as follows:

refinementSurfaces
{
Umb
{
// Surface-wise min and max refinement level
level (2 2);
faceZone Umb;
cellZone Umb;
cellZoneInside inside;
}
}


4- After the SHM, I converted this faceZones into Patches using the command: createBaffles Umb '(Umb Umb)'
hfs is offline   Reply With Quote

Old   October 31, 2012, 06:39
Default
  #19
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by niklas View Post
Does these work better?
Wow!
Thank you very muchhh!!!

It is snapped very nicely! ...

Is this here the secret?: [faceType boundary;]

In blockMesh: Is creating one patch for all other patches as an empty patch is better for snapping?? Why??



Thanks again!
Attached Images
File Type: jpg Snapped.jpg (46.2 KB, 137 views)

Last edited by hfs; October 31, 2012 at 07:14.
hfs is offline   Reply With Quote

Old   October 31, 2012, 07:23
Default
  #20
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
ok, thats good. I've been trying to get the edges to actually match also, but for some reason they wont.

I dont know why.

I dont have time to look into this now. If I do, ill post the solution here.

N
niklas is offline   Reply With Quote

Reply


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
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 17:38
P1 and DT Radiation Model Failure Birnensuppe CFX 6 November 13, 2017 07:06
The fluent stopped and errors with "Warning: License server connection lost.poll: pro yuyuxuan FLUENT 4 January 9, 2014 06:20
snapEdge not working crossley90 OpenFOAM 4 August 4, 2011 05:26
[snappyHexMesh] snapEdge compilation problems rassilon OpenFOAM Meshing & Mesh Conversion 4 February 23, 2011 22:23


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