CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Cannot get my geometry file inside the blockMesh (https://www.cfd-online.com/Forums/openfoam-meshing/98045-cannot-get-my-geometry-file-inside-blockmesh.html)

lovecraft22 March 1, 2012 17:23

Cannot get my geometry file inside the blockMesh
 
1 Attachment(s)
Hi all;
I'm back to OF after a year or so and I'm trying to mesh a simple circular cylinder. I started from the motorbike tutorial and… my cylinder is not within my domain once snappyHexMesh has done his job…
I'm sure is something stupid I'm missing here but yet I can't figure it out…

Could anybody of you guys take a look at my files here enclosed?
Thank you!

lovecraft22 March 2, 2012 14:38

Seems like the geometry is not seen at all…

lovecraft22 March 3, 2012 08:26

I started again from the motorbike tutorial and I replaced the motorbike geometry with my cylinder without changing any name and yet… no geometry inside the domain… so it is not a setup issue, I think it's related to my stl/obj geometry file… but how? I really can't figure it out…

Any help would be really appreciated…

wyldckat March 3, 2012 10:45

Hi Lore,

Read this thread: http://www.cfd-online.com/Forums/ope...tml#post346810
Well, you can skip to post #8, where you should find a test case similar to yours and on post #9 you have my description of what was wrong on that case.

If you still have problems after analyzing that case and analysis, please detail a bit your questions ;)

Best regards,
Bruno

lovecraft22 March 3, 2012 11:17

2 Attachment(s)
Thank you Bruno.

I think all the points you outlined in that discussion were already ok.
Please have a look at these pictures where you can see:

Pic 1: domain outline (white), cylinder geometry (yellow), point inside the domain (red sphere);
Pic 2: slice through the domain: I have the mesh where it should not be…

So, so summarize: the geometry is within my domain and the point in the domain is where it should be, and yet, no cylinder in the mesh…

Thanks again for your time.

wyldckat March 3, 2012 11:40

Hi Lore,

On the "geometry" section, you specify the kinds of geometries that will be part of the mesh generation process; but then on the respective following sections, you have to specify what kinds of refinement you need on each, so sHM knows what should be done with each one. It's probably made to work this way to avoid the software making assumptions, which can lead to problems in certain cases!

Therefore, you're missing at least this:
Code:

    refinementSurfaces
    {
        cilindro.stl
        {
            // Surface-wise min and max refinement level
            level (0 0);
        }
    }

Notice that no additional refinement is requested, but it indicates how the geometry should be used.

Best regards,
Bruno

lovecraft22 March 3, 2012 12:22

Thank you Bruno! That was the issue!


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