tensor(deprecated)/displayGR - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Home : Support : Online Help : tensor(deprecated)/displayGR

tensor

  

displayGR

  

display the nonzero components of a specific general relativity tensor

  

display_allGR

  

display the nonzero components of all of the general relativity tensors and quantities calculated by tensor[tensorsGR]

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

displayGR(GR_name, object)

display_allGR(coord, cov_metric, con_metric, det_met, C1, C2, Rm, Rc, R, G, C)

Parameters

GR_name

-

name of a specific GR-related object where the name is one of coordinates, cov_metric, contra_metric, detmetric, Christoffel1, Christoffel2, Riemann, Ricci, Ricciscalar, Einstein, or Weyl

object

-

object to display

coord

-

list of coordinate variable names (for example, [t, x, y, z])

cov_metric

-

covariant metric tensor (index_char=[-1,-1])

con_metric

-

contravariant metric tensor (index_char=[1,1])

det_met

-

determinant of metric tensor components

C1, C2

-

Christoffel symbols of first and second kind

Rm, Rc, R

-

Riemann tensor, Ricci tensor, Ricci scalar

G, C

-

Einstein and Weyl tensors

Description

Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.

• 

The function displayGR(Einstein, G) displays the nonzero components and the index character of the tensor_type G using the symmetries of the Einstein tensor to reduce the number of components shown. G is expected to be a tensor of rank 2 with the proper symmetries. It can be calculated using tensor[Einstein].

• 

The function display_allGR(coord, cov_met, cont_met, det_met, C1, C2, Rm, Rc, R, G, C) displays all of the GR-related objects passed in the parameter list. They must be passed in the following order: the coordinates list, the covariant metric tensor ([-1,-1]), the contravariant metric tensor ([1,1]), the determinant of the metric tensor components (algebraic type), the Christoffel symbols of the 1st kind ([-1,-1,-1]), the Christoffel symbols of the 2nd kind ([1,-1,-1]), the Riemann tensor, the Ricci tensor, the Ricciscalar ([]), the Einstein tensor, the Weyl tensor.  Each of the quantities is displayed by making the appropriate call to tensor[displayGR]. See tensor[tensorsGR] for the calculation of these quantities.

• 

For displaying general tensor_type objects not listed above, use the 'display' option of tensor[act].

• 

These functions are part of the tensor package, and so can be used in the form displayGR(..) / display_allGR(..) only after performing the command with(tensor), or with(tensor, displayGR) / with(tensor, display_allGR).

Examples

Important: The tensor package has been deprecated. Use the superseding packages DifferentialGeometry and Physics instead.

Define the coordinates and covariant metric for the Schwarzschild metric:

(1)

Compute the curvature (without the print option)

Use displayGR to show that it is a vacuum solution of the Einstein field equations:

(2)

Use displayGR to show the nonzero Christoffel symbols of the first kind:

(3)

Display everything using display_allGR:

(4)

See Also

Physics

tensor(deprecated)

tensor(deprecated)[act]

tensor(deprecated)[tensorsGR]

 


Download Help Document