I cannot manage to get the plantf function in calfem.core to work when using a 4-element stress vector ([sigx, sigy, sigz, tauxy]) as an input for plane strain.
Package versions
python: 3.11.15
calfem-python: 3.6.10
numpy: 1.24.4
Steps to reproduce
Run the following code:
import calfem.core as cfc
import numpy as np
D = cfc.hooke(2, 200e9, 0.3)
e = np.array([[1], [1], [1], [0]])
cfc.plantf([0.0, 0.1, 0.0], [0.0, 0.0, 0.1], [2, 0.1], D @ e)
It doesn't matter how you reshape the vector D @ e. Unless it has already been truncated to [sigx, sigy, tauxy] it will not work.
I cannot manage to get the
plantffunction incalfem.coreto work when using a 4-element stress vector ([sigx, sigy, sigz, tauxy]) as an input for plane strain.Package versions
Steps to reproduce
Run the following code:
It doesn't matter how you reshape the vector
D @ e. Unless it has already been truncated to [sigx, sigy, tauxy] it will not work.