mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-19 01:48:47 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user