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:
objectAn 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:
objectAn Enumeration of commonly used curvature symbols
- ConstantCurvature = k
- class pystein.symbols.MatterSymbol
Bases:
objectAn 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