|
[Sponsors] |
Specify refinement region directly during run time? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 27, 2015, 17:06 |
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 |
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 |
|
July 28, 2015, 10:51 |
|
#2 |
New Member
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 13 |
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.
|
|
|
|
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 |