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

InterDyMFoam on damBreak 2D

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By simrego

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2019, 10:01
Default InterDyMFoam on damBreak 2D
  #1
Member
 
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
I am trying to use dynamic mesh refinement on the damBreak laminar case.

I copied the dynamicMeshDict file into the constant and included
Code:
    
correctFluxes
    (
        (phi none)
        (nHatf none)
        (rhoPhi none)
        (ghf none)
    (flux(alpha.water) none)
    );
which stopped showing an error during the computation.

I run blockMesh, setFields and interDyMFoam.

After couple of time steps, it crashes with the error. Last part of the log file
Code:
Selected 50 cells for refinement out of 50484.
Refined from 50484 to 50834 cells.
Selected 32 split points out of a possible 6061.
Unrefined from 50834 to 50610 cells.
Execution time for mesh.update() = 0.7 s
DICPCG:  Solving for pcorr, Initial residual = 1, Final residual = 9.294e-06, No Iterations 221
time step continuity errors : sum local = 3.80198e-09, global = -4.05311e-11, cumulative = 0.00084144
smoothSolver:  Solving for alpha.water, Initial residual = 0.00141145, Final residual = 9.27232e-10, No Iterations 3
Phase-1 volume fraction = 0.130176  Min(alpha1) = -1.67578e-06  Max(alpha1) = 1
MULES: Correcting alpha.water
MULES: Correcting alpha.water
Phase-1 volume fraction = 0.130176  Min(alpha1) = -2.70158e-05  Max(alpha1) = 1
DICPCG:  Solving for p_rgh, Initial residual = 0.0615071, Final residual = 0.00273732, No Iterations 2
time step continuity errors : sum local = 0.000159835, global = -9.99339e-07, cumulative = 0.000840441
DICPCG:  Solving for p_rgh, Initial residual = 0.00378723, Final residual = 0.000157494, No Iterations 9
time step continuity errors : sum local = 9.10954e-06, global = -1.33525e-07, cumulative = 0.000840307
DICPCG:  Solving for p_rgh, Initial residual = 0.000898502, Final residual = 9.3117e-08, No Iterations 193
time step continuity errors : sum local = 5.38355e-09, global = 5.51327e-12, cumulative = 0.000840307
ExecutionTime = 699.25 s  ClockTime = 700 s

Interface Courant Number mean: 0.00970562 max: 0.746663
Courant Number mean: 0.0885415 max: 0.993028
deltaT = 0.000191888
Time = 0.321025

Selected 18 cells for refinement out of 50610.
Refined from 50610 to 50736 cells.
Selected 23 split points out of a possible 6049.
Unrefined from 50736 to 50575 cells.
Execution time for mesh.update() = 0.7 s
DICPCG:  Solving for pcorr, Initial residual = 1, Final residual = 8.91003e-06, No Iterations 210
time step continuity errors : sum local = 1.37086e-09, global = 6.65906e-11, cumulative = 0.000840307
smoothSolver:  Solving for alpha.water, Initial residual = 0.00141824, Final residual = 9.28577e-10, No Iterations 3
Phase-1 volume fraction = 0.130175  Min(alpha1) = -9.66966e-07  Max(alpha1) = 1
MULES: Correcting alpha.water
MULES: Correcting alpha.water
Phase-1 volume fraction = 0.130175  Min(alpha1) = -0.000515445  Max(alpha1) = 1
DICPCG:  Solving for p_rgh, Initial residual = 0.059735, Final residual = 0.00258301, No Iterations 2
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  Uninterpreted: 
#3   at tensorField.C:?
#4  
 at ??:?
#5  
 at ??:?
#6  
 at ??:?
#7  
 at ??:?
#8  __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#9  
 at ??:?
Floating point exception (core dumped)

I have attached the screenshot (Left) dynamic mesh refinement - interDyMFoam (right) just interFoam
I couldn't find anything on the error.
Attached Images
File Type: jpg Screenshot from 2019-09-10 14:57:01.jpg (60.5 KB, 37 views)
mcfdma is offline   Reply With Quote

Old   September 11, 2019, 05:13
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Dynamic refinement is using the hexRef8 engine, so you cut every cell into 8. Thus you cannot use in 2D case, since you cut the cells in the 3rd dimension too.
I had similar problems with it in 2D. And I think it must be because of the 2D case, since in 3D cases is working for me without any problems. Try to replace the empty patches with symmetry, or with simple walls but slip for U, and zeroGradient p, etc...
Just a guess. I didn't spent too much time with it to find the solution.
ViktorKL likes this.
simrego is offline   Reply With Quote

Old   September 11, 2019, 09:51
Default
  #3
Member
 
X
Join Date: Jan 2019
Posts: 63
Rep Power: 7
mcfdma is on a distinguished road
Thanks for the reply. It gave me more idea about dynamic mesh refinement. I was able to find another forum which spoke AMR.
2D adaptive Mesh Refinement

The attachment from #20 has 2D as well as axi refinement - however, I am unable to compile it.

Trying to convert into 3D case as well.
mcfdma is offline   Reply With Quote

Old   September 24, 2021, 07:56
Default
  #4
New Member
 
Viktor Klüber
Join Date: Jan 2018
Posts: 10
Rep Power: 8
ViktorKL is on a distinguished road
Quote:
Originally Posted by simrego View Post
Hi!


Dynamic refinement is using the hexRef8 engine, so you cut every cell into 8. Thus you cannot use in 2D case, since you cut the cells in the 3rd dimension too.
I had similar problems with it in 2D. And I think it must be because of the 2D case, since in 3D cases is working for me without any problems. Try to replace the empty patches with symmetry, or with simple walls but slip for U, and zeroGradient p, etc...
Just a guess. I didn't spent too much time with it to find the solution.
According to simrego's answer above, applying symmetry worked for me in order to resolve the error reported above.
ViktorKL 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
interDyMFoam with VOF + 6DOF instable pbalz OpenFOAM Running, Solving & CFD 11 October 9, 2020 05:19
Restart InterDymFoam simulation from latestTime Giovanni_Do OpenFOAM Running, Solving & CFD 2 April 11, 2019 05:22
interDyMFoam + dambreak J.Y.Won OpenFOAM Running, Solving & CFD 0 October 29, 2014 06:15
modifying interDyMFoam for floatingObject Elisabeth_ofoam OpenFOAM Programming & Development 7 June 11, 2014 08:42
error using interDyMFoam with kOmegaSST to simulate sloshing anmartin OpenFOAM Running, Solving & CFD 0 July 20, 2010 13:21


All times are GMT -4. The time now is 17:50.