Files
JuliaFEM.jl/src/types.jl
T

46 lines
1.0 KiB
Julia
Raw Normal View History

2015-08-16 13:33:02 +03:00
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
2015-08-19 18:50:43 +03:00
"""
Integration point
xi :: Array{Float64, 1}
(dimensionless) coordinates of integration point
weight :: Float64
Integration weight
attributes :: Dict{ASCIIString, 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
attributes :: Dict{ASCIIString, Any}
end
2015-08-16 13:33:02 +03:00
type Element
id :: Int
2015-08-16 22:22:24 +03:00
# element_type :: Int
2015-08-16 13:33:02 +03:00
node_ids :: Array{Int, 1}
basis :: Function
dbasis :: Function
2015-08-19 18:50:43 +03:00
integration_points :: Array{IntegrationPoint, 1}
2015-08-16 13:33:02 +03:00
attributes :: Dict{ASCIIString, Any}
2015-08-19 18:50:43 +03:00
# ipoints :: Array{Float64, 2}
# iweights :: Array{Float64, 1}
2015-08-16 13:33:02 +03:00
end
type Assembly
# LHS
I :: Array{Int64, 1}
J :: Array{Int64, 1}
A :: Array{Float64, 1}
# RHS
i :: Array{Int64, 1}
b :: Array{Float64, 1}
# global dofs for each element
gdofs :: Dict{Int64, Array{Int64, 1}}
end