You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors arise if I run (as written in some of the example scripts)
using Pkg
using JuliaFEM
import JuliaFEM
import JuliaFEM: assemble!, get_unknown_field_name, Problem::FieldProblem
type Truss <:FieldProblemendfunctionget_unknown_field_name(problem::Problem{Truss})
return"displacement"end
A working alternative seems to be:"""Problem u(X) = u₀ in Γ(d)"""mutable struct Dirichlet <:BoundaryProblem
formulation ::Symbol
variational ::Bool
dual_basis ::Bool
order ::IntendfunctionDirichlet()
Dirichlet(:incremental, false, false, 1)
end""" Return dual basis transformation matrix Ae. """functionget_dualbasis(element::Element, time::Float64, order=1)
nnodes =length(element)
De =zeros(nnodes, nnodes)
Me =zeros(nnodes, nnodes)
for ip inget_integration_points(element, order)
detJ =element(ip, time, Val{:detJ})
w = ip.weight*detJ
N =element(ip, time)
De += w*Matrix(Diagonal(vec(N)))
Me += w*N'*N
endreturn De, Me, De*inv(Me)
endfunctionget_formulation_type(problem::Problem{Dirichlet})
return problem.properties.formulation
end
(as listed in the Dirichlet problem .jl file)
Please let me know if I missed something.
Thanks,
Charles
The text was updated successfully, but these errors were encountered:
Hi. It looks that this is using syntax before Julia 0.7. Could you point where you have found this script so I could modify it? For example, type keyword is not more used in Julia 1.0.
Errors arise if I run (as written in some of the example scripts)
(as listed in the Dirichlet problem .jl file)
Please let me know if I missed something.
Thanks,
Charles
The text was updated successfully, but these errors were encountered: