Closed tarun-mitruka closed 10 months ago
There is actually no need to resize the resultVector
, or even create it in the first place. We can just do
result.insertOrAssignResult(ResultType::linearStress, linearStress);
directly
There is actually no need to resize the
resultVector
, or even create it in the first place. We can just doresult.insertOrAssignResult(ResultType::linearStress, linearStress);
directly
I wonder why this works now. I believe in an earlier Eigen version ths assignment didn't work. But if it works fine now, I'm fine with it.
The above code snippet in
linearelastic.hh
only works for 2D case. For 3D case, the resize should be of size 3x3 and for 1D it should be a scalar.Voigt notation in 3D will not work as
ResultArray
is restricted with a maximum number of rows being 3 where as Voigt notation in 3D will yield a maximum number of rows as 6.Similar fix has to be done for
nonLinearElastic.hh
.