Ferrite.jl icon indicating copy to clipboard operation
Ferrite.jl copied to clipboard

Export of super parametric elements

Open fredrikekre opened this issue 8 years ago • 3 comments

I don't think it works :trollface:.

fredrikekre avatar Nov 28 '17 09:11 fredrikekre

julia> grid = generate_grid(QuadraticTriangle, (5, 5));

julia> dh = DofHandler(grid);

julia> push!(dh, :u, 1, Lagrange{2,RefTetrahedron,1}());

julia> close!(dh);

julia> u = collect(1:ndofs(dh));

julia> vtk = vtk_grid("test", grid);

julia> vtk_point_data(vtk, dh, u);
ERROR: BoundsError: attempt to access 3-element Array{Int64,1} at index [4]
Stacktrace:

fredrikekre avatar Nov 29 '17 11:11 fredrikekre

Always just export it as linear?

KristofferC avatar Nov 29 '17 11:11 KristofferC

Yes, or if both fields are quadratic I guess we can export that

fredrikekre avatar Nov 29 '17 11:11 fredrikekre