Skip to content

Commit

Permalink
Added two element types that are among those generated by gmsh. The
Browse files Browse the repository at this point in the history
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
  • Loading branch information
avigliotti committed Feb 24, 2023
1 parent aa8be3c commit c7c1943
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parse_mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit c7c1943

Please sign in to comment.