|
[Sponsors] | |||||
Specify refinement region directly during run time? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 15 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 15 ![]() |
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.
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Elastic or Plastic Deformations in OpenFOAM | NickolasPl | OpenFOAM Pre-Processing | 36 | September 23, 2023 09:22 |
| AMI interDyMFoam for mixer nu problem | danny123 | OpenFOAM Programming & Development | 8 | September 6, 2013 03:34 |
| mixerVesselAMI2D's mass is not balancing | sharonyue | OpenFOAM Running, Solving & CFD | 6 | June 10, 2013 10:34 |
| [snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |
| calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 05:35 |