Skip to content

Commit

Permalink
add comment on possible bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rboman committed Mar 25, 2024
1 parent 223b918 commit e625fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/sph0/louis/src_cpp/MobileParticle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ MobileParticle::update_vars()
drho_dt += this->m * u_ab.dot(this->vec_gradW[i]);
double rho2 = neigh->rho[RKstep] * neigh->rho[RKstep];
du_dt += this->m * (neigh->p[RKstep] / rho2 + this->p[RKstep] / rho2 + pi_ab) * this->vec_gradW_mod[i];
// TODO: BUG: le 2e terme semble etre faux. Il doit impliquer la densité de la particule et pas celle du voisin
}
break;
}
Expand All @@ -52,6 +53,7 @@ MobileParticle::update_vars()
drho_dt += this->m * u_ab.dot(this->vec_gradW[i]);
double rho2 = neigh->rho[RKstep] * neigh->rho[RKstep];
du_dt += this->m * (neigh->p[RKstep] / rho2 + this->p[RKstep] / rho2 + pi_ab) * this->vec_gradW[i];
// TODO: BUG: le 2e terme semble etre faux. Il doit impliquer la densité de la particule et pas celle du voisin
}
break;
}
Expand Down

0 comments on commit e625fd3

Please sign in to comment.