forked from google-deepmind/deepmind-research
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshapes_known.py
68 lines (63 loc) · 2.11 KB
/
shapes_known.py
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 2021 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""A set of known shapes."""
from fusion_tcv import shape
from fusion_tcv import tcv_common
SHAPE_70166_0450 = shape.Shape(
ip=-120000,
params=shape.ParametrizedShape(
r0=0.89,
z0=0.25,
kappa=1.4,
delta=0.25,
radius=0.25,
lambda_=0,
side=shape.ShapeSide.NOSHIFT),
limit_point=shape.Point(tcv_common.INNER_LIMITER_R, 0.25),
diverted=shape.Diverted.LIMITED)
SHAPE_70166_0872 = shape.Shape(
ip=-110000,
params=shape.ParametrizedShape(
r0=0.8796,
z0=0.2339,
kappa=1.2441,
delta=0.2567,
radius=0.2390,
lambda_=0,
side=shape.ShapeSide.NOSHIFT,
),
points=[ # 20 points
shape.Point(0.6299, 0.1413),
shape.Point(0.6481, 0.0577),
shape.Point(0.6804, -0.0087),
shape.Point(0.7286, -0.0513),
shape.Point(0.7931, -0.0660),
shape.Point(0.8709, -0.0513),
shape.Point(0.9543, -0.0087),
shape.Point(1.0304, 0.0577),
shape.Point(1.0844, 0.1413),
shape.Point(1.1040, 0.2340),
shape.Point(1.0844, 0.3267),
shape.Point(1.0304, 0.4103),
shape.Point(0.9543, 0.4767),
shape.Point(0.8709, 0.5193),
shape.Point(0.7931, 0.5340),
shape.Point(0.7286, 0.5193),
shape.Point(0.6804, 0.4767),
shape.Point(0.6481, 0.4103),
shape.Point(0.6299, 0.3267),
shape.Point(0.6240, 0.2340),
],
limit_point=shape.Point(tcv_common.INNER_LIMITER_R, 0.2339),
diverted=shape.Diverted.LIMITED)