Symbolic Coord System
- class mechpy.core.symbolic.coord.SymbolicCoordSystem(origin: Tuple[Number], basis: Tuple[Symbol | Expr])
Bases:
object
- classmethod auto_detect(data)
- classmethod coord_subs(data: Tuple[Symbol | Expr], dict: dict)
- classmethod coord_eval(data: Tuple[Symbol | Expr], subs=None)
- class mechpy.core.symbolic.coord.SymbolicCartesianCoordSystem(origin: Tuple[Number] = None, basis: Tuple[Symbol | Expr] = None)
Bases:
SymbolicCoordSystem
- get_basis_cylindrical_exprs(cylindrical_basis=None) dict
Get the expressions for cylindrical basis in terms of Cartesian basis. :return: A dictionary with cylindrical basis expressions.
- get_basis_spherical_exprs(spherical_basis=None) dict
Get the expressions for spherical basis in terms of Cartesian basis. :return: A dictionary with spherical basis expressions.
- to_cylindrical()
Convert to cylindrical coordinate system. :return: An instance of SymbolicCylindricalCoordSystem.
- to_spherical()
Convert to spherical coordinate system. :return: An instance of SymbolicSphericalCoordSystem.
- get_cylindrical_coord(values: tuple) tuple
Convert Cartesian coordinates to cylindrical coordinates. :param values: A tuple of Cartesian coordinates (x, y, z). :return: An tuple of cylindrical coordinates (r, theta, z).
- get_spherical_coord(values: tuple) tuple
Convert Cartesian coordinates to spherical coordinates. :param values: A tuple of Cartesian coordinates (x, y, z). :return: An tuple of spherical coordinates (r, theta, phi).
- class mechpy.core.symbolic.coord.SymbolicCylindricalCoordSystem(origin: Tuple[int | float] = None, basis: Tuple[Symbol | Expr] = None)
Bases:
SymbolicCoordSystem
- get_basis_cartesian_exprs(cartesian_basis=None) dict
- to_cartesian()
- get_cartesian_coords(values)
- class mechpy.core.symbolic.coord.SymbolicSphericalCoordSystem(origin: Tuple[int | float] = None, basis: Tuple[Symbol | Expr] = None)
Bases:
SymbolicCoordSystem
- get_basis_cartesian_exprs(cartesian_basis=None) dict
- to_cartesian()
- get_cartesian_coords(values)