Create a single layer of prism, which can largely avoid pyramid elements. Then split the prism into multiple layers, which will work.
I fixed it and then converted the mesh by exo2nek, but got the problem of:
============================
mesh metrics:
GLL grid spacing min/max : 6.90E-03 2.04E+00
scaled Jacobian min/max/avg: 7.41E-02 5.46E-01 1.56E-01
aspect ratio min/max/avg: 1.96E+00 1.11E+02 8.53E+00
Mixed B.C. on a side nonaligned with either the X,Y, or Z axis detected for
Element 9286 side 2
Requires STRESS FORMULATION
Mixed B.C. on a side nonaligned with either the X,Y, or Z axis detected for
Element 9287 side 2
Requires STRESS FORMULATION
Mixed B.C. on a side nonaligned with either the X,Y, or Z axis detected for
Element 9288 side 2
Requires STRESS FORMULATION
=======
=======
=======
=======