Ejemplo n.º 1
0
    JanisNewmanWinicour,
    Kerr,
    KerrNewman,
    Minkowski,
    MinkowskiCartesian,
    MinkowskiPolar,
    ReissnerNordstorm,
    Schwarzschild,
)


@pytest.mark.parametrize(
    "metric_instance",
    [
        AlcubierreWarp(),
        AntiDeSitter(),
        AntiDeSitterStatic(),
        DeSitter(),
        Schwarzschild(),
        Schwarzschild(c=1, sch=2),
        Kerr(),
        KerrNewman(),
        Minkowski(),
        MinkowskiCartesian(),
        MinkowskiPolar(),
        CMetric(),
        Davidson(),
        Godel(),
        BesselGravitationalWave(),
        BarriolaVilekin(),
        BertottiKasner(),
Ejemplo n.º 2
0
t = mink.tensor()
pprint(t)
### @end
assert isinstance(sch, einsteinpy.symbolic.metric.MetricTensor)
snippets['Minkowski'] = latex(t)

### "DeSitter"
mink = DeSitter()
t = mink.tensor()
pprint(t)
### @end
assert isinstance(sch, einsteinpy.symbolic.metric.MetricTensor)
snippets['DeSitter'] = latex(t)

### "AntiDeSitter"
mink = AntiDeSitter()
t = mink.tensor()
pprint(t)
### @end
assert isinstance(sch, einsteinpy.symbolic.metric.MetricTensor)
snippets['AntiDeSitter'] = latex(t)

### "Ricci-curvatures"
scalar_curvature_de_sitter = RicciScalar.from_metric(DeSitter())
scalar_curvature_anti_de_sitter = RicciScalar.from_metric(AntiDeSitter())
### @end
snippets['DeSitter-curvature'] = latex(scalar_curvature_de_sitter.expr)
snippets['AntiDeSitter-curvature'] = latex(
    scalar_curvature_anti_de_sitter.expr)
snippets['AntiDeSitter-simplified'] = latex(
    simplify(scalar_curvature_anti_de_sitter.expr))
Ejemplo n.º 3
0
import pytest

from einsteinpy.symbolic import MetricTensor
from einsteinpy.symbolic.predefined import AntiDeSitter, AntiDeSitterStatic, DeSitter


@pytest.mark.parametrize(
    "metric_instance",
    [AntiDeSitter(), AntiDeSitterStatic(),
     DeSitter()])
def test_all_predefined_metrics(metric_instance):
    assert isinstance(metric_instance, MetricTensor)
Ejemplo n.º 4
0
 def get_tensor():
     metric = AntiDeSitter()
     return ChristoffelSymbols.from_metric(metric)