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

[snappyHexMesh] Mesh both in- and outside geometry

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2019, 08:45
Default Mesh both in- and outside geometry
  #1
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi all,

I'm trying to create a mesh for a ship, with a symmetry plane along the ship's longitudinal axis (using snappyHexMesh, OpenFOAM-7, Scientific Linux 7.3). As the DTCHull tutorial does exactly this, I'm using this as a basis.

For a model scale hull I was able to create a mesh alright, but at full scale somehow both the interior and exterior of my ship are meshed, instead of just the exterior, as I intended. Only some thin parts on the outside of the ship geometry stay un-meshed

I've checked the STL-file that I use in MeshLab, and it seems perfectly watertight. Also, I've played around with the locationInsideMesh, but no matter where I put that, everything ends up being meshed.

Can anyone tell me how to fix this? Am I doing something wrong?

Many thanks!
Sita
sita is offline   Reply With Quote

Old   December 17, 2019, 16:55
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Difficult to assess since you have already carried out the basic fixes.

Any further info that you can provide? e.g. dictionaries, settings etc.
HPE is offline   Reply With Quote

Old   December 19, 2019, 02:35
Default
  #3
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Hi HPE,

Thanks for getting back. I'm attaching some paraView screenshots of my blockMesh and STL-geometry, plus my dict-files for snappyHexMesh. Hopefully you can spot my mistake.

Many thanks,
Sita


P.S. In the attached version of snappyHexMeshDict, I set locationInsideMesh to a point inside the ship, to test whether in that case only the interior of the ship would be meshed (answer turned out to be no...)


P.P.S. At least my problem seems to be consistent: I just tried meshing the entire ship, instead of just one half, and also in this case I end up with practically everything being meshed
Attached Images
File Type: jpg sideview.jpg (22.1 KB, 17 views)
File Type: jpg topview.jpg (22.5 KB, 16 views)
Attached Files
File Type: zip snappyHexMeshDictFiles.zip (4.9 KB, 10 views)

Last edited by sita; December 19, 2019 at 08:40. Reason: Additional info
sita is offline   Reply With Quote

Old   January 6, 2020, 02:32
Default
  #4
Senior Member
 
Sita Drost
Join Date: Mar 2009
Location: Arnhem, The Netherlands
Posts: 227
Rep Power: 18
sita is on a distinguished road
Update: for now I've worked around this issue by meshing the model scale ship and then scaling the resulting mesh to full scale, using the transformPoints utility.

Still, I'd rather mesh the full scale geometry directly of course, so if anyone has any tips, I'd love to hear them!

Many thanks,
Sita
sita 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



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