-
Notifications
You must be signed in to change notification settings - Fork 1
/
bulktopoC.py
49 lines (44 loc) · 1.01 KB
/
bulktopoC.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
import bbdir.cyoda as cyoda
trajectory = "subprojects/seams-core/input/traj/cluster-417.lammpstrj"
# Get the frame
resCloud = cyoda.readLammpsTrjreduced(
filename=trajectory,
targetFrame=1302,
typeI=1, # oxygenAtomType
isSlice=False,
coordLow=[0, 0, 0],
coordHigh=[0, 0, 0],
)
# Calculate the neighborlist by ID
nList = cyoda.neighListO(
rcutoff=3.5,
yCloud=resCloud,
typeI=1, # oxygenAtomType
)
solCloud = cyoda.PointCloudDouble()
iceList = []
clump = cyoda.clusterAnalysis(
path="runOne/", # outDir
iceCloud=solCloud,
yCloud=resCloud,
nList=nList,
iceNeighbourList=iceList,
cutoff=3.5,
firstFrame=1302,
bopAnalysis="q6",
)
# Gets every ring (non-primitives included)
rings = cyoda.ringNetwork(
nList=iceList,
maxDepth=6,
)
# Finds DDCs and HCs
tum3 = cyoda.topoUnitMatchingBulk(
path="runOne/", # outDir
rings=rings,
iceNeighbourList=iceList,
yCloud=solCloud,
firstFrame=1302,
printClusters=True,
onlyTetrahedral=False,
)