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

Dynamic mesh refinement at specified locations in the domain

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2019, 13:27
Default Dynamic mesh refinement at specified locations in the domain
  #1
New Member
 
Kaushik
Join Date: Jun 2019
Posts: 14
Rep Power: 7
kauraajn is on a distinguished road
Hello all,


I am relatively new to OpenFOAM, and am familiar with the basics of creating and running basic applications. I have a case where I would like to arbitrarily refine the mesh dynamically at specific locations of interest in my domain. Attached is an example of what I would like to achieve.


TIA for your help and suggestions
Attached Images
File Type: jpg refinement.jpg (71.4 KB, 17 views)
kauraajn is offline   Reply With Quote

Old   August 14, 2019, 14:58
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
How do you define interest? If it's some (continuous) quantitative measure of the flow field, derive some volScalarField that represents that. Otherwise, make a dummy volScalarField, use setFields to set some regions of the field to 1, and multiply this dummy field by another field. Then the other field will be zero except for the regions of interest. Then set the refinement bounds accordingly.

Caelan
kauraajn likes this.
clapointe is offline   Reply With Quote

Old   August 14, 2019, 15:06
Default
  #3
New Member
 
Kaushik
Join Date: Jun 2019
Posts: 14
Rep Power: 7
kauraajn is on a distinguished road
Thanks for the reply Caelan. The region of interest is not based on any quantitative measure of a field. These regions are just arbitrary regions where I desire a mesh of higher resolution. Your suggestion to use a dummy field sounds great, and I believe will achieve exactly what I am looking for. Thanks you so much again!
kauraajn is offline   Reply With Quote

Reply

Tags
mesh refinement


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
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 10:42
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 05:17
[snappyHexMesh] Bad/jagged mesh around intersection of two .stl bodies MBttR OpenFOAM Meshing & Mesh Conversion 7 October 14, 2016 04:57
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 04:23


All times are GMT -4. The time now is 12:50.