Skip to content

Commit

Permalink
fixed abaqus read
Browse files Browse the repository at this point in the history
  • Loading branch information
JTHesse committed Nov 20, 2024
1 parent f47be48 commit c99ef30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/IO/mesh_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,8 @@ function read_mesh(filename::String, params::Dict)

id = 1
block_id = 1
element_written = Array{Int64,1}(undef, num_elements)
# element_written = Array{Int64,1}(undef, num_elements)
element_written = []
nsets = Dict{String,Vector{Int64}}()

# sort element_sets by length
Expand All @@ -754,13 +755,14 @@ function read_mesh(filename::String, params::Dict)
else
mesh_df[id, :] = [center[1], center[2], center[3], volume, block_id]
end
element_written[id] = element_id
# element_written[id] = element_id
push!(element_written, element_id)
id += 1
end
nsets[key] = ns_nodes
block_id += 1
end
@info "Found $(maximum(mesh_df.block_id)) block(s)"
@info "Found $(block_id-1) block(s)"
@info "Found $(length(nsets)) node sets"
@info "NodeSets: $element_sets_keys"

Expand Down

0 comments on commit c99ef30

Please sign in to comment.