Metrics, Coordinates, and Tetrads
The generality of Diplodocus.jl allows simulations to be run using a wide range of spacetimes, with flexibility to use different coordinates and specify different local observers. These choices are defined by three structs metric, coordinates, and tetrad that must be defined for each simulation.
Metrics
The first thing to define is the metric of the background spacetime on which the Diplodocus.jl simulation will run.
| Metric | Metric Struct | Comments |
|---|---|---|
| Minkowski | Minkowski() | Standard flat spacetime |
| Schwarzschild | Schwarzschild(M=1.0) | Schwarzschild spacetime with dimensionless black hole mass M |
| Kerr | Kerr(M=1.0,a=0.0) | Kerr spacetime with dimensionless black hole mass M and dimensionless spin a |
Coordinates
The coordinate struct defines the coordinates which which the spatial grid will be defined on the background spacetime defined by the metric. In the code coordinates are always defined by x,y,z and depending on the nature of the chosen coordinates these refer to different things as commented below. Not all coordinates currently work with all metrics.
| Coordinates | Coordinates Struct | Comments | Metric Support |
|---|---|---|---|
| Cartesian | Cartesian() | x=x,y=y,z=z | Minkowski() |
| Cylindrical | Cylindrical() | x=ρ, y=ϑ, z=z | Minkowski() |
| Spherical | Spherical() | x=r, y=θ, z=ψ | Minkowski() |
| Modified Spherical | ModifiedSpherical() | x=p, y=u=cos(θ), z=ϕ used for momentum space coordinates | Not currently supported as a spatial coordinate set |
| Paraboloidal | Paraboloidal() | x=ϕ, y=u, z=v (where u and v have dimensions of sqrt(length)) | Minkowski() |
Tetrads
With a metric and set of coordinates defined the last thing that needs to be defined is the tetrad of the local observer. Not all tetrads are currently supported by all metrics and coordinates.
| Tetrad | Tetrad Struct | Comments | Metric Support | Coordinate Support | | —————– | ———— | ——————————- | ————– | | Stationary Observer | StationaryObserverTetrad() | The simplest possible tetrad, that of a locally stationary Eularian observer Minkowski() | | Cylindrical | Cylindrical() | x=ρ, y=ϑ, z=z | Minkowski() | Cartesian(),Cylindrical(),Spherical(),Paraboloidal() | | Uniform electromagnetic field | UniformElectromagneticFieldTetrad(B0=1.0,E0=1.0) | An observer moving in uniform and orthogonal electric E0 and magnetic B0 fields (force-free), moving with the Minkowski() | Cartesian(),Cylindrical() | | Parabolic Force Free | ParabolicForceFree(B0,Ω) | Parabolic force-free field as defined in . The observer is moving with the B0 and field line rotation rate along the equatorial place set by the function Ω | Minkowski() | Paraboloidal() |
Boundary Conditions
When defining coordinates a user may specify the boundary conditions on boundaries of these coordinates. These are set by the coordinate struct keyword arguments xp_BC,xm_BC,yp_BC,ym_BC,zp_BC,zm_BC where, for example, xp_BC sets the boundary condition on the upper bound (p) of the x coordinate.
The currently implemented boundary conditions are (not all are defined for all coordinates)
| Boundary Condition | Description |
|---|---|
Periodic() | Periodic boundary, particles leaving one coordinate boundary re-appear on the opposite coordinate boundary |
Open() | Particles may leave or enter this boundary, particle flux may be non-zero |
Closed() | No particles may leave or enter this boundary (particles are NOT reflected), particle flux is zero |
Reflective() | Particles reflect off this boundary (momentum component normal to boundary reverse sign if possible) |
Escape() | Particle may escape based on their momentum magnitude and not direction, useful for isotropic particle distribution that otherwise prevent escape as there is no preferred direction of propagation |
If boundary conditions are not specified, each set of coordinates has a default set of boundary conditions.
| Coordinate Struct | xp_BC | xm_BC | yp_BC | ym_BC | zp_BC | zm_BC | | —————– | – | – | – | – | – | – | | Cartesian() | Periodic() | Periodic() | Periodic() | Periodic() | Periodic() | Periodic() | | Cylindrical() | Open() | Closed() | Periodic() | Periodic() | Periodic() | Periodic() | | Spherical() | Open() | Closed() | Closed() | Closed() | Periodic() | Periodic() | | ModifiedSpherical() | Closed() | Closed() | Closed() | Closed() | Periodic() | Periodic() | | Paraboloidal() | Periodic() | Periodic() | Open() | Closed() | Open() | Closed() |
Reference
- Blandford, R. (1976). Accretion disc electrodynamics - a model for double radio sources. MNRAS 176, 465–481.