mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-18 17:47:29 +00:00
first attemps to make properly linearized version of mortar projection for finite sliding. not working at the moment, it has convergence issues.
This commit is contained in:
@@ -216,6 +216,15 @@ function Base.(:*){T<:Real}(c::T, field::DVTI)
|
||||
return DVTI(c*field.data)
|
||||
end
|
||||
|
||||
""" Multiply DVTI field with another vector T. Vector length
|
||||
must match to the field length and this can be used mainly
|
||||
for interpolation purposes, i.e., u = ∑ Nᵢuᵢ
|
||||
"""
|
||||
function Base.(:*)(T::Vector, f::DVTI)
|
||||
@assert length(T) == length(f)
|
||||
return sum([T[i]*f[i] for i=1:length(f)])
|
||||
end
|
||||
|
||||
function Base.vec(field::DVTI)
|
||||
return [field.data...;]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user