pyg4ometry.mcnp.Transformation

Classes

TR

Coordinate Transformation

TRCL

Coordinate Transformation

Module Contents

class pyg4ometry.mcnp.Transformation.TR(o1=0, o2=0, o3=0, rotxx=1, rotyx=0, rotzx=0, rotxy=0, rotyy=1, rotzy=0, rotxz=0, rotyz=0, rotzz=1, displacementOrigin=1, reg=None, transformationNumber=None)

Coordinate Transformation

Parameters:
  • o3 (o1, o2,) – Displacement vector of the transformation. DEFAULT: (0, 0, 0).

  • Matrix (rotation) – The rotation Matrix default is / [xx’ yx’ zx’] [1 0 0] [xy’ yy’ zy’] = [0 1 0] [xz’ yz’ zz’] [0 0 1]

  • displacementOrigin

    Displacement vector origin / If = positive 1 the displacement vector is the location of the origin of the auxiliary coordinate system, /

    defined in the main system. (DEFAULT)

    If = negative 1 the displacement vector is the location of the origin of the main coordinate system, /

    defined in the auxiliary system.

  • transformationNumber – Number assigned to the transformation.

o1
o2
o3
rotationMatrix
displacementOrigin
transformationNumber
__repr__()
class pyg4ometry.mcnp.Transformation.TRCL(o1=0, o2=0, o3=0, rotxx=1, rotyx=0, rotzx=0, rotxy=0, rotyy=1, rotzy=0, rotxz=0, rotyz=0, rotzz=1, displacementOrigin=1, reg=None, transformationNumber=None)

Bases: TR

Coordinate Transformation

Parameters:
  • o3 (o1, o2,) – Displacement vector of the transformation. DEFAULT: (0, 0, 0).

  • Matrix (rotation) – The rotation Matrix default is / [xx’ yx’ zx’] [1 0 0] [xy’ yy’ zy’] = [0 1 0] [xz’ yz’ zz’] [0 0 1]

  • displacementOrigin

    Displacement vector origin / If = positive 1 the displacement vector is the location of the origin of the auxiliary coordinate system, /

    defined in the main system. (DEFAULT)

    If = negative 1 the displacement vector is the location of the origin of the main coordinate system, /

    defined in the auxiliary system.

  • transformationNumber – Number assigned to the transformation.