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

Adaptive Mesh Refinement and Custom Field Variables

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2019, 18:50
Default Adaptive Mesh Refinement and Custom Field Variables
  #1
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
Hello,
I have started using OpenFOAM's AMR feature recently. Although I am a total newbie, so far, I am able to use dynamicRefineFvMesh with pimpleDyMFoam. My understanding is that one can set a field (say, pressure) as the reference for refinement and also set a value interval for that field variable to do refinements on.
The first thing I know about ARM is that the refinement should be done on regions where the gradient of a varible is the highest, instead of the value itself of that variable. That being said, I am looking for a way to set the gradient of a field variable as the refinement parameter. Can I do that with a direct input such as:

field grad(p);

in dynamicMeshDict, or should I create a new field variable which would yield the pressure gradient magnitude first? If so, how can I do that?

Thanks in advance,
Hüseyin

Last edited by hconel; October 25, 2019 at 03:13.
hconel is offline   Reply With Quote

Reply

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
Mesh Refinement Problem jonl3 STAR-CCM+ 2 August 21, 2018 16:45
Adaptive mesh by interDyMFoam arsalan.dryi OpenFOAM Running, Solving & CFD 0 May 4, 2016 05:07


All times are GMT -4. The time now is 01:10.