3d mortar autodiff not working

This commit is contained in:
Jukka Aho
2016-02-25 10:44:55 +02:00
parent e155b0ca71
commit ce3b6b9d19
7 changed files with 398 additions and 39 deletions
+2 -2
View File
@@ -3,13 +3,13 @@
using HDF5
using JuliaFEM
using JuliaFEM.Core: Element, Quad4, Tri3, Seg2, Hex8, update!
using JuliaFEM.Core: Element, Quad4, Tri3, Tet4, Seg2, Hex8, update!
# TODO: this should be elsewhere
function aster_create_elements(mesh, element_set, element_type=nothing)
elements = Element[]
mapping = Dict(:QU4 => Quad4, :TR3 => Tri3, :SE2 => Seg2, :HE8 => Hex8)
mapping = Dict(:QU4 => Quad4, :TR3 => Tri3, :SE2 => Seg2, :HE8 => Hex8, :TE4 => Tet4)
for (elid, (eltype, elset, elcon)) in mesh["connectivity"]
if !haskey(mapping, eltype)
error("aster_create_elements: unknown element mapping $eltype")