Skip to content

Commit

Permalink
Formatted src
Browse files Browse the repository at this point in the history
  • Loading branch information
cfarm6 committed Aug 15, 2023
1 parent 9c869d4 commit 0003652
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 204 deletions.
6 changes: 3 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ makedocs(bib;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://cfarm6.github.io/Hyperelastics.jl",
edit_link="main",
assets=String[],
assets=String[]
),
pages=[
"Home" => "index.md",
"API" => "API.md",
"Example" => "example.md",
],
]
)

deploydocs(;
repo="github.com/cfarm6/Hyperelastics.jl",
devbranch="main",
devbranch="main"
)
8 changes: 4 additions & 4 deletions src/data_driven.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ end

function SussmanBathe(
data::HyperelasticUniaxialTest;
interpolant = CubicSpline,
k::Integer = 5,
interpolant=CubicSpline,
k::Integer=5
)
σ̂ = interpolant(
getindex.(data.data.s, 1) .* getindex.(data.data.λ, 1),
Expand All @@ -48,15 +48,15 @@ ContinuumMechanicsBase.SecondPiolaKirchoffStressTensor(
ψ::SussmanBathe,
λ⃗::Vector{T},
p;
kwargs...,
kwargs...
) where {T} = ψ.w′.(λ⃗)


ContinuumMechanicsBase.CauchyStressTensor(
ψ::SussmanBathe,
λ⃗::Vector{T},
p;
kwargs...,
kwargs...
) where {T} = ψ.w′.(λ⃗) .* λ⃗

parameters::SussmanBathe) = ()
Loading

0 comments on commit 0003652

Please sign in to comment.