Fluid bugfix [#8395] [#6200]: this should solve the popping/inconsistency/flickering...
authorDaniel Genrich <daniel.genrich@gmx.net>
Fri, 18 Apr 2008 14:12:42 +0000 (14:12 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Fri, 18 Apr 2008 14:12:42 +0000 (14:12 +0000)
intern/elbeem/intern/solver_util.cpp

index a6685babe680b22aafc992d605b4c41b77846169..ef98b7f21d0e86e53a884e887edaef7e8f91e175 100644 (file)
@@ -112,7 +112,8 @@ void LbmFsgrSolver::prepareVisualization( void ) {
                                        const CellFlagType nbflag = RFLAG_NB(lev, i,j,k, workSet,l);
                                        if(nbflag&CFInter){ intercnt++; }
 
-                                       if(l!=mainGravDir) continue; // only check bnd along main grav. dir
+                                       // check all directions otherwise we get bugs with splashes on obstacles
+                                       // if(l!=mainGravDir) continue; // only check bnd along main grav. dir
                                        //if((nbflag&CFBnd)&&(nbflag&CFBndNoslip)){ noslipbnd=1; }
                                        if((nbflag&CFBnd)){ noslipbnd=1; }
                                }
@@ -140,11 +141,10 @@ void LbmFsgrSolver::prepareVisualization( void ) {
                                        if(val<minval) val = minval; 
                                        *mpIso->lbmGetData(i,j,ZKOFF) += minval-( val * mIsoWeight[13] ); 
                                }
-#endif // SURFACE_ENH>0
-
                        } else { // all others, unused?
                                continue;
                        } 
+#endif // SURFACE_ENH>0
 
                        *mpIso->lbmGetData( i-1 , j-1 ,ZKOFF-ZKD1) += ( val * mIsoWeight[0] ); 
                        *mpIso->lbmGetData( i   , j-1 ,ZKOFF-ZKD1) += ( val * mIsoWeight[1] );