Unverified Commit 42b282fe authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1637 from dsbolin/granular_bug_fixes

Bug fix for fix/wall/gran
parents c686df1a 578bcf0f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1147,11 +1147,11 @@ void FixWallGran::granular(double rsq, double dx, double dy, double dz,
  else{
    knfac = E; //Hooke
    a = sqrt(dR);
    Fne = knfac*delta;
    if (normal_model != HOOKE) {
      Fne *= a;
      knfac *= a;
    }
    Fne = knfac*delta;
    if (normal_model == DMT)
      Fne -= 4*MY_PI*normal_coeffs[3]*Reff;
  }
@@ -1292,10 +1292,12 @@ void FixWallGran::granular(double rsq, double dx, double dy, double dz,
  // rolling resistance
  //****************************************

  if (roll_model != ROLL_NONE) {
  if (roll_model != ROLL_NONE || twist_model != NONE) {
    relrot1 = omega[0];
    relrot2 = omega[1];
    relrot3 = omega[2];
  }
  if (roll_model != ROLL_NONE){

    // rolling velocity, see eq. 31 of Wang et al, Particuology v 23, p 49 (2015)
    // This is different from the Marshall papers,