Potential
- class cosmax.spectral_ops.Potential(elements: int)
Bases:
SpectralOperation
Gravitational potential from a 3D density field.
- Parameters:
elements – number of grid points in each dimension
Methods Summary
__call__
(field[, G])Compute the potential from a 3D density field
Methods Documentation
- __call__(field: Array, G: float = 6.6743e-11)
Compute the potential from a 3D density field
- Parameters:
field – 3D density field
G – gravitational
- Returns:
gravitational potential
- Return type:
potential