### 2.1.32 - (Equilateral) triangular prism surface and X-type triangular lattice

Posted:

**Wed Mar 03, 2021 1:35 am**(Equilateral) triangular prism surface and X-type triangular lattice are new features of Serpent 2.1.32. Following, a brief description:

- X-triangular lattice would correspond with a simple type of lattice, following the same syntax description as square, X-type hexagonal, Y-type hexagonal lattices. X-type triangular lattice type is 14, and it is composed by (X-type) triangular elements. The lattice is infinite in z-direction. [lat UNI TYPE X0 Y0 NX NY PITCH UNI1 UNI2 …] (see 'lat' card).
- (Equilateral) triangular prism surface, 'tric', would correspond with a x-y triangular prism, parallel to z-axis, centered at (x0, y0). Infinite and truncated triangular prisms use the same name, and are composed by 3 planes (+ 2 planes), respectively. The definitions would be as follow (see derived surface types):

tric x0 y0 r [ori]: infinite (equilateral) triangular prism, parallel to z-axis, centered at (x0, y0), with incircle radius 'r', and orientation 'ori' (optional).

tric x0 y0 r ori z0 z1: truncated (equilateral) triangular prism, parallel to z-axis, centered at (x0, y0), with incircle radius 'r', and orientation 'ori', truncated between [z0, z1].

Orientation, ‘ori’, corresponds to the cardinal direction of the non-aligned vertex of the triangle. Default orientation is North. It follows the scheme: W-S-E-N (W=1, S=2, E=3, N=4).