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

[snappyHexMesh] Retaining mesh inside and outside of the region occupied by .stl file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2017, 16:43
Default Retaining mesh inside and outside of the region occupied by .stl file
  #1
Member
 
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10
pvpnrao is on a distinguished road
I have the .stl file of a closed geometry (a simple cylinder) which I superimposed on a Cartesian hex mesh (a bigger cube) and ran snappyHexMesh. Everything works fine.

However, snappyhexmesh deletes the mesh from the region lying inside .stl file geometry.

Is there some option in snappyhexmeshdict that I can switch-off to avoid it from deleting that mesh?

I need to retain mesh on both inside and outside of the .stl surface
pvpnrao is offline   Reply With Quote

Old   April 17, 2017, 02:27
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

You would need to specify and set cellZoneInside to inside, among others.

See page 31 for more details: https://openfoamwiki.net/images/f/f0...SlidesOFW7.pdf

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   April 25, 2017, 06:22
Default
  #3
Senior Member
 
KaLium's Avatar
 
Kal-El
Join Date: Apr 2017
Location: Finland
Posts: 150
Rep Power: 9
KaLium is on a distinguished road
Do you want different cellzone to cylinder? Are you planning to solve it as solid?

For quite similar problem, my code was something like this:

Surface1
{
level (2 2);
faceType baffle;
cellZone fluid1;
cellZoneInside solid1;
}

locationsInMesh
((-5.0, 0.0, 0.0) fluid1)
((-1.0, 0.0, 0.0) solid1)
KaLium is offline   Reply With Quote

Old   April 28, 2017, 19:13
Default
  #4
Member
 
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10
pvpnrao is on a distinguished road
Antimony ... KaLium

Thank you very much for your responses.

KaLium: Yes, I want to model the internal mesh as solid. I will try your suggestion.
If is it not too much to ask. I am also struggling to reference the solid cellzone in the solver. How do you realize a solid within the fluid region in the solver, I believe this is done my adding a forcing term in on the right hand side using fvOptions which will only work for on solid cellzone...but I have not been successful in getting it to work ...
can you please give me some insights on how to get it working
Do you have any sample code ?

how is the solid-liquid interface treated in openfoam

Thanks in advance
pvpnrao 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 21:10.