Skip to content

Conversation

@miguelmaso
Copy link
Collaborator

@miguelmaso miguelmaso commented Sep 8, 2025

Description
The proposed tests are equivalent to the current. However, the tests are more systematic.

Changelog

  • The energy definition of LinearElasticity has been updated to be compatible with ForwardDiff
  • The functions _δδ_μ_2D... have been removed from TensorAlgebra (physics ≠ algebra)
  • A benchmark is added for the new δᵢⱼδₖₗ2D... Given they are compile time, they take the same time than the previous _δδ_μ_2D
  • I've detected that HessianRegularization is failing

@miguelmaso miguelmaso requested a review from jmartfrut September 8, 2025 13:16
@miguelmaso miguelmaso self-assigned this Sep 8, 2025
0.7841068624959612, 1.5386288924587603]
model = ARAP2D_regularized=μParams[1])
modelreg = HessianRegularization(Mechano=model)
test_derivatives_2D_(modelreg, rtol=1e-14) # TODO: Test failing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go back to
@test Ψ(F(∇u)) == 6440.959849358168
@test norm(∂Ψu(F(∇u))) == 52.8548808805944
@test isapprox(norm(∂Ψuu(F(∇u))), 18128.524371074407, rtol=1e-14)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@miguelmaso miguelmaso merged commit 5613440 into main Sep 8, 2025
miguelmaso added a commit that referenced this pull request Sep 8, 2025
@miguelmaso miguelmaso deleted the mmaso/testing branch September 10, 2025 21:19
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

Successfully merging this pull request may close these issues.

3 participants