File: metric.fe

package info (click to toggle)
evolver 2.70+ds-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 17,148 kB
  • sloc: ansic: 127,395; makefile: 209; sh: 98
file content (33 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// metric.fe
// Demonstration of background metric with strings

// Metric turns punctured plane into catenoid. Initial string
// shrinks to loop around throat.  Note that graphing uses just
// the plane coordinates without metric.

SPACE_DIMENSION 2

STRING

#define G11    (1 + 1/(x^2 + y^2))^2

METRIC
G11 0 
0   G11

vertices  
1   1  0
2   0  2
3  -2  0
4   0 -1

edges
1   1 2
2   2 3
3   3 4
4   4 1

read

// Typical evolution
gogo := { g 5; r; g 5; r; g 5; r; g 5; }