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

External mesh shaped as an internal .stl file

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By enrin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2023, 12:18
Default External mesh shaped as an internal .stl file
  #1
New Member
 
Join Date: Jul 2023
Posts: 15
Rep Power: 2
enrin is on a distinguished road
Hello everyone!

I'm here to ask a question concerning the meshing process.
My problem is that I have an .stl file that should be placed into a moving (overset) mesh and I would like to shape the moving external mesh as the .stl file itself. Then, since my case makes use of the overset mesh, I need to create an hole region in correspondence of the inner .stl.

So my idea was the following one:

1) Scale the internal .stl to get a bigger object of the very same shape;
2) Create an external blockMesh bigger than the .stl of the point 1);
3) Apply the snappyHexMesh tool (indicating as locationInMesh a point that belongs to the bigger .stl) to obtain an .stl shaped mesh
4) Create a dummy boundary patch of type "wall" on the snappyHexMesh
5) Assign this dummy patch to the original (NOT SCALED) .stl file in order to have a wall region inside the mesh

Actually, I don't know how to succeed in the point 4) because I do not know how to add this dummy boundary patch to the snappyHexMesh. I reckon that the createPatch utility is not working properly, since I do not have to create a specific path related to any features of the object. Maybe I'm wrong and there is the possibility to use the createPatch and succeed, even for a dummy boundary. I do not know

Please let me know if it is possible to do what I have planned or if there is another (smarter) way to do it.

I am fully available for further clarifications!

Many thanks,
Enrin
enrin is offline   Reply With Quote

Old   October 13, 2023, 03:47
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,085
Rep Power: 26
Yann will become famous soon enough
Hello Erin,

I am not sure to understand what you are trying to do, but the general workflow would be to create 2 cases: one for your background mesh and one for your moving mesh. Once both are meshed you can use mergeMeshes to merge them together and go on with the overset setup.

Regarding your moving mesh, you can use both your inner and outer STL at once in snappyHexMeshDict. As long as you define a point between these STL as your locationInMesh, snappy will only keep the mesh located between these 2 STL.

Hope this helps,
Yann
enrin likes this.
Yann is offline   Reply With Quote

Old   October 14, 2023, 11:07
Default
  #3
New Member
 
Join Date: Jul 2023
Posts: 15
Rep Power: 2
enrin is on a distinguished road
Thank you Yann.
I'm really sorry for the dumb question and stealing your time. I was already doing what you suggested in the second half of your answer but I had created a wrong .stl file so, the whole process didn't work.
Anyway, after reading your thread, I fixed it.
Yann likes this.
enrin 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 10:06.