|
[Sponsors] |
BUG?: compressibleInterDyMFoam fails at depthCharge3D with dynamicRefineFvMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 23, 2020, 07:12 |
BUG?: compressibleInterDyMFoam fails at depthCharge3D with dynamicRefineFvMesh
|
#1 | |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 12 |
Hi!
Since long I try to make AMR (adaptive mesh refinement) work with my two-phase, compressible bubble. When I try the depthCharge3D tutorial with the compressibleInterFoam, it works with any OpenFOAM or Foam-Extend-version. However, when I try depthCharge3D with compressibleInterDyMFoam (foam-extend-4.0 as well as foam-extend-4.1), it fails with floating point error either when setting up the UEqn or when solving the pEqn with a reduced UEqn. My dynamicMeshDict looks as follows: Code:
dynamicFvMesh dynamicRefineFvMesh; dynamicRefineFvMeshCoeffs { refineInterval 1; field alpha1; lowerRefineLevel .001; upperRefineLevel .999; unrefineLevel 10; nBufferLayers 1; maxRefinement 1; maxCells 140000; correctFluxes ( (phi U) (nHatf none) //thought might be necessary? (rhoPhi none) //thought might be necessary? (alpha1 none) //thought might be necessary? ); dumpLevel true; } Code:
lowerRefineLevel 1.001; upperRefineLevel 1.999; Actually, the 2D code from Luca Cornolti #750894 2D adaptive Mesh Refinement works perfectly with AMR, so there is some bug still in the 3D native code of (at least!) foam-extend! The interFoam DamBreak tutorial works fine, however. So I suppose, some compressible fluxes are handled incorrectly? I don't have the knowledge to dig through the hex-cutter-code :-( Anyone has the same problem? Best regards, Ma-tr-ix -------------------- Hi, I ran the code in debug mode and it seems that polyMeshInitMesh.C doesn't tell the solver to update the cell indices: Quote:
it seems Last edited by ma-tri-x; January 29, 2020 at 08:07. Reason: new insights |
||
February 11, 2020, 09:04 |
|
#2 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 12 |
Found the solution:
I created my Mesh with stitchMesh. StitchMesh destroys AMR compatibility ---- with depthCharge3D it works |
|
February 11, 2020, 16:13 |
|
#3 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Hi Neo,
The thing I dont understand is how stitchmesh can affect the solution? if the final mesh is valid, how come the meshing procedure would have an impact on the solution? curious.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 17, 2020, 08:09 |
|
#4 | |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 12 |
Quote:
Yep, I'd like to know, too. We've found many mysterious things like this also with snappyHexMesh destroying somehow symmetries of the solution of a two-phase calculation... Fortunately, Luca Cornolti's dynamicRefineFvMesh2D library is robust so far against using stitchMesh or snappyHexMesh. Still, to my mind, he wrote the best AMR library. |
||
February 17, 2020, 15:42 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Ah, I really wish the world would be full of mysteries. Sooner or later, really boring reasons appear behind each mysterious event in this f.ckng world.
I will pursue ur interesting observation in my free time though. Curious. Thank you.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mapFields major bug | alchem | OpenFOAM Bugs | 14 | September 15, 2023 12:48 |
cyclicGgi + Finite Area Method fails to run in parallel (foam-extend 4.1). Bug?) | Santiago | OpenFOAM Bugs | 0 | June 12, 2018 09:32 |
Bug in Workbench CFX | Pierre1 | CFX | 6 | August 2, 2017 00:18 |
a bug when correctting the flux in dynamicRefineFvMesh? | cctv | OpenFOAM Programming & Development | 1 | January 12, 2016 04:16 |
InterDyMFoam dynamic meshing in parallel fails under nonquiescent conditions | adona058 | OpenFOAM Bugs | 7 | November 18, 2008 14:58 |