Skip to content

Commit

Permalink
fixed new struct creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cfarm6 committed Aug 17, 2023
1 parent 62efcca commit 62d3b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isotropic_incompressible_models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ W = \\sum\\limits_{i = 1}{3}\\sum\\limits_{j=0}^{N} A_j (\\lambda_i^{m_j}-1) + B
> Bahreman M, Darijani H. New polynomial strain energy function; application to rubbery circular cylinders under finite extension and torsion. Journal of Applied Polymer Science. 2015 Apr 5;132(13).
"""
BahremanDarijani(type::T = PrincipalValueForm()) where {T<:PrincipalValueForm} =
new{PrincipalValueForm}(GeneralDarijaniNaghdabadi(type))
BahremanDarijani{PrincipalValueForm}(GeneralDarijaniNaghdabadi(type))

function ContinuumMechanicsBase.StrainEnergyDensity(
W::BahremanDarijani{T},
Expand Down Expand Up @@ -1657,7 +1657,7 @@ function ChevalierMarco(::T = PrincipalValueForm()) where {T<:Union{PrincipalVal
L_b = size(b⃗, 1)
return sum(@. b⃗ / I₂^(1:L_b))
end
new{T}(∂W∂I1, ∂W∂I2)
ChevalierMarco{T}(∂W∂I1, ∂W∂I2)
end

function ContinuumMechanicsBase.StrainEnergyDensity(
Expand Down

0 comments on commit 62d3b6c

Please sign in to comment.