# 3.3.7. Tensor Mesh File¶

Tensor meshes are output when creating Octree meshes. The format for tensor mesh files is as follows:

nx $$\;$$ ny $$\;$$ nz
x0 $$\;$$ y0 $$\;$$ z0
pad_lower $$\;$$ ncx * dx $$\;$$ pad_upper
pad_lower $$\;$$ ncy * dy $$\;$$ pad_upper
pad_lower $$\;$$ ncz * dz $$\;$$ pad_upper

An example of a tensor mesh file and the resulting mesh are shown below

## 3.3.7.1. Parameter Descriptions¶

• nx ny nz: The number of tensor mesh cells in the x, y and z direction

• x0 y0 z0: The x, y and z location denoting the top southwest corner of the mesh

• ncx, ncy and ncz: These parameters denote the number of core mesh cells in the x, y and z direction, respectively

• dx, dy and dz: These parameters denoted the widths of each core mesh cell in the x, y and z direction, respectively

• pad_lower: The individual widths of padding cells, separated by spaces, which are applied. Values should decrease from left to right. The user may leave this blank if they do not wish to pad in this direction.

• pad_upper: The individual widths of padding cells, separated by spaces, which are applied. Values should increase from left to right. The user may leave this blank if they do not wish to pad in this direction.

Note

• In each direction, the number of cells (nx for example) must be equal to the total number of padding cells plus the number of core mesh cells.

• In the z direction, the ordering of cells is from top to bottom! So pad_lower is padding in the up direction.