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

Specify refinement region directly during run time?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2015, 17:06
Default Specify refinement region directly during run time?
  #1
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 13
Taozi is on a distinguished road
Dear All,

I am wondering if it's possible to programically control the region of mesh refinement. Suppose you have a moving object and you can obtain it's location (x, y, z) at anytime, then can you directly specify in code a region around this object (like (x-1, y-1, z-1) to (x+1, y+1, z+1)) to be refined to a certain level n?
I think by default the mesh refinement region is based on certain criteria specified by the user (mostly gradient of something), but in some cases all details in a certain region are needed, like the one I mentioned. In addition, I guess directly specifying the region is faster as it saves OpenFOAM from finding the region numerically.
Any discussion or suggestion is welcomed!

Regards,
Taozi
Taozi is offline   Reply With Quote

Old   July 28, 2015, 10:51
Default
  #2
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 13
Taozi is on a distinguished road
I will answer my own question, I just realized that I can create a separate volScalarField and let dynamic mesh use this field to refine the mesh, and this field can be updated arbitrarily -- such as using a changing location.
Taozi 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
Elastic or Plastic Deformations in OpenFOAM NickolasPl OpenFOAM Pre-Processing 36 September 23, 2023 08:22
AMI interDyMFoam for mixer nu problem danny123 OpenFOAM Programming & Development 8 September 6, 2013 02:34
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35


All times are GMT -4. The time now is 14:15.