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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2019, 12:27
Default Dynamic mesh refinement at specified locations in the domain
  #1
New Member
 
Kaushik
Join Date: Jun 2019
Posts: 5
Rep Power: 2
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, 10 views)
kauraajn is offline   Reply With Quote

Old   August 14, 2019, 13:58
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 294
Rep Power: 8
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, 14:06
Default
  #3
New Member
 
Kaushik
Join Date: Jun 2019
Posts: 5
Rep Power: 2
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

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


All times are GMT -4. The time now is 20:23.