CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

Cannot get my geometry file inside the blockMesh

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 1, 2012, 17:23
Default Cannot get my geometry file inside the blockMesh
  #1
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
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!
Attached Files
File Type: zip 1_cilindro.zip (32.6 KB, 15 views)
lovecraft22 is offline   Reply With Quote

Old   March 2, 2012, 14:38
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Seems like the geometry is not seen at all…
lovecraft22 is offline   Reply With Quote

Old   March 3, 2012, 08:26
Default
  #3
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
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…
lovecraft22 is offline   Reply With Quote

Old   March 3, 2012, 10:45
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Lore,

Read this thread: SnappyHexMesh
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
wyldckat is offline   Reply With Quote

Old   March 3, 2012, 11:17
Default
  #5
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
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.
Attached Images
File Type: png 1.png (19.0 KB, 10 views)
File Type: png 2.png (19.2 KB, 3 views)
lovecraft22 is offline   Reply With Quote

Old   March 3, 2012, 11:40
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   March 3, 2012, 12:22
Default
  #7
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Thank you Bruno! That was the issue!
lovecraft22 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
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 11:47
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 11:44.