Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 441 Bytes

mesh.md

File metadata and controls

31 lines (22 loc) · 441 Bytes

Mesh

CurrentModule = FEMBase
DocTestSetup = quote
    using FEMBase
end

Mesh structure

Modifying mesh

Defining new mesh parsers

Whould work somehow like this:

mutable struct DemoReader <: AbstractMeshReader
    handle :: String
end

function read_mesh!(m::Mesh, r::DemoReader)
    # parse file and insert results to `m`.
end

mesh = Mesh()
reader = DemoReader("file.inp")
read_mesh!(mesh, reader)