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

[blockMesh] refine mesh with stl region

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2020, 00:27
Default refine mesh with stl region
  #1
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 15
frantov is on a distinguished road
Hi Foamers

Apologies if this was asked before.

Is it possible to refine a region of a mesh created by BlockMesh using an STL file?
The region is defined by an STL and is not part of the geometry (is not a boundary), but is defined initial alpha.water distribution.

What I do is the following:
1. Generate a mesh with blockMesh
2. Set fields (setFieldsDict) with the STL
3. Refine mesh with dynamicMesh dict, but some information is lost as blockMesh is coarse.

I have tried snappyHexMesh, but so far in my attempts, it treats the STL as boundary, and snappy is an overkill as this is a simple geometry.

any clues will be appreciated!
thanks
Fran
frantov is offline   Reply With Quote

Old   July 17, 2020, 01:06
Default
  #2
Member
 
Francisco T
Join Date: Nov 2011
Location: Melbourne, Australia
Posts: 64
Blog Entries: 1
Rep Power: 15
frantov is on a distinguished road
I found a get around from another post (thanks to OlivierG):

Generating Mesh for a drop in another fluid



1) from you initial mesh, use setFields
2) run 1 iterate with interDyMFoam => this with refine mesh at interface
3) call setField again (re initialise)
4) run ...
frantov is offline   Reply With Quote

Reply

Tags
blockmesh, stl


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
Error when solving p_rgh bob94 OpenFOAM 0 March 17, 2020 09:12
[snappyHexMesh] Not Able to Refine Mesh in Refinement Box noodleluvmay OpenFOAM Meshing & Mesh Conversion 2 January 27, 2020 11:55
[Other] conformed FSI mesh for unstructured fluid region ashish.svm OpenFOAM Meshing & Mesh Conversion 10 August 2, 2019 09:40
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03


All times are GMT -4. The time now is 00:09.