Skip to content

plantf doesn't work with 4-element stress vector (plane strain) #92

@maffe03

Description

@maffe03

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions