Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic differentiation interface #8

Open
KnutAM opened this issue Nov 5, 2023 · 0 comments
Open

Automatic differentiation interface #8

KnutAM opened this issue Nov 5, 2023 · 0 comments

Comments

@KnutAM
Copy link
Owner

KnutAM commented Nov 5, 2023

It would be quite useful for use in FE simulations to have an interface like
σ, state = stress_response(m, strain, args...) that supports eltype(strain) isa Dual to then use an implemented material_response to calculate dσ/deps, and inserts the correct values in a dual σ output.

The key question is how to deal with the state output.
Clearly, for full support, the user would need to provide how this should be differentiated, perhaps in an extended interface like σ, dσ, state, dstate = full_material_response(args...).

An intermediate option is to not provide the derivative of the state, but this will likely cause silent wrong output if the states are used in other calculations.

Another issue is that in coupled simulations (when this would make sense to use) there might be other inputs to the material response functions (e.g. damage) which would be dual numbers, and the output should give the derivatives wrt. this input as well. For these cases, it seems like a usable and general interface isn't realistic and would be too specialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant