Defines cages made from building blocks with 2 and 5 functional groups.

class TwelvePlusThirty(vertex_alignments=None, num_processes=1)

Bases: stk.molecular.topology_graphs.cage.base.Cage

Represents a icosahedron cage topology graph.

See Cage for more details and examples.

vertex_data

A class attribute. Holds the data of the vertices which make up the topology graph.

Type

tuple of VertexData

edge_data

A class attribute. Holds the data of the edges which make up the topology graph.

Type

tuple of EdgeData

vertices

The vertices which make up the topology graph.

Type

tuple of Vertex

edges

The edges which make up the topology graph.

Type

tuple of Edge

Methods

assign_building_blocks_to_vertices(self, …)

Assign building_blocks to vertices.

construct(self, mol)

Construct a ConstructedMolecule.

__init__(self, vertex_alignments=None, num_processes=1)

Initialize a Cage.

Parameters
  • vertex_alignments (dict, optional) – A mapping from the Vertex.id of a Vertex vertices to an Edge connected to it. The Edge is used to align the first FunctionalGroup of a BuildingBlock placed on that vertex. Only vertices which need to have their default edge changed need to be present in the dict. If None then the default edge is used for each vertex. Changing which Edge is used will mean that the topology graph represents different structural isomers. The edge is refered to by a number between 0 (inclusive) and the number of edges the vertex is connected to (exclusive).

  • num_processes (int, optional) – The number of parallel processes to create during construct().

assign_building_blocks_to_vertices(self, building_blocks)

Assign building_blocks to vertices.

Parameters

building_blocks (list of Molecule) – The BuildingBlock and ConstructedMolecule instances which represent the building block molecules used for construction. Only one instance is present per building block molecule, even if multiples of that building block join up to form the ConstructedMolecule.

Returns

Maps the building_blocks, to the Vertex objects in vertices they are placed on during construction. The dict has the form

building_block_vertices = {
    BuildingBlock(...): [Vertex(...), Vertex(...)],
    BuildingBlock(...): [
        Vertex(...),
        Vertex(...),
        Vertex(...),
    ]
    ConstructedMolecule(...): [Vertex(...)]
}

Return type

dict

Raises

ValueError – If there is more than one building with a given number of functional groups.

construct(self, mol)

Construct a ConstructedMolecule.

Parameters

mol (ConstructedMolecule) – The ConstructedMolecule instance which needs to be constructed.

Returns

None

Return type

NoneType

edge_data = (EdgeData(12, 0, id=0), EdgeData(12, 1, id=1), EdgeData(13, 0, id=2), EdgeData(13, 9, id=3), EdgeData(14, 0, id=4), EdgeData(14, 5, id=5), EdgeData(15, 0, id=6), EdgeData(15, 4, id=7), EdgeData(16, 0, id=8), EdgeData(16, 8, id=9), EdgeData(17, 8, id=10), EdgeData(17, 1, id=11), EdgeData(18, 1, id=12), EdgeData(18, 9, id=13), EdgeData(19, 9, id=14), EdgeData(19, 5, id=15), EdgeData(20, 5, id=16), EdgeData(20, 4, id=17), EdgeData(21, 4, id=18), EdgeData(21, 8, id=19), EdgeData(22, 5, id=20), EdgeData(22, 2, id=21), EdgeData(23, 5, id=22), EdgeData(23, 11, id=23), EdgeData(24, 9, id=24), EdgeData(24, 11, id=25), EdgeData(25, 9, id=26), EdgeData(25, 7, id=27), EdgeData(26, 1, id=28), EdgeData(26, 7, id=29), EdgeData(27, 1, id=30), EdgeData(27, 6, id=31), EdgeData(28, 8, id=32), EdgeData(28, 6, id=33), EdgeData(29, 8, id=34), EdgeData(29, 10, id=35), EdgeData(30, 4, id=36), EdgeData(30, 10, id=37), EdgeData(31, 4, id=38), EdgeData(31, 2, id=39), EdgeData(32, 2, id=40), EdgeData(32, 11, id=41), EdgeData(33, 11, id=42), EdgeData(33, 7, id=43), EdgeData(34, 7, id=44), EdgeData(34, 6, id=45), EdgeData(35, 6, id=46), EdgeData(35, 10, id=47), EdgeData(36, 10, id=48), EdgeData(36, 2, id=49), EdgeData(37, 2, id=50), EdgeData(37, 3, id=51), EdgeData(38, 11, id=52), EdgeData(38, 3, id=53), EdgeData(39, 7, id=54), EdgeData(39, 3, id=55), EdgeData(40, 6, id=56), EdgeData(40, 3, id=57), EdgeData(41, 10, id=58), EdgeData(41, 3, id=59))
num_window_types = 1
num_windows = 20
vertex_data = (VertexData(id=0, position=[0.0, 1.0, 1.618033988749895]), VertexData(id=1, position=[0.0, -1.0, 1.618033988749895]), VertexData(id=2, position=[0.0, 1.0, -1.618033988749895]), VertexData(id=3, position=[0.0, -1.0, -1.618033988749895]), VertexData(id=4, position=[1.0, 1.618033988749895, 0.0]), VertexData(id=5, position=[-1.0, 1.618033988749895, 0.0]), VertexData(id=6, position=[1.0, -1.618033988749895, 0.0]), VertexData(id=7, position=[-1.0, -1.618033988749895, 0.0]), VertexData(id=8, position=[1.618033988749895, 0.0, 1.0]), VertexData(id=9, position=[-1.618033988749895, 0.0, 1.0]), VertexData(id=10, position=[1.618033988749895, 0.0, -1.0]), VertexData(id=11, position=[-1.618033988749895, 0.0, -1.0]), VertexData(id=12, position=[0.0, 0.0, 1.618033988749895]), VertexData(id=13, position=[-0.8090169943749475, 0.5, 1.3090169943749475]), VertexData(id=14, position=[-0.5, 1.3090169943749475, 0.8090169943749475]), VertexData(id=15, position=[0.5, 1.3090169943749475, 0.8090169943749475]), VertexData(id=16, position=[0.8090169943749475, 0.5, 1.3090169943749475]), VertexData(id=17, position=[0.8090169943749475, -0.5, 1.3090169943749475]), VertexData(id=18, position=[-0.8090169943749475, -0.5, 1.3090169943749475]), VertexData(id=19, position=[-1.3090169943749475, 0.8090169943749475, 0.5]), VertexData(id=20, position=[0.0, 1.618033988749895, 0.0]), VertexData(id=21, position=[1.3090169943749475, 0.8090169943749475, 0.5]), VertexData(id=22, position=[-0.5, 1.3090169943749475, -0.8090169943749475]), VertexData(id=23, position=[-1.3090169943749475, 0.8090169943749475, -0.5]), VertexData(id=24, position=[-1.618033988749895, 0.0, 0.0]), VertexData(id=25, position=[-1.3090169943749475, -0.8090169943749475, 0.5]), VertexData(id=26, position=[-0.5, -1.3090169943749475, 0.8090169943749475]), VertexData(id=27, position=[0.5, -1.3090169943749475, 0.8090169943749475]), VertexData(id=28, position=[1.3090169943749475, -0.8090169943749475, 0.5]), VertexData(id=29, position=[1.618033988749895, 0.0, 0.0]), VertexData(id=30, position=[1.3090169943749475, 0.8090169943749475, -0.5]), VertexData(id=31, position=[0.5, 1.3090169943749475, -0.8090169943749475]), VertexData(id=32, position=[-0.8090169943749475, 0.5, -1.3090169943749475]), VertexData(id=33, position=[-1.3090169943749475, -0.8090169943749475, -0.5]), VertexData(id=34, position=[0.0, -1.618033988749895, 0.0]), VertexData(id=35, position=[1.3090169943749475, -0.8090169943749475, -0.5]), VertexData(id=36, position=[0.8090169943749475, 0.5, -1.3090169943749475]), VertexData(id=37, position=[0.0, 0.0, -1.618033988749895]), VertexData(id=38, position=[-0.8090169943749475, -0.5, -1.3090169943749475]), VertexData(id=39, position=[-0.5, -1.3090169943749475, -0.8090169943749475]), VertexData(id=40, position=[0.5, -1.3090169943749475, -0.8090169943749475]), VertexData(id=41, position=[0.8090169943749475, -0.5, -1.3090169943749475]))