Utilities

Export to VTK

vtk_grid(topology::Matrix{Int}, Coord::Matrix, filename::AbstractString) → vtkgrid

Creates an unstructured VTK grid fromt the element topology and coordinates.

To add cell data and point data and write the file see https://github.com/jipolanco/WriteVTK.jl#generating-an-unstructured-vtk-file

Assembler

start_assemble([N=0]) → Assembler

Call before starting an assembly.

Returns an Assembler type that is used to hold the intermediate data before an assembly is finished.

assemble(edof, a, Ke)

Assembles the element matrix Ke into a.

end_assemble(a::Assembler) → K

Finalizes an assembly. Returns a sparse matrix with the assembled values.