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

[snappyHexMesh] Location of mesh within background mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 3 Post By jerik
  • 3 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2021, 23:59
Default Location of mesh within background mesh
  #1
New Member
 
Bailey
Join Date: Jun 2021
Posts: 14
Rep Power: 4
bjavila1409 is on a distinguished road
I am trying to model flow around a cylinder using snappyHexMesh and am a little stuck. I made a background mesh as a cube with point 0 at (0,0,0), and max x,y,z points of (30,10,5) respectively. I have an .stl file of a cylinder which I am meshing using snappyHexMesh. Every time i place the cylinder, it is at the point 0,0,0. What i want is for the cylinder to be at around 10 in the x direction and 5 in the y direction. Do i have to change my blockMeshDict for the background mesh to move the position of where the cylinder is located? I know locationInMesh and refinementBox are not the indices to change, so that is my next thought. Though I feel there should be an easier way to say "Move my mesh to this place in my background mesh". Thanks for the help!
bjavila1409 is offline   Reply With Quote

Old   June 24, 2021, 03:35
Default
  #2
New Member
 
Jan Zeriadtke
Join Date: May 2020
Posts: 7
Rep Power: 6
jerik is on a distinguished road
You have to move your geometry-Location in your STL-File. Either move the Geometry with your CAD-Program of choice or give surfaceTransformPoints a try. Something like
Code:
surfaceTransformPoints -translate '(10 5 0)' geometry.stl geometry_translated.stl
should do it.
Yann, AtoHM and bjavila1409 like this.
jerik is offline   Reply With Quote

Old   June 24, 2021, 03:37
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,085
Rep Power: 26
Yann will become famous soon enough
Hi Bailey,

You can either:
  • Move your STL file to place it where you want in your background mesh using the surfaceTransformPoints utility
  • Move your background mesh to place it where you want around your cylinder by changing the vertices coordinates in your blockMeshDict file.
The choice is up to you!

Cheers,
Yann

EDIT: Jan has been faster than Yann on this one!
AtoHM, jerik and bjavila1409 like this.
Yann 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
[snappyHexMesh] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 14:41
[snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell Arman_N OpenFOAM Meshing & Mesh Conversion 1 May 20, 2019 17:16
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
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 17:17.