CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: snappyHexMesh and Others (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/)
-   -   snapEdge - failure (http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/84449-snapedge-failure.html)

Tobi January 30, 2011 07:01

snapEdge - failure
 
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 January 30, 2011 07:30

Okay - prolbem solved :)

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

Tobi

niklas January 31, 2011 02:43

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.

Tobi February 16, 2011 08:28

2 Attachment(s)
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

Hanno February 24, 2011 05:46

snapEdge
 
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 :(

niklas February 24, 2011 06:49

Quote:

Originally Posted by Hanno (Post 296677)
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

Hanno February 24, 2011 07:33

Quote:

Originally Posted by niklas (Post 296689)
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.

niklas February 25, 2011 08:46

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

braennstroem February 26, 2011 03:06

Hi Niklas,

does this work in parallel as well!?

Best Regards!
Fabian

niklas February 26, 2011 09:14

nope, it does not.

braennstroem February 26, 2011 10:53

thanks for the quick response.

Hanno February 28, 2011 07:55

Hey Niklas,

thanks a lot, i'll give it a try and report results later!

hfs October 30, 2012 11:09

3 Attachment(s)
Quote:

Originally Posted by niklas (Post 296950)
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!

niklas October 31, 2012 03:37

it looks like you are trying to 'snap' to a surface.
this tool only work on edges.

hfs October 31, 2012 04:10

Quote:

Originally Posted by niklas (Post 389401)
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,

niklas October 31, 2012 05:08

How do you get the Umb patch?

niklas October 31, 2012 05:58

2 Attachment(s)
Does these work better?

hfs October 31, 2012 06:34

Quote:

Originally Posted by niklas (Post 389421)
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 October 31, 2012 06:39

1 Attachment(s)
Quote:

Originally Posted by niklas (Post 389430)
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!

niklas October 31, 2012 07:23

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


All times are GMT -4. The time now is 21:51.