JuliaFEM / AbaqusReader.jl

AbaqusReader.jl is a parse for ABAQUS FEM models. It's capable of parsing the geometry accurately, including surface sets, node sets, and other relevant geometrical data used in FEM calculations. Other option is to parse whole model, including boundary conditions, material data and load steps.
https://juliafem.github.io/AbaqusReader.jl/latest
MIT License
37 stars 22 forks source link

Error due to lowercase elset and nset #48

Closed touste closed 5 years ago

touste commented 5 years ago

If the inp file contains lowercase elset such as:

*Nset, nset=setEncastre, instance=Part-1-1 3, 5, 8, 56, 57, 58, 59, 60, 61, 62, 63

it triggers an error on the regex_match function.

This can be avoided by adding the "i" flag to the regexp string (line 175 of parse_mesh.jl):

set_regexstring = Dict(:NSET => r"NSET=([\w-_]+)"i, :ELSET => r"ELSET=([\w-\]+)"i )

TeroFrondelius commented 5 years ago

This can be avoided by adding the "i" flag to the regexp string (line 175 of parse_mesh.jl):

Perfect, please make a pull request. You can do such a minor change in the web browser, just find the spot and click the pen icon.

touste commented 5 years ago

Actually I just realized that this had already been fixed in the repo, however it still pulls 0.2.2 when I install JuliaFEM.