feat(materials): Declare NeoHookean as StatelessStrainDependent

- Add material_behavior(::NeoHookean) = StatelessStrainDependent()
- Enables generic integration to compute tangent at each IP
- Requires displacement field for strain-dependent tangent
- Single line trait declaration, zero code duplication
This commit is contained in:
Jukka Aho
2025-11-19 10:03:45 +02:00
parent c84ad4e228
commit 589c80dce5
+3
View File
@@ -103,6 +103,9 @@ function NeoHookean(; μ::Real=NaN, λ::Real=NaN, E_mod::Real=NaN, nu::Real=NaN)
end
end
# Trait declaration: NeoHookean has strain-dependent tangent modulus
material_behavior(::NeoHookean) = StatelessStrainDependent()
"""
strain_energy(material::NeoHookean, C::SymmetricTensor{2,3}) -> Float64