In equation A5 of Perry and Marusic 1995 Part 1., the derivative dWc[1, Pi] / dPi always evaluates to 0.
This is because taking the derivative of equation 9 (for Wc) with respect to Pi gives a derivative in (1-eta), thus setting eta=1 forces the derivative to 0.
Equation A5 must therefore always simplify to N = Wc[1,Pi]. It is possible this slipped the net into the paper if that term is there as an appendage from a mathematica derivation, for example, but could represent an error which we're not accounting for.
So in stress.h, the derivative appears to be computed unnecessarily. Here is how to compute the derivative, using central differencing...
In equation A5 of Perry and Marusic 1995 Part 1., the derivative
dWc[1, Pi] / dPi
always evaluates to 0.This is because taking the derivative of equation 9 (for
Wc
) with respect toPi
gives a derivative in(1-eta)
, thus settingeta=1
forces the derivative to 0.Equation A5 must therefore always simplify to N = Wc[1,Pi]. It is possible this slipped the net into the paper if that term is there as an appendage from a mathematica derivation, for example, but could represent an error which we're not accounting for.
So in
stress.h
, the derivative appears to be computed unnecessarily. Here is how to compute the derivative, using central differencing...or Eigen's autodiff (recommended)
In the meantime, we write this out - there's no point computing a derivative that's always 0. In stress.h:
Contact Ivan or someone who knows better for help!