febiosoftware / FEBio

FEBio Suite Solver
https://febio.org/
MIT License
185 stars 68 forks source link

Assigning element data to prestrain gradient doesn't work #14

Closed SteveMaas1978 closed 3 years ago

SteveMaas1978 commented 4 years ago

Users cannot map element data to the F0 parameter of the prestrain gradient.

This is due to the changes in FEBio3 related to defining heterogenous parameters. The prestrain material has not been updated to make use of this new framework.

spietz commented 3 years ago

Has this been resolved in the newly released version 3.2?

SteveMaas1978 commented 3 years ago

Yes, this should work in FEBio 3.2. I'm attaching an example file. Please give it a try and let me know if it works as expected for you.

Steve prestrain_map.zip

spietz commented 3 years ago

Yes, made it work by specifying the gradient tensor as

<F0 type="map">F0_map</F0>

and creating an ElementData with this name as in your example file, thanks.