sajou.utils module

class sajou.utils.CoordSys(type='cartesian')

Bases: object

Class implementing coordinating systems

Parameters:type (str) –

type of the coordinate system

  • ‘cartesian’
  • ‘cylindrical’
  • ‘spherical’
calc_transformation_matrix(length, cx, cy, cz)

Calculates the transformation matrix for the current instance of local system

Parameters:
  • length (float) – length of the beam element
  • cx (float) – directive cosinus
  • cy (float) – directive cosinus
  • cz (float) – directive cosinus
Returns:

transsformation matrix

Return type:

ndarray

from_cart_to_cylindric(cart_csys)

Transform coordinates from cartesian to polar coordinates

Parameters:cart_csys (CoordSys instance) – Coordintate system
Returns:TODO
Return type:CoordSys instance
from_cylindric_to_cart(cylindric_csys)

Trnsforms coordinates from polar to cartesian coordinates

Parameters:polar_csys (CoordSys instance) – TODO
Returns:TODO
Return type:CoordSys instance
class sajou.utils.Local_Csys_two_points(point1, point2, type='cartesian')

Bases: sajou.utils.CoordSys

Class implementing local coordinate systems

Parameters:
  • point1 (ndarray) – first point
  • point2 (ndarray) – second point
  • type (str) – type of the coordinate system