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

[snappyHexMesh] What should I do if don't want to remove the cells inside/outside .stl boundary?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2022, 04:58
Default What should I do if don't want to remove the cells inside/outside .stl boundary?
  #1
New Member
 
Tong Xin
Join Date: Mar 2021
Location: Shanghai P.R.China
Posts: 2
Rep Power: 0
TongX is on a distinguished road
I want to use SnappyHexMesh to generate mesh for IBM algorithm. So my idea is to turn off "snap" and "addLayers", and only turn on "castellatedMesh". That is, the final result I want is Fig. 5.11 in https://cfd.direct/openfoam/user-gui...snappyhexmesh/. But I don't know how to turn off the function of removing cells....
TongX is offline   Reply With Quote

Old   March 14, 2022, 05:44
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 481
Rep Power: 9
AtoHM is on a distinguished road
OpenFOAM has that covered. Right at the top, you can specify the steps to run. This should get you the wanted result:


Code:
// Which of the steps to run
castellatedMesh true;
snap            false;
addLayers       false;
https://develop.openfoam.com/Develop...ppyHexMeshDict
AtoHM is offline   Reply With Quote

Old   March 14, 2022, 06:52
Default
  #3
New Member
 
Tong Xin
Join Date: Mar 2021
Location: Shanghai P.R.China
Posts: 2
Rep Power: 0
TongX is on a distinguished road
thanks very much for your reply! I have tried this, the function of "snap" and "addLayers" will be turned off, but the cells in the immersed boundary will be deleted, that's what bothers me. if I delete the "locationInMesh", there will be Error message. But if I set a point outside the boundary in "locationInMesh", there will also be an error says "Point is not inside the mesh or on a face or edge.".
TongX is offline   Reply With Quote

Old   March 14, 2022, 08:46
Default
  #4
Senior Member
 
M
Join Date: Dec 2017
Posts: 481
Rep Power: 9
AtoHM is on a distinguished road
Ah, you probably need locationsInMesh then: Usage of locationsInMesh (needs the ESI release)
It supports multiple zones and should keep all the cells.
AtoHM is offline   Reply With Quote

Reply

Tags
cell removal, snappyhexmesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
chtMultiRegionFoam speed up qwertz OpenFOAM Running, Solving & CFD 8 September 18, 2021 07:16
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 09:44
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


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