Files
JuliaFEM.jl/test/topology/test_pyramids.jl
T
Jukka Aho 970fed178b test(topology): add pyramids test
Test file included in main test/runtests.jl
Tests pyramid element topology
2025-12-15 06:39:51 +02:00

23 lines
668 B
Julia

# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM
using Test
using StaticArrays
@testset "Pyramid Elements" begin
@testset "Pyramid{5}" begin
@test nnodes(Pyramid{5}()) == 5
@test dim(Pyramid{5}()) == 3
@test nvertices(Pyramid{5}()) == 5
@test nedges(Pyramid{5}()) == 8
@test nfaces(Pyramid{5}()) == 5
# Entity counts
@test nentities(Pyramid{5}, Vertex) == 5
@test nentities(Pyramid{5}, Edge) == 8
@test nentities(Pyramid{5}, Face) == 5
@test nentities(Pyramid{5}, Cell) == 1
end
end