elasticity solver design restarted.

This commit is contained in:
Jukka Aho
2015-10-21 07:24:19 +03:00
parent a93176cf48
commit d1913ac8ea
5 changed files with 241 additions and 91 deletions
+24
View File
@@ -96,6 +96,30 @@ diff(h::Basis) = h.dbasisdxi
derivative(h::Basis) = h.dbasisdxi
"""
Integration point
xi :: Array{Float64, 1}
(dimensionless) coordinates of integration point
weight :: Float64
Integration weight
attributes :: Dict{Any, Any}
This is used to save internal variables of IP needed e.g. for incremental
material models.
"""
type IntegrationPoint
xi :: Array{Float64, 1}
weight :: Float64
fields :: Dict{Symbol, FieldSet}
end
function IntegrationPoint(xi, weight)
IntegrationPoint(xi, weight, Dict())
end
# convenient functions -- maybe this is not correct place for them
""" Evaluate basis function in point ξ. """
call(b::Basis, xi) = b.basis(xi)