pystein.matter module

Utilities for constructing symbolic matter expressions, usually via the Stress-Energy Tensor

pystein.matter.perfect_fluid(metric: pystein.metric.Metric, fluid_velocity: Optional[sympy.tensor.array.dense_ndim_array.ImmutableDenseNDimArray] = None) sympy.tensor.array.dense_ndim_array.ImmutableDenseNDimArray

Compute the stress energy tensor for a perfect fluid in a given metric

Parameters

metric – Metric

Returns

Array, the full stress energy tensor as a matrix

pystein.matter.vacuum(metric: pystein.metric.Metric) sympy.tensor.array.dense_ndim_array.ImmutableDenseNDimArray

Compute the stress energy tensor for a vacuum (zeros)

Parameters

metric – Metric

Returns

Array, the full stress energy tensor as a matrix