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

Problem with Dynamic Mesh Refinement (Bug)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mostanad

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2020, 02:50
Default Problem with Dynamic Mesh Refinement (Bug)
  #1
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
mostanad is on a distinguished road
Hello my friends,
I have found an issue in my refined grid, specifically when I restart my case from a non-zero time. The solver in InterDyMFOAM. Here you can see the details in my dynamicMeshDict
Code:
dynamicFvMesh    dynamicRefineFvMesh;//staticFvMesh;

dynamicRefineFvMeshCoeffs
{
    refineInterval  1;//refine every refineInterval timesteps
    field           interFace;
    lowerRefineLevel 0.0001;
    upperRefineLevel 0.99;
    unrefineLevel   10;
    nBufferLayers   1;
    maxRefinement   2;//maximum refinement level (starts from 0)
    maxCells        20000000;
    correctFluxes
    (
        (phi    U)
        (phi_0  U)
    );
    dumpLevel       true;
}
As you see, the refinement is done based on interface field, which is the interface between my object and fluid. I have 4 processors in my case, and I know that the cellLevel history is saved for each writing interval. BTW, As I restart my case, the mesh does not coarsen when my moving object pass from processors. Indeed, the processor interface location maintains its level 1 value even if the moving object passes from that region. It seems that something is wrong with decomposition of reconstruction of the latest Time.



Code:
reconstructParMesh -mergeTol 1e-06
reconstructPar -noLagrangian
Please,Please, just take a look at the images in the attachment to see what I am exactly talking about? The images depict the motion of my object and the cellLevel field.

Thank you for you help, in advance, Foamers!
Attached Images
File Type: jpg start.jpg (116.5 KB, 52 views)
File Type: jpg midTime.jpg (118.9 KB, 43 views)
File Type: jpg latestTime.jpg (128.6 KB, 43 views)

Last edited by mostanad; November 23, 2020 at 07:00.
mostanad is offline   Reply With Quote

Old   November 23, 2020, 06:55
Default
  #2
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
mostanad is on a distinguished road
No idea from anyone?
mostanad is offline   Reply With Quote

Old   November 23, 2020, 07:18
Default
  #3
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
Take a look at the actual values you have at "interFace" field. You must zoom in the scale of values in order to detect remaining traces approximately in the order of lowerRefineLevel (0.0001) behind your bubble/droplet.
guin is offline   Reply With Quote

Old   November 23, 2020, 07:31
Default
  #4
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
mostanad is on a distinguished road
Quote:
Originally Posted by guin View Post
Take a look at the actual values you have at "interFace" field. You must zoom in the scale of values in order to detect remaining traces approximately in the order of lowerRefineLevel (0.0001) behind your bubble/droplet.
Thanks Rodrigo for your reply.
I look at the interface field but the extra refined cells have exactly 1 value. So it is not in the range of 0.001 to 0.99. It has confused me! You can see the filed in the attachment.




mostanad is offline   Reply With Quote

Old   November 23, 2020, 08:28
Default
  #5
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
mostanad is on a distinguished road
Why I have this extra refinement?!
If any one can help me, please ask me the details.
mostanad is offline   Reply With Quote

Old   November 24, 2020, 04:04
Default
  #6
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11
mostanad is on a distinguished road
Fixed.
Don't use decomposePar in your restart run again. This will remove the processor directories of the latest Time, so by doing the new decomposePar, all the things for the new decomposed latest time is messed up.
francescomarra likes this.
mostanad 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
[snappyHexMesh] Not Able to Refine Mesh in Refinement Box noodleluvmay OpenFOAM Meshing & Mesh Conversion 2 January 27, 2020 10:55
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
Sliding / Dynamic Mesh in heat transfer problem platzhalter FLUENT 0 May 7, 2018 05:25
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
How to know mesh size after dynamic refinement tayo OpenFOAM 16 May 22, 2013 13:39


All times are GMT -4. The time now is 00:37.