pystein.symbols module

Module for commonly used symbols, such as coordinate symbols. This prevents unnecessary duplicate calls to sympy.symbols and provides unified access to reoccurring symbols.

class pystein.symbols.CoordinateSymbol

Bases: object

An enumeration of commonly used coordinate symbols

CartesianX = x
CartesianY = y
CartesianZ = z
SphericalAzimuthalAngle = \varphi
SphericalPolarAngle = \theta
SphericalRadius = r
Time = t
class pystein.symbols.CurvatureSymbol

Bases: object

An Enumeration of commonly used curvature symbols

ConstantCurvature = k
class pystein.symbols.MatterSymbol

Bases: object

An Enumeration of commonly used matter symbols

Density = \rho
Pressure = p
pystein.symbols.numeric_symbol(name: str, assumptions: Optional[dict] = None)

Helper utility for creating a numeric symbol with default assumptions from the sympy.diffgeom subpackage

Parameters
  • name – str, the name

  • assumptions – dict, the assumptions. If None use DEFAULT_NUMERIC_ASSUMPTIONS

Returns

Symbol