aPriori.Mesh¶

class aPriori.Mesh(X, Y, Z)¶

A class used to represent a 3D mesh.

This class takes three Scalar objects representing the X, Y, and Z coordinates of a 3D mesh. It checks that the input objects are instances of the Scalar class and have the same shape. The shape of the mesh is expected to be a list of three integers. The class also provides properties to access the unique values of the X, Y, and Z coordinates and their 3D representations. It also provides properties to access the X, Y, and Z coordinates at the midpoints along each axis.

Attributes:¶

shapelist

The shape of the 3D mesh.

Nxint

The size of the mesh along the X axis.

Nyint

The size of the mesh along the Y axis.

Nzint

The size of the mesh along the Z axis.

XScalar

The X coordinates of the mesh.

YScalar

The Y coordinates of the mesh.

ZScalar

The Z coordinates of the mesh.

Methods:¶

X1D:

Returns the unique values of the X coordinates.

Y1D:

Returns the unique values of the Y coordinates.

Z1D:

Returns the unique values of the Z coordinates.

X3D:

Returns the 3D representation of the X coordinates.

Y3D:

Returns the 3D representation of the Y coordinates.

Z3D:

Returns the 3D representation of the Z coordinates.

X_midY:

Returns the X coordinates at the midpoint along the Y axis.

X_midZ:

Returns the X coordinates at the midpoint along the Z axis.

Y_midX:

Returns the Y coordinates at the midpoint along the X axis.

Y_midZ:

Returns the Y coordinates at the midpoint along the Z axis.

Z_midX:

Returns the Z coordinates at the midpoint along the X axis.

Z_midY:

Returns the Z coordinates at the midpoint along the Y axis.

VALID_DIMENSIONS = [3, 1]¶
shape¶
Nx¶
Ny¶
Nz¶
X¶
Y¶
Z¶
l¶
property X1D¶
property Y1D¶
property Z1D¶
property X3D¶
property Y3D¶
property Z3D¶
property X_midY¶
property X_midZ¶
property Y_midX¶
property Y_midZ¶
property Z_midX¶
property Z_midY¶