Skip to content

Commit

Permalink
Change p-Laplacian definition to coincide with mathematical conventio…
Browse files Browse the repository at this point in the history
…n instead of a direct correspondence with power-law fluids.
  • Loading branch information
jedbrown committed Jun 19, 2011
1 parent c85f242 commit 5ae09b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fs/tests/plapeig.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ static inline void EllipPointwiseComputeStore(struct EllipParam *prm,const dReal
{
dReal gamma,espg,p=prm->p;
gamma = 0.5 * (dSqr(Du[0]) + dSqr(Du[1]) + dSqr(Du[2]));
espg = dSqr(prm->epsilon) + gamma;
espg = dSqr(prm->epsilon) + 2*gamma;
st->eta = pow(espg,(p-2)/2);
st->deta = (p-2)/2 * st->eta / espg;
st->deta = (p-2)/2 * st->eta / espg * 2;
for (dInt i=0; i<3; i++) st->Du[i] = Du[i];
}

Expand Down

0 comments on commit 5ae09b7

Please sign in to comment.