rewrite elements

This commit is contained in:
Jukka Aho
2016-05-22 00:22:17 +03:00
parent 72df2226b7
commit 283621f4b1
10 changed files with 187 additions and 179 deletions
+5
View File
@@ -220,6 +220,11 @@ function Base.(:*){T<:Real}(c::T, field::DVTI)
return DVTI(c*field.data)
end
""" Interpolate with basis functions. """
function Base.(:*)(N::Matrix, f::DCTI)
return f.data*N'
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ᵢ