AbaqusReader.jl icon indicating copy to clipboard operation
AbaqusReader.jl copied to clipboard

C3D20 not working.

Open carlomontec opened this issue 6 years ago • 7 comments

Hello, I tested to read a mesh with C3D20 elements without success, having the error:

ERROR: LoadError: MethodError: no method matching element_has_type(::Type{Val{:C3D20}}) Closest candidates are: element_has_type(::Type{Val{:C3D4}}) at /home/monjaraz/.julia/packages/AbaqusReader/5egCd/src/parse_mesh.jl:8 element_has_type(::Type{Val{:C3D8}}) at /home/monjaraz/.julia/packages/AbaqusReader/5egCd/src/parse_mesh.jl:11 element_has_type(::Type{Val{:C3D10}}) at /home/monjaraz/.julia/packages/AbaqusReader/5egCd/src/parse_mesh.jl:14 ...

However, if I add the following line in parse_mesh.jl element_has_type(::Type{Val{:C3D20}}) = :Hex20 seems to work.

I must add that I only use the mesh importer for my own code to extract data of elements and nodes, rather than for JuliaFEM. Therefore I dont know if it would break anything at JuliaFEM

Thanks!

carlomontec avatar Aug 16 '18 09:08 carlomontec

Looks like a solution. Can you make PR with that?

ahojukka5 avatar Aug 16 '18 09:08 ahojukka5

Sure thing, I just need to learn how to make a PR :) gonna figure it out this weekend

carlomontec avatar Aug 17 '18 23:08 carlomontec

Any progress on this?

ahojukka5 avatar Jul 02 '20 18:07 ahojukka5

I actually submitted the PR a few days after. It's already merged. Is it OK also to make another PR for some elements in CalculiX? I'm not sure they exist in Abaqus.

carlomontec avatar Mar 10 '21 18:03 carlomontec

Hmm good question. Opinions, @TeroFrondelius ?

ahojukka5 avatar Mar 13 '21 21:03 ahojukka5

For example, what kind of elements. Maybe there are counterparts in ABAQUS.

ahojukka5 avatar Mar 13 '21 21:03 ahojukka5

Any development is a good development. Please add also tests if possible.

TeroFrondelius avatar Mar 14 '21 18:03 TeroFrondelius