JuliaFEM / ModelReduction.jl

ModelReduction is a repository of JuliaFEM to reduce the dimension of a model for multibody dynamics problems. The package includes e.g. the Guyan reduction and the Craig-Bampton method.
https://juliafem.github.io/ModelReduction.jl/latest/
MIT License
10 stars 7 forks source link

Example doesn't work #19

Closed TeroFrondelius closed 6 years ago

TeroFrondelius commented 6 years ago
julia> using ModelReduction

julia> guyan_reduction(K, m, s)
ERROR: UndefVarError: guyan_reduction not defined

julia> ModelReduction.guyan_reduction(K, m, s)
2×2 Array{Float64,2}:
  0.25  -0.25
 -0.25   0.25

julia>

Either fix example or export guyan_reduction method.

The second examples doesn't work either:

julia> Mred, Kred = ModelReduction.craig_bampton(K, M, r, l, n)
ERROR: UndefVarError: craig_bampton not defined

julia> ModelReduction.
eval             global_mass       global_stiffness  guyan_reduction
maikkirapo commented 6 years ago

ModelReduction has been upgraded to v0.0.2 and the examples should now work correctly.