From c7c19430972afc4a9d9399e74da90b4b3c4df6ef Mon Sep 17 00:00:00 2001 From: andrea Date: Fri, 24 Feb 2023 15:18:34 +0100 Subject: [PATCH] Added two element types that are among those generated by gmsh. The element types are - C3D6, a 6 nodes element that produces the key Wedge6 - CPS3, a 3 nodes element thta produces the key CPS3 (Tri3 alerady exists) I think they are convenient as you do not have to change the element names in the input file before loading the meash with AbaquReader.jl --- src/parse_mesh.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parse_mesh.jl b/src/parse_mesh.jl index a497c6f..2551ac2 100644 --- a/src/parse_mesh.jl +++ b/src/parse_mesh.jl @@ -7,6 +7,9 @@ import Base.parse element_has_nodes(::Type{Val{:C3D4}}) = 4 element_has_type( ::Type{Val{:C3D4}}) = :Tet4 +element_has_nodes(::Type{Val{:C3D6}}) = 6 +element_has_type( ::Type{Val{:C3D6}}) = :Wedge6 + element_has_nodes(::Type{Val{:C3D4H}}) = 4 element_has_type( ::Type{Val{:C3D4H}}) = :Tet4 @@ -27,6 +30,9 @@ element_has_nodes(::Type{Val{:C3D20E}}) = 20 element_has_nodes(::Type{Val{:S3}}) = 3 element_has_type( ::Type{Val{:S3}}) = :Tri3 +element_has_nodes(::Type{Val{:CPS3}}) = 3 +element_has_type( ::Type{Val{:CPS3}}) = :CPS3 + element_has_nodes(::Type{Val{:STRI65}}) = 6 element_has_type(::Type{Val{:STRI65}}) = :Tri6