7.7. Components of the metric, MetricInBasis

MetricInBasis        Values for the components of the metric

Components of the metric

It is very common in General Relativity to start working from a known line element. Inded, the typical approach is to start from the components of a metric in a coordinated basis, which determine both the metric and the coordinate system unambiguously. xCoba` provides a specialised function to define the values for the components of a metric, which can be used on its own or as an option for DefBasis.

In[369]:=

? MetricInBasis

In[370]:=

$Metrics

Out[370]=

{metric}

In[371]:=

$CVVerbose = False ;

In[372]:=

MetricInBasis[metric, -polar, Table[i + j, {i, 3}, {j, 3}]]

Out[372]=

In[373]:=

TensorValues[metric]

Out[373]=

An example with a diagonal metric

In[374]:=

DeleteTensorValues[metric]

Deleted values for tensor metric, derivatives  {}  and bases  {{-polar, -polar}}  .

In[375]:=

MetricInBasis[metric, -polar, {1, 2, 3}]

Out[375]=

And know with an orthonormal one

In[376]:=

? SignatureOfMetric

In[377]:=

SignatureOfMetric[metric]^={2, 1, 0}

Out[377]=

{2, 1, 0}

In[378]:=

MetricInBasis[metric, -cartesian, "OrthoNormal"]

Out[378]=

In[379]:=

TensorValues[metric]

Out[379]=


Created by Mathematica  (May 16, 2008) Valid XHTML 1.1!