Skip to content

xdmf export: bounds error with Dirichnet nodal displacement boundary #202

@AndiMD

Description

@AndiMD

Hi,

A simple 3d linear elastic problem with prescribed nodal displacements cannot be exported. See attached case. I am using Julia 0.6.3 with JuliaFEM version is 0.4.0.
bug.tar.gz

EDIT: This issue might be due to the following inconsistency: update!(element, "geometry", mesh.nodes) does not work for element==Poi1, so it contains no coordinate.

Cheers,
Andi

ERROR: LoadError: BoundsError: attempt to access (0,)
  at index [2]
Stacktrace:
 [1] indexed_next(::Tuple{Int64}, ::Int64, ::Int64) at ./tuple.jl:54
 [2] update_xdmf!(::JuliaFEM.Xdmf, ::FEMBase.Problem{JuliaFEM.Dirichlet}, ::Float64, ::Array{String,1}) at /home/andi/.julia/v0.6/JuliaFEM/src/io.jl:416
 [3] write_results!(::FEMBase.Analysis{JuliaFEM.Nonlinear}, ::Float64) at /home/andi/.julia/v0.6/JuliaFEM/src/solvers.jl:537
 [4] solve!(::FEMBase.Analysis{JuliaFEM.Nonlinear}, ::Float64) at /home/andi/.julia/v0.6/JuliaFEM/src/solvers.jl:618
 [5] (::FEMBase.Analysis{JuliaFEM.Nonlinear})() at /home/andi/.julia/v0.6/JuliaFEM/src/solvers.jl:679
 [6] include_from_node1(::String) at ./loading.jl:576
 [7] include(::String) at ./sysimg.jl:14
while loading /home/[...]/3d_mechanical.jl, in expression starting on line 65

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions