Newer
Older
"metadata": {},
"outputs": [],
"source": [
"using LinearAlgebra\n",
"using Plots\n",
"import JSON\n",
"# using Quaternions\n",
"using StaticArrays, Rotations\n",
"using Distributed\n",
"using StaticArrays, BenchmarkTools\n",
"using Base.Threads\n",
"using CUDAnative\n",
"using CuArrays,CUDAdrv \n",
"using Test\n",
"import Base: +, * , -, ^"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Todo\n",
"- create struct for material and get for each edge its properties\n",
"- implement getTimestep (done)\n",
"- implement on single voxel (done)\n",
"- get reat E and L (done)\n",
"- compare to Frame3dd"
]
},
{
"cell_type": "code",
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
"metadata": {},
"outputs": [],
"source": [
"struct Vector3\n",
" x::Float64\n",
" y::Float64\n",
" z::Float64\n",
" function Vector3()\n",
" x=0.0\n",
" y=0.0\n",
" z=0.0\n",
" new(x,y,z)\n",
" end\n",
" function Vector3(x,y,z)\n",
" new(x,y,z)\n",
" end\n",
"end\n",
"struct Quaternion\n",
" x::Float64\n",
" y::Float64\n",
" z::Float64\n",
" w::Float64\n",
" function Quaternion()\n",
" x=0.0\n",
" y=0.0\n",
" z=0.0\n",
" w=1.0\n",
" new(x,y,z,w)\n",
" end\n",
" function Quaternion(x,y,z,w)\n",
" new(x,y,z,w)\n",
" end\n",
"end\n",
"struct RotationMatrix\n",
" te1::Float64\n",
" te2::Float64\n",
" te3::Float64\n",
" te4::Float64\n",
" te5::Float64\n",
" te6::Float64\n",
" te7::Float64\n",
" te8::Float64\n",
" te9::Float64\n",
" te10::Float64\n",
" te11::Float64\n",
" te12::Float64\n",
" te13::Float64\n",
" te14::Float64\n",
" te15::Float64\n",
" te16::Float64\n",
" function RotationMatrix()\n",
" te1 =0.0\n",
" te2 =0.0\n",
" te3 =0.0\n",
" te4 =0.0\n",
" te5 =0.0\n",
" te6 =0.0\n",
" te7 =0.0\n",
" te8 =0.0\n",
" te9 =0.0\n",
" te10=0.0\n",
" te11=0.0\n",
" te12=0.0\n",
" te13=0.0\n",
" te14=0.0\n",
" te15=0.0\n",
" te16=0.0\n",
" new(te1,te2,te3,te4,te5,te6,te7,te8,te9,te10,te11,te12,te13,te14,te15,te16)\n",
" end\n",
" function RotationMatrix(te1,te2,te3,te4,te5,te6,te7,te8,te9,te10,te11,te12,te13,te14,te15,te16)\n",
" new(te1,te2,te3,te4,te5,te6,te7,te8,te9,te10,te11,te12,te13,te14,te15,te16)\n",
" end\n",
"end\n",
"\n",
"+(f::Vector3, g::Vector3)=Vector3(f.x+g.x , f.y+g.y,f.z+g.z )\n",
"-(f::Vector3, g::Vector3)=Vector3(f.x-g.x , f.y-g.y,f.z-g.z )\n",
"*(f::Vector3, g::Vector3)=Vector3(f.x*g.x , f.y*g.y,f.z*g.z )\n",
"\n",
"+(f::Vector3, g::Number)=Vector3(f.x+g , f.y+g,f.z+g )\n",
"-(f::Vector3, g::Number)=Vector3(f.x-g , f.y-g,f.z-g )\n",
"*(f::Vector3, g::Number)=Vector3(f.x*g , f.y*g,f.z*g )\n",
"\n",
"+(g::Vector3, f::Number)=Vector3(f.x+g , f.y+g,f.z+g )\n",
"-(g::Vector3, f::Number)=Vector3(g-f.x , g-f.y,g-f.z )\n",
"*(g::Vector3, f::Number)=Vector3(f.x*g , f.y*g,f.z*g )\n",
"\n",
"addX(f::Vector3, g::Number)=Vector3(f.x+g , f.y,f.z)\n",
"addY(f::Vector3, g::Number)=Vector3(f.x , f.y+g,f.z )\n",
"addZ(f::Vector3, g::Number)=Vector3(f.x , f.y,f.z+g )\n",
"\n",
"function normalizeVector3(f::Vector3)\n",
" leng=sqrt((f.x * f.x) + (f.y * f.y) + (f.z * f.z))\n",
" return Vector3(f.x/leng,f.y/leng,f.z/leng)\n",
" \n",
"end\n",
"function normalizeQuaternion(f::Quaternion)\n",
" l = sqrt((f.x * f.x) + (f.y * f.y) + (f.z * f.z)+ (f.w * f.w))\n",
" if l === 0 \n",
" qx = 0\n",
" qy = 0\n",
" qz = 0\n",
" qw = 1\n",
" else \n",
" l = 1 / l\n",
" qx = f.x * l\n",
" qy = f.y * l\n",
" qz = f.z * l\n",
" qw = f.w * l\n",
" end\n",
" return Quaternion(qx,qy,qz,qw)\n",
"end\n",
"\n",
"function normalizeQuaternion1!(fx::Float64,fy::Float64,fz::Float64,fw::Float64)\n",
" l = sqrt((fx * fx) + (fy * fy) + (fz * fz)+ (fw * fw))\n",
" if l === 0 \n",
" qx = 0.0\n",
" qy = 0.0\n",
" qz = 0.0\n",
" qw = 1.0\n",
" else \n",
" l = 1.0 / l\n",
" qx = fx * l\n",
" qy = fy * l\n",
" qz = fz * l\n",
" qw = fw * l\n",
" end\n",
" return qx,qy,qz,qw\n",
"end\n",
"\n",
"\n",
"function dotVector3(f::Vector3, g::Vector3)\n",
" return (f.x * g.x) + (f.y * g.y) + (f.z * g.z)\n",
"end\n",
"\n",
"function Base.show(io::IO, v::Vector3)\n",
" print(io, \"x:$(v.x), y:$(v.y), z:$(v.z)\")\n",
"end\n",
"\n",
"function Base.show(io::IO, v::Quaternion)\n",
" print(io, \"x:$(v.x), y:$(v.y), z:$(v.z), w:$(v.z)\")\n",
"end\n",
"\n",
"Base.Broadcast.broadcastable(q::Vector3) = Ref(q)"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"simulateParallel (generic function with 2 methods)"
]
},
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function simulateParallel(numTimeSteps,dt)\n",
" # initialize(setup)\n",
" \n",
" for i in 1:numTimeSteps\n",
" #println(\"Timestep:\",i)\n",
" doTimeStep(dt,i)\n",
" end\n",
"end\n",
"\n",
"function simulateParallel(metavoxel,numTimeSteps,dt)\n",
" # initialize(setup)\n",
" \n",
" for i in 1:numTimeSteps\n",
" #println(\"Timestep:\",i)\n",
" doTimeStep(metavoxel,dt,i)\n",
" end\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"initialize (generic function with 1 method)"
]
},
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function initialize(setup)\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
"\n",
" i=1\n",
" # pre-calculate current position\n",
" for node in nodes\n",
" # element=parse(Int,node[\"id\"][2:end])\n",
" N_position[i]=Vector3(node[\"position\"][\"x\"]*15.0,node[\"position\"][\"y\"]*15.0,node[\"position\"][\"z\"]*15.0)\n",
" N_restrained[i]=node[\"restrained_degrees_of_freedom\"][1] ## todo later consider other degrees of freedom\n",
" N_displacement[i]=Vector3(node[\"displacement\"][\"x\"]*15,node[\"displacement\"][\"y\"]*15,node[\"displacement\"][\"z\"]*15)\n",
" N_angle[i]=Vector3(node[\"angle\"][\"x\"],node[\"angle\"][\"y\"],node[\"angle\"][\"z\"])\n",
" N_force[i]=Vector3(node[\"force\"][\"x\"],node[\"force\"][\"y\"],node[\"force\"][\"z\"])\n",
" N_currPosition[i]=Vector3(node[\"position\"][\"x\"]*15.0,node[\"position\"][\"y\"]*15.0,node[\"position\"][\"z\"]*15.0)\n",
"\n",
" # for dynamic simulations\n",
" # append!(N_posTimeSteps,[[]])\n",
" # append!(N_angTimeSteps,[[]])\n",
"\n",
" i=i+1\n",
" end \n",
"\n",
" i=1\n",
" # pre-calculate the axis\n",
" for edge in edges\n",
" # element=parse(Int,edge[\"id\"][2:end])\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = nodes[edge[\"source\"]+1]\n",
" toNode = nodes[edge[\"target\"]+1]\n",
"\n",
"\n",
" node1 = [fromNode[\"position\"][\"x\"]*15.0 fromNode[\"position\"][\"y\"]*15.0 fromNode[\"position\"][\"z\"]*15.0]\n",
" node2 = [toNode[\"position\"][\"x\"]*15.0 toNode[\"position\"][\"y\"]*15.0 toNode[\"position\"][\"z\"]*15.0]\n",
"\n",
" length=norm(node2-node1)\n",
" axis=normalize(collect(Iterators.flatten(node2-node1)))\n",
"\n",
" E_source[i]=edge[\"source\"]+1\n",
" E_target[i]=edge[\"target\"]+1\n",
" E_area[i]=edge[\"area\"]\n",
" E_density[i]=edge[\"density\"]\n",
" E_stiffness[i]=edge[\"stiffness\"]\n",
" E_axis[i]=Vector3(axis[1],axis[2],axis[3])\n",
" E_currentRestLength[i]=length #?????????? todo change\n",
"# E_currentRestLength[i]=75/sqrt(2)\n",
"\n",
" N_edgeID[E_source[i],N_currEdge[E_source[i]]]=i\n",
" N_edgeFirst[E_source[i],N_currEdge[E_source[i]]]=true\n",
" N_currEdge[E_source[i]]+=1\n",
"\n",
" N_edgeID[E_target[i],N_currEdge[E_target[i]]]=i\n",
" N_edgeFirst[E_target[i],N_currEdge[E_target[i]]]=false\n",
" N_currEdge[E_target[i]]+=1\n",
"\n",
"\n",
" # for dynamic simulations\n",
" # append!(E_stressTimeSteps,[[]])\n",
"\n",
" i=i+1\n",
" end \n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"doTimeStep! (generic function with 1 method)"
]
},
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function doTimeStep(dt,currentTimeStep)\n",
" # update forces: go through edges, get currentposition from nodes, calc pos2 and update stresses and interior forces of nodes\n",
" run_updateEdges!(\n",
" E_sourceGPU, \n",
" E_targetGPU,\n",
" E_areaGPU,\n",
" E_densityGPU,\n",
" E_stiffnessGPU,\n",
" E_stressGPU,\n",
" E_axisGPU,\n",
" E_currentRestLengthGPU,\n",
" E_pos2GPU,\n",
" E_angle1vGPU,\n",
" E_angle2vGPU,\n",
" E_angle1GPU,\n",
" E_angle2GPU,\n",
" E_intForce1GPU,\n",
" E_intMoment1GPU,\n",
" E_intForce2GPU,\n",
" E_intMoment2GPU,\n",
" E_dampGPU,\n",
" N_currPositionGPU,\n",
" N_orientGPU)\n",
" \n",
" # update forces: go through nodes and update interior force (according to int forces from edges), integrate and update currpos\n",
" run_updateNodes!(dt,currentTimeStep,\n",
" N_positionGPU, \n",
" N_restrainedGPU,\n",
" N_displacementGPU,\n",
" N_angleGPU,\n",
" N_currPositionGPU,\n",
" N_linMomGPU,\n",
" N_angMomGPU,\n",
" N_intForceGPU,\n",
" N_intMomentGPU,\n",
" N_forceGPU,\n",
" N_momentGPU,\n",
" N_orientGPU,\n",
" N_edgeIDGPU, \n",
" N_edgeFirstGPU, \n",
" E_intForce1GPU,\n",
" E_intMoment1GPU,\n",
" E_intForce2GPU,\n",
" E_intMoment2GPU)\n",
" \n",
"end\n",
"\n",
"function doTimeStep!(metavoxel,dt,currentTimeStep)\n",
" # update forces: go through edges, get currentposition from nodes, calc pos2 and update stresses and interior forces of nodes\n",
" run_updateEdges!(\n",
" metavoxel[\"E_sourceGPU\"], \n",
" metavoxel[\"E_targetGPU\"],\n",
" metavoxel[\"E_areaGPU\"],\n",
" metavoxel[\"E_densityGPU\"],\n",
" metavoxel[\"E_stiffnessGPU\"],\n",
" metavoxel[\"E_stressGPU\"],\n",
" metavoxel[\"E_axisGPU\"],\n",
" metavoxel[\"E_currentRestLengthGPU\"],\n",
" metavoxel[\"E_pos2GPU\"],\n",
" metavoxel[\"E_angle1vGPU\"],\n",
" metavoxel[\"E_angle2vGPU\"],\n",
" metavoxel[\"E_angle1GPU\"],\n",
" metavoxel[\"E_angle2GPU\"],\n",
" metavoxel[\"E_intForce1GPU\"],\n",
" metavoxel[\"E_intMoment1GPU\"],\n",
" metavoxel[\"E_intForce2GPU\"],\n",
" metavoxel[\"E_intMoment2GPU\"],\n",
" metavoxel[\"E_dampGPU\"],\n",
" metavoxel[\"N_currPositionGPU\"],\n",
" metavoxel[\"N_orientGPU\"])\n",
" \n",
" # update forces: go through nodes and update interior force (according to int forces from edges), integrate and update currpos\n",
" run_updateNodes!(dt,currentTimeStep,\n",
" metavoxel[\"N_positionGPU\"], \n",
" metavoxel[\"N_restrainedGPU\"],\n",
" metavoxel[\"N_displacementGPU\"],\n",
" metavoxel[\"N_angleGPU\"],\n",
" metavoxel[\"N_currPositionGPU\"],\n",
" metavoxel[\"N_linMomGPU\"],\n",
" metavoxel[\"N_angMomGPU\"],\n",
" metavoxel[\"N_intForceGPU\"],\n",
" metavoxel[\"N_intMomentGPU\"],\n",
" metavoxel[\"N_forceGPU\"],\n",
" metavoxel[\"N_momentGPU\"],\n",
" metavoxel[\"N_orientGPU\"],\n",
" metavoxel[\"N_edgeIDGPU\"], \n",
" metavoxel[\"N_edgeFirstGPU\"], \n",
" metavoxel[\"E_intForce1GPU\"],\n",
" metavoxel[\"E_intMoment1GPU\"],\n",
" metavoxel[\"E_intForce2GPU\"],\n",
" metavoxel[\"E_intMoment2GPU\"])\n",
" \n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"run_updateEdges! (generic function with 1 method)"
]
},
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function updateEdges!(E_source,E_target,E_area,E_density,E_stiffness,E_stress,E_axis,\n",
" E_currentRestLength,E_pos2,E_angle1v,E_angle2v,\n",
" E_angle1,E_angle2,E_intForce1,E_intMoment1,E_intForce2,E_intMoment2,E_damp,\n",
" N_currPosition,N_orient)\n",
"\n",
" index = (blockIdx().x - 1) * blockDim().x + threadIdx().x\n",
" stride = blockDim().x * gridDim().x\n",
" ## @cuprintln(\"thread $index, block $stride\")\n",
" N=length(E_source)\n",
" for i = index:stride:N\n",
" \n",
" @inbounds pVNeg=N_currPosition[E_source[i]]\n",
" @inbounds pVPos=N_currPosition[E_target[i]]\n",
" \n",
" @inbounds oVNeg=N_orient[E_source[i]]\n",
" @inbounds oVPos=N_orient[E_target[i]]\n",
" \n",
" @inbounds oldPos2=Vector3(E_pos2[i].x,E_pos2[i].y,E_pos2[i].z) #?copy?\n",
" @inbounds oldAngle1v = Vector3(E_angle1v[i].x,E_angle1v[i].y,E_angle1v[i].z)\n",
" @inbounds oldAngle2v = Vector3(E_angle2v[i].x,E_angle2v[i].y,E_angle2v[i].z)# remember the positions/angles from last timestep to calculate velocity\n",
" \n",
" \n",
" @inbounds E_pos2[i],E_angle1v[i],E_angle2v[i],E_angle1[i],E_angle2[i],totalRot= orientLink!(E_currentRestLength[i],pVNeg,pVPos,oVNeg,oVPos,E_axis[i])\n",
" \n",
" @inbounds dPos2 = Vector3(0.5,0.5,0.5) * (E_pos2[i]-oldPos2) #deltas for local damping. velocity at center is half the total velocity\n",
" @inbounds dAngle1 = Vector3(0.5,0.5,0.5) *(E_angle1v[i]-oldAngle1v)\n",
" @inbounds dAngle2 = Vector3(0.5,0.5,0.5) *(E_angle2v[i]-oldAngle2v)\n",
" \n",
" \n",
" @inbounds strain=(E_pos2[i].x/E_currentRestLength[i])\n",
" \n",
" positiveEnd=true\n",
" if axialStrain( positiveEnd,strain)>100.0\n",
" diverged=true\n",
" @cuprintln(\"DIVERGED!!!!!!!!!!\")\n",
" return \n",
" end\n",
" \n",
" @inbounds E = E_stiffness[i]\n",
" \n",
" \n",
" \n",
" @inbounds l = E_currentRestLength[i]\n",
" \n",
" \n",
" nu=0\n",
"# L = 5.0 #?? change!!!!!!\n",
" L=l\n",
" a1 = E*L # EA/L : Units of N/m\n",
" a2 = E * L*L*L / (12.0*(1+nu)) # GJ/L : Units of N-m\n",
" b1 = E*L # 12EI/L^3 : Units of N/m\n",
" b2 = E*L*L/2.0 # 6EI/L^2 : Units of N (or N-m/m: torque related to linear distance)\n",
" b3 = E*L*L*L/6.0 # 2EI/L : Units of N-m\n",
" \n",
" nu=0.35\n",
" W = 75\n",
"# L = W/sqrt(2)\n",
" l=L\n",
" n_min = 1\n",
" n_max = 7\n",
" # Cross Section inputs, must be floats\n",
" mass=125000 #before for voxel\n",
" mass=10\n",
" E = 2000 # MPa\n",
" G = E * 1 / 3 # MPa\n",
" h = 2.38 # mm\n",
" b = 2.38 # mm\n",
" rho = 7.85e-9 / 3 # kg/mm^3\n",
" S = h * b\n",
" Sy = (S * (6 + 12 * nu + 6 * nu^2)/ (7 + 12 * nu + 4 * nu^2))\n",
" # For solid rectangular cross section (width=b, depth=d & ( b < d )):\n",
" Q = 1 / 3 - 0.2244 / (min(h / b, b / h) + 0.1607)\n",
" Jxx = Q * min(h * b^3, b * h^3)\n",
" s=b\n",
" \n",
" MaxFreq2=E*s/mass\n",
" dt= 1/(6.283185*sqrt(MaxFreq2))\n",
"\n",
"\n",
" ##if voxels\n",
" #nu=0\n",
" #L=l\n",
" #a1 = E*L # EA/L : Units of N/m\n",
" #a2 = E * L*L*L / (12.0*(1+nu)) # GJ/L : Units of N-m\n",
" #b1 = E*L # 12EI/L^3 : Units of N/m\n",
" #b2 = E*L*L/2.0 # 6EI/L^2 : Units of N (or N-m/m: torque related to linear distance)\n",
" #b3 = E*L*L*L/6.0 # 2EI/L : Units of N-m\n",
"\n",
" I= b*h^3/12\n",
" J=b*h*(b*b+h*h)/12\n",
" a1=E*b*h/L\n",
" a2=G*J/L\n",
" b1=12*E*I/(L^3)\n",
" b2=6*E*I/(L^2)\n",
" b3=2*E*I/(L)\n",
" \n",
" \n",
"\n",
" \n",
" #inbounds currentTransverseArea=25.0 #?? change!!!!!! E_area[i]\n",
" @inbounds currentTransverseArea= b*h\n",
" @inbounds _stress=updateStrain(strain,E)\n",
" \n",
" #@inbounds currentTransverseArea= E_area[i]\n",
" #@inbounds _stress=updateStrain(strain,E_stiffness[i])\n",
" \n",
" @inbounds E_stress[i]=_stress\n",
" \n",
" #@cuprintln(\"_stress $_stress\")\n",
" x=(_stress*currentTransverseArea)\n",
" @inbounds y=(b1*E_pos2[i].y-b2*(E_angle1v[i].z + E_angle2v[i].z))\n",
" @inbounds z=(b1*E_pos2[i].z + b2*(E_angle1v[i].y + E_angle2v[i].y))\n",
" \n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" \n",
" # Use Curstress instead of -a1*Pos2.x to account for non-linear deformation \n",
" forceNeg = Vector3(x,y,z)\n",
" \n",
" forcePos = Vector3(-x,-y,-z)\n",
" \n",
" @inbounds x= (a2*(E_angle2v[i].x-E_angle1v[i].x))\n",
" @inbounds y= (-b2*E_pos2[i].z-b3*(2.0*E_angle1v[i].y+E_angle2v[i].y))\n",
" @inbounds z=(b2*E_pos2[i].y - b3*(2.0*E_angle1v[i].z + E_angle2v[i].z)) \n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" momentNeg = Vector3(x,y,z)\n",
" \n",
"\n",
" @inbounds x= (a2*(E_angle1v[i].x-E_angle2v[i].x))\n",
" @inbounds y= (-b2*E_pos2[i].z- b3*(E_angle1v[i].y+2.0*E_angle2v[i].y))\n",
" @inbounds z=(b2*E_pos2[i].y - b3*(E_angle1v[i].z + 2.0*E_angle2v[i].z))\n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" momentPos = Vector3(x,y,z)\n",
" \n",
" \n",
" ### damping\n",
" @inbounds if E_damp[i] #first pass no damping\n",
" sqA1=CUDAnative.sqrt(a1) \n",
" sqA2xIp=CUDAnative.sqrt(a2*L*L/6.0) \n",
" sqB1=CUDAnative.sqrt(b1) \n",
" sqB2xFMp=CUDAnative.sqrt(b2*L/2) \n",
" sqB3xIp=CUDAnative.sqrt(b3*L*L/6.0)\n",
" \n",
" dampingMultiplier=Vector3(28099.3,28099.3,28099.3) # 2*mat->_sqrtMass*mat->zetaInternal/previousDt;?? todo link to material\n",
" \n",
" zeta=1\n",
" dampingM= 2*sqrt(mass)*zeta/dt\n",
" dampingMultiplier=Vector3(dampingM,dampingM,dampingM)\n",
" \n",
" posCalc=Vector3(sqA1*dPos2.x, sqB1*dPos2.y - sqB2xFMp*(dAngle1.z+dAngle2.z),sqB1*dPos2.z + sqB2xFMp*(dAngle1.y+dAngle2.y))\n",
" \n",
" \n",
" forceNeg =forceNeg + (dampingMultiplier*posCalc);\n",
" forcePos =forcePos - (dampingMultiplier*posCalc);\n",
"\n",
" momentNeg -= Vector3(0.5,0.5,0.5)*dampingMultiplier*Vector3(-sqA2xIp*(dAngle2.x - dAngle1.x),\n",
" sqB2xFMp*dPos2.z + sqB3xIp*(2*dAngle1.y + dAngle2.y),\n",
" -sqB2xFMp*dPos2.y + sqB3xIp*(2*dAngle1.z + dAngle2.z));\n",
" momentPos -= Vector3(0.5,0.5,0.5)*dampingMultiplier*Vector3(sqA2xIp*(dAngle2.x - dAngle1.x),\n",
" sqB2xFMp*dPos2.z + sqB3xIp*(dAngle1.y + 2*dAngle2.y),\n",
" -sqB2xFMp*dPos2.y + sqB3xIp*(dAngle1.z + 2*dAngle2.z));\n",
"\n",
" else\n",
" @inbounds E_damp[i]=true \n",
" end\n",
"\n",
" smallAngle=true\n",
" if !smallAngle # ?? check\n",
" @inbounds forceNeg = RotateVec3DInv(E_angle1[i],forceNeg)\n",
" @inbounds momentNeg = RotateVec3DInv(E_angle1[i],momentNeg)\n",
" end\n",
" \n",
" @inbounds forcePos = RotateVec3DInv(E_angle2[i],forcePos)\n",
" @inbounds momentPos = RotateVec3DInv(E_angle2[i],momentPos)\n",
"\n",
" @inbounds forceNeg =toAxisOriginalVector3(forceNeg,E_axis[i])\n",
" @inbounds forcePos =toAxisOriginalVector3(forcePos,E_axis[i])\n",
"\n",
" @inbounds momentNeg=toAxisOriginalQuat(momentNeg,E_axis[i])# TODOO CHECKKKKKK\n",
" @inbounds momentPos=toAxisOriginalQuat(momentPos,E_axis[i])\n",
"\n",
"\n",
" @inbounds E_intForce1[i] =forceNeg\n",
" @inbounds E_intForce2[i] =forcePos\n",
" \n",
"\n",
"\n",
" @inbounds x= momentNeg.x\n",
" @inbounds y= momentNeg.y\n",
" @inbounds z= momentNeg.z \n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" \n",
" @inbounds E_intMoment1[i]=Vector3(x,y,z)\n",
"\n",
" @inbounds x= momentNeg.x\n",
" @inbounds y= momentNeg.y\n",
" @inbounds z= momentNeg.z\n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" \n",
" @inbounds E_intMoment2[i]=Vector3(x,y,z)\n",
" \n",
" #x=E_pos2[i].x*10000000000\n",
" #y=E_pos2[i].y*10000000000\n",
" #z=E_pos2[i].z*10000000000\n",
" #@cuprintln(\"pos2 x $x, y $y, z $z \")\n",
" ##x=E_intMoment2[i].x*10000000000\n",
" #y=E_intMoment2[i].y*10000000000\n",
" #z=E_intMoment2[i].z*10000000000\n",
" #@cuprintln(\"E_intMoment2 x $x, y $y, z $z \")\n",
"\n",
" \n",
" \n",
" end\n",
" return\n",
"end\n",
"\n",
"function run_updateEdges!(E_source,E_target,E_area,E_density,E_stiffness,\n",
" E_stress,E_axis,E_currentRestLength,E_pos2,E_angle1v,E_angle2v,\n",
" E_angle1,E_angle2,E_intForce1,E_intMoment1,E_intForce2,E_intMoment2,\n",
" E_damp,N_currPosition,N_orient)\n",
" N=length(E_source)\n",
" numblocks = ceil(Int, N/256)\n",
" CuArrays.@sync begin\n",
" @cuda threads=256 blocks=numblocks updateEdges!(E_source,E_target,E_area,E_density,\n",
" E_stiffness,E_stress,E_axis,E_currentRestLength,E_pos2,E_angle1v,\n",
" E_angle2v,E_angle1,E_angle2,E_intForce1,E_intMoment1,E_intForce2,\n",
" E_intMoment2,E_damp,N_currPosition,N_orient)\n",
" end\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"run_updateNodes! (generic function with 1 method)"
]
},
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function updateNodes!(dt,currentTimeStep,N_position, N_restrained,N_displacement,N_angle,N_currPosition,N_linMom,N_angMom,N_intForce,N_intMoment,N_force,N_moment,N_orient,N_edgeID,N_edgeFirst,E_intForce1,E_intMoment1,E_intForce2,E_intMoment2)\n",
"\n",
" index = (blockIdx().x - 1) * blockDim().x + threadIdx().x\n",
" stride = blockDim().x * gridDim().x\n",
" ## @cuprintln(\"thread $index, block $stride\")\n",
" N,M=size(N_edgeID)\n",
" for i = index:stride:N\n",
" @inbounds if N_restrained[i]\n",
" return\n",
" else\n",
" for j in 1:M\n",
" temp=N_edgeID[i,j]\n",
" @inbounds if (N_edgeID[i,j]!=-1)\n",
" #@cuprintln(\"i $i, j $j, N_edgeID[i,j] $temp\")\n",
" @inbounds N_intForce[i]=ifelse(N_edgeFirst[i,j], N_intForce[i]+E_intForce1[N_edgeID[i,j]], N_intForce[i]+E_intForce2[N_edgeID[i,j]] )\n",
" @inbounds N_intMoment[i]=ifelse(N_edgeFirst[i,j], N_intMoment[i]+E_intMoment1[N_edgeID[i,j]], N_intMoment[i]+E_intMoment2[N_edgeID[i,j]] )\n",
" end\n",
" end\n",
" @inbounds curForce = force(N_intForce[i],N_orient[i],N_force[i],true,currentTimeStep)\n",
" \n",
" #@inbounds N_force[i]=Vector3(0,0,0) ##????\n",
" \n",
" @inbounds N_intForce[i]=Vector3(0,0,0)\n",
" \n",
" #x=curForce.x\n",
" #y=curForce.y\n",
" #z=curForce.z\n",
" #@cuprintln(\"curForce x $x, y $y, z $z \")\n",
" \n",
" #x=N_linMom[i].x*10000000000\n",
" #y=N_linMom[i].y*10000000000\n",
" #z=N_linMom[i].z*10000000000\n",
" #@cuprintln(\"N_linMom[i] x $x, y $y, z $z \")\n",
" \n",
" \n",
" @inbounds N_linMom[i]=N_linMom[i]+curForce*Vector3(dt,dt,dt) #todo make sure right\n",
" massInverse=8e-6 # todo ?? later change //8e-6\n",
" mass=10\n",
" massInverse=1.0/mass #\n",
" @inbounds translate=N_linMom[i]*Vector3((dt*massInverse),(dt*massInverse),(dt*massInverse)) # ??massInverse\n",
" \n",
" #x=translate.x*10000000000\n",
" #y=translate.y*10000000000\n",
" #z=translate.z*10000000000\n",
" #@cuprintln(\"translate x $x, y $y, z $z \")\n",
" \n",
" @inbounds N_currPosition[i]=N_currPosition[i]+translate\n",
" @inbounds N_displacement[i]=N_displacement[i]+translate\n",
" \n",
" \n",
" \n",
" # Rotation\n",
" @inbounds curMoment = moment(N_intMoment[i],N_orient[i],N_moment[i]) \n",
" \n",
" \n",
" \n",
" @inbounds N_intMoment[i]=Vector3(0,0,0) # do i really need it?\n",
" \n",
" @inbounds N_angMom[i]=N_angMom[i]+curMoment*Vector3(dt,dt,dt)\n",
" \n",
" \n",
" \n",
" \n",
" momentInertiaInverse=1.92e-6 # todo ?? later change 1/Inertia (1/(kg*m^2))\n",
" \n",
" \n",
" @inbounds temp=FromRotationVector(N_angMom[i]*Vector3((dt*momentInertiaInverse),(dt*momentInertiaInverse),(dt*momentInertiaInverse)))\n",
" \n",
" \n",
" #x=temp.x*10000000000\n",
" #y=temp.y*10000000000\n",
" #z=temp.z*10000000000\n",
" #@cuprintln(\"temp x $x, y $y, z $z \")\n",
" \n",
" @inbounds N_orient[i]=multiplyQuaternions(temp,N_orient[i])\n",
" \n",
" #@inbounds x= N_orient[i].x*temp.x\n",
" #@inbounds y= N_orient[i].y*temp.y\n",
" #@inbounds z= N_orient[i].z*temp.z\n",
" #@inbounds w= N_orient[i].w*temp.w\n",
" #x=convert(Float64,x)\n",
" #y=convert(Float64,y)\n",
" #z=convert(Float64,z)\n",
" #w=convert(Float64,w)\n",
" \n",
" #@inbounds N_orient[i]=Quaternion(x,y,z,w)\n",
" \n",
" #x=N_orient[i].x*10000000000\n",
" #y=N_orient[i].y*10000000000\n",
" #z=N_orient[i].z*10000000000\n",
" #w=N_orient[i].w\n",
" #@cuprintln(\"N_orient x $x, y $y, z $z, w $w \")\n",
" \n",
" \n",
" end\n",
" end\n",
" return\n",
"end\n",
"\n",
"\n",
"function run_updateNodes!(dt,currentTimeStep,N_position, N_restrained,N_displacement, N_angle,N_currPosition,N_linMom,N_angMom,N_intForce,N_intMoment,N_force,N_moment,N_orient,N_edgeID,N_edgeFirst,E_intForce1,E_intMoment1,E_intForce2,E_intMoment2)\n",
" N=length(N_intForce)\n",
" numblocks = ceil(Int, N/256)\n",
" CuArrays.@sync begin\n",
" @cuda threads=256 blocks=numblocks updateNodes!(dt,currentTimeStep,N_position, N_restrained,N_displacement, N_angle,N_currPosition,N_linMom,N_angMom,N_intForce,N_intMoment,N_force,N_moment,N_orient,N_edgeID,N_edgeFirst,E_intForce1,E_intMoment1,E_intForce2,E_intMoment2)\n",
" end\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"orientLink! (generic function with 1 method)"
]
},
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function orientLink!(currentRestLength,pVNeg,pVPos,oVNeg,oVPos,axis) # updates pos2, angle1, angle2, and smallAngle //Quat3D<double> /*double restLength*/\n",
" \n",
" pos2 = toAxisXVector3(pVPos-pVNeg,axis) # digit truncation happens here...\n",
" angle1 = toAxisXQuat(oVNeg,axis)\n",
" angle2 = toAxisXQuat(oVPos,axis)\n",
" \n",
" #x=pos2.x*10000000000\n",
" #y=pos2.y*10000000000\n",
" #z=pos2.z*10000000000\n",
" #@cuprintln(\"pos2 x $x, y $y, z $z \")\n",
" \n",
" #x=angle1.x*10000000000\n",
" #y=angle1.y*10000000000\n",
" #z=angle1.z*10000000000\n",
" #@cuprintln(\"angle1 x $x, y $y, z $z \")\n",
" #x=oVNeg.x*10000000000\n",
" #y=oVNeg.y*10000000000\n",
" #z=oVNeg.z*10000000000\n",
" #@cuprintln(\"oVNeg x $x, y $y, z $z \")\n",
" \n",
" \n",
" \n",
" totalRot = conjugate(angle1) #keep track of the total rotation of this bond (after toAxisX()) # Quat3D<double>\n",
" pos2 = RotateVec3D(totalRot,pos2)\n",
" \n",
" #x=pos2.x*10000000000\n",
" #y=pos2.y*10000000000\n",
" #z=pos2.z*10000000000\n",
" #@cuprintln(\"pos2 2 x $x, y $y, z $z \")\n",
" \n",
" \n",
" #x=totalRot.x*10000000000\n",
" #y=totalRot.y*10000000000\n",
" #z=totalRot.z*10000000000\n",
" #@cuprintln(\"totalRot x $x, y $y, z $z \")\n",
" \n",
" \n",
"# x=pos2.x*10000000000\n",
"# y=pos2.y*10000000000\n",
"# z=pos2.z*10000000000\n",
"# @cuprintln(\"pos2 x $x, y $y, z $z \")\n",
" \n",
" angle2 = Quaternion(angle2.x*totalRot.x,angle2.y*totalRot.y,angle2.z*totalRot.z,angle2.w*totalRot.w)\n",
" angle1 = Quaternion(0.0,0.0,0.0,1.0)#new THREE.Quaternion() #zero for now...\n",
"\n",
" smallAngle=true #todo later remove\n",
" \n",
" \n",
" if (smallAngle)\t #Align so Angle1 is all zeros\n",
" #pos2[1] =pos2[1]- currentRestLength #only valid for small angles\n",
" pos2=Vector3(pos2.x-currentRestLength,pos2.y,pos2.z)\n",
" else #Large angle. Align so that Pos2.y, Pos2.z are zero.\n",
" # FromAngleToPosX(angle1,pos2) #get the angle to align Pos2 with the X axis\n",
" # totalRot = angle1.clone().multiply(totalRot) #update our total rotation to reflect this\n",
" # angle2 = angle1.clone().multiply( angle2) #rotate angle2\n",
" # pos2 = new THREE.Vector3(pos2.length() - currentRestLength, 0, 0);\n",
" end\n",
" \n",
" angle1v = ToRotationVector(angle1)\n",
" angle2v = ToRotationVector(angle2)\n",
" \n",
" \n",
" \n",
" \n",
"# pos2,angle1v,angle2v,angle1,angle2,\n",
" return pos2,angle1v,angle2v,angle1,angle2,totalRot\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"toAxisOriginalQuat (generic function with 1 method)"
]
},
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function toAxisXVector3(pV::Vector3,axis::Vector3) #TODO CHANGE\n",
"\n",
" xaxis=Vector3(1.0,0.0,0.0)\n",
"\n",
" vector=normalizeVector3(axis)\n",
" q=setFromUnitVectors(vector,xaxis)\n",
" \n",
" \n",
" \n",
"# rot=setFromRotationMatrix(quatToMatrix( q ))\n",
" \n",
" \n",
"# v= applyQuaternion1( pV ,setQuaternionFromEuler(rot) )\n",
" v=applyQuaternion1( pV ,q )\n",
" \n",
" #d=15\n",
" #vx=round(v.x, digits=d)\n",
" #vy=round(v.y, digits=d)\n",
" #vz=round(v.z, digits=d)\n",
" \n",
" \n",
" return Vector3(v.x,v.y,v.z)\n",
"end\n",
"\n",
"function toAxisOriginalVector3(pV::Vector3,axis::Vector3)\n",
" \n",
" xaxis=Vector3(1.0,0.0,0.0)\n",
"\n",
" vector=normalizeVector3(axis)\n",
"\n",
" q=setFromUnitVectors(xaxis,vector)\n",
" \n",
"\n",
"# rot=setFromRotationMatrix(quatToMatrix( q ))\n",
"\n",
"# v= applyQuaternion1( pV ,setQuaternionFromEuler(rot) )\n",
" v=applyQuaternion1( pV ,q )\n",
" \n",
" #d=15\n",
" #vx=round(v.x, digits=d)\n",
" #vy=round(v.y, digits=d)\n",
" #vz=round(v.z, digits=d)\n",
" \n",
" \n",
" return Vector3(v.x,v.y,v.z)\n",
"end\n",
"\n",
"function toAxisXQuat(pQ::Quaternion,axis::Vector3)\n",
" \n",
" xaxis=Vector3(1.0,0.0,0.0)\n",
"\n",
" vector=normalizeVector3(axis)\n",
"\n",
"\n",
" q=setFromUnitVectors(vector,xaxis)\n",
" \n",
" #d=17\n",
" #qw=round(q[1], digits=d)\n",
" #qx=round(q[2], digits=d)\n",
" #qy=round(q[3], digits=d)\n",
" #qz=round(q[4], digits=d)\n",
" #\n",
"\n",
"# rot=setFromRotationMatrix(quatToMatrix( q ))\n",
" \n",
" pV=Vector3(pQ.x,pQ.y,pQ.z)\n",
" \n",
"# v=applyQuaternion1( pV ,setQuaternionFromEuler(rot) )\n",
" v=applyQuaternion1( pV ,q )\n",
" \n",
" #d=15\n",
" #vx=round(v.x, digits=d)\n",
" #vy=round(v.y, digits=d)\n",
" #vz=round(v.z, digits=d)\n",
" \n",
" return Quaternion(v.x,v.y,v.z,1.0)\n",
" \n",
" # return [1.0 v[1] v[2] v[3]]\n",
"end\n",
"\n",
"function toAxisOriginalQuat(pQ::Vector3,axis::Vector3)\n",
" xaxis=Vector3(1.0,0.0,0.0)\n",
"\n",
" vector=normalizeVector3(axis)\n",
" \n",
" q=setFromUnitVectors(xaxis,vector)\n",
" \n",
"\n",
"# rot=setFromRotationMatrix(quatToMatrix( q ))\n",
" \n",
" pV=Vector3(pQ.x,pQ.y,pQ.z)\n",
"# v=applyQuaternion1( pV ,setQuaternionFromEuler(rot) )\n",
" v=applyQuaternion1( pV ,q )\n",
" \n",
" #d=15\n",
" #vx=round(v.x, digits=d)\n",
" #vy=round(v.y, digits=d)\n",
" #vz=round(v.z, digits=d)\n",
" \n",
" return Quaternion(v.x,v.y,v.z,1.0)\n",
" \n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"applyQuaternion1 (generic function with 1 method)"
]
},
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function setFromUnitVectors(vFrom::Vector3, vTo::Vector3)\n",
" # assumes direction vectors vFrom and vTo are normalized\n",
" EPS = 0.000000001;\n",
" r= dotVector3(vFrom,vTo)+1.0\n",
" # r = dot(vFrom,vTo)+1\n",
"\n",
" if r < EPS\n",
" r = 0;\n",
" if abs( vFrom.x ) > abs( vFrom.z ) \n",
" qx = - vFrom.y\n",
" qy = vFrom.x\n",
" qz = 0.0\n",
" qw = r\n",
" else \n",
" qx = 0.0\n",
" qy = -(vFrom.z)\n",
" qz = vFrom.y\n",
" qw = r\n",
" end\n",
" else \n",
" # crossVectors( vFrom, vTo ); // inlined to avoid cyclic dependency on Vector3\n",
" qx = vFrom.y * vTo.z - vFrom.z * vTo.y\n",
" qy = vFrom.z * vTo.x - vFrom.x * vTo.z\n",
" qz = vFrom.x * vTo.y - vFrom.y * vTo.x\n",
" qw = r\n",
"\n",
" end\n",
" qx= (qx==-0.0) ? 0.0 : qx\n",
" qy= (qy==-0.0) ? 0.0 : qy\n",
" qz= (qz==-0.0) ? 0.0 : qz\n",
" qw= (qw==-0.0) ? 0.0 : qw\n",
" \n",
" \n",
" mx=qx*qx\n",
" my=qy*qy\n",
" mz=qz*qz\n",
" mw=qw*qw\n",
" mm=mx+my\n",
" mm=mm+mz\n",
" mm=mm+mw\n",
" mm=convert(Float64,mm)#??????????????????? todo check later\n",
" \n",
" l=CUDAnative.sqrt(mm)\n",
" \n",
" #l = sqrt((qx * qx) + (qy * qy) + (qz * qz)+ (qw * qw))\n",
" if l === 0 \n",
" qx = 0.0\n",
" qy = 0.0\n",
" qz = 0.0\n",
" qw = 1.0\n",
" else \n",
" l = 1.0 / l\n",
" qx = qx * l\n",
" qy = qy * l\n",
" qz = qz * l\n",
" qw = qw * l\n",
" end\n",
" \n",
" \n",
"\n",
" # return qx,qy,qz,qw\n",
" return Quaternion(qx,qy,qz,qw)\n",
" \n",
" # return normalizeQ(Quat(qw,qx,qy,qz))\n",
" # return Quat(nn[1], nn[2], nn[3], nn[4])\n",
"\n",
"end\n",
"\n",
"function quatToMatrix( quaternion::Quaternion)\n",
"\n",
" #te = RotationMatrix()\n",
" \n",
" x = quaternion.x\n",
" y = quaternion.y\n",
" z = quaternion.z\n",
" w = quaternion.w\n",
" \n",
" x2 = x + x\n",
" y2 = y + y\n",
" z2 = z + z\n",
" xx = x * x2\n",
" xy = x * y2\n",
" xz = x * z2\n",
" yy = y * y2\n",
" yz = y * z2\n",
" zz = z * z2\n",
" wx = w * x2\n",
" wy = w * y2\n",
" wz = w * z2\n",
"\n",
" sx = 1.0\n",
" sy = 1.0\n",
" sz = 1.0\n",
"\n",
" te1 = ( 1.0 - ( yy + zz ) ) * sx\n",
" te2 = ( xy + wz ) * sx\n",
" te3 = ( xz - wy ) * sx\n",
" te4 = 0.0\n",
"\n",
" te5 = ( xy - wz ) * sy\n",
" te6 = ( 1.0 - ( xx + zz ) ) * sy\n",
" te7 = ( yz + wx ) * sy\n",
" te8 = 0.0\n",
"\n",
" te9 = ( xz + wy ) * sz\n",
" te10 = ( yz - wx ) * sz\n",
" te11 = ( 1.0 - ( xx + yy ) ) * sz\n",
" te12 = 0.0\n",
"\n",
" te13 = 0.0 #position.x;\n",
" te14 = 0.0 #position.y;\n",
" te15 = 0.0 #position.z;\n",
" te16 = 1.0\n",
" \n",
" \n",
" te= RotationMatrix(te1,te2,te3,te4,te5,te6,te7,te8,te9,te10,te11,te12,te13,te14,te15,te16)\n",
"\n",
" return te\n",
"\n",
"end\n",
"\n",
"function setFromRotationMatrix(m::RotationMatrix)\n",
" #te = m\n",
" #m11 = (te[ 1 ]== -0.0) ? 0.0 : te[ 1 ]\n",
" #m12 = (te[ 5 ]== -0.0) ? 0.0 : te[ 5 ]\n",
" #m13 = (te[ 9 ]== -0.0) ? 0.0 : te[ 9 ]\n",
" #m21 = (te[ 2 ]== -0.0) ? 0.0 : te[ 2 ]\n",
" #m22 = (te[ 6 ]== -0.0) ? 0.0 : te[ 6 ]\n",
" #m23 = (te[ 10]== -0.0) ? 0.0 : te[ 10]\n",
" #m31 = (te[ 3 ]== -0.0) ? 0.0 : te[ 3 ]\n",
" #m32 = (te[ 7 ]== -0.0) ? 0.0 : te[ 7 ]\n",
" #m33 = (te[ 11]== -0.0) ? 0.0 : te[ 11]\n",
"\n",
" m11 = convert(Float64,m.te1 )\n",
" m12 = convert(Float64,m.te5 )\n",
" m13 = convert(Float64,m.te9 )\n",
" m21 = convert(Float64,m.te2 )\n",
" m22 = convert(Float64,m.te6 )\n",
" m23 = convert(Float64,m.te10)\n",
" m31 = convert(Float64,m.te3 )\n",
" m32 = convert(Float64,m.te7 )\n",
" m33 = convert(Float64,m.te11)\n",
" \n",
"\n",
" y = CUDAnative.asin( clamp( m13, -1.0, 1.0 ) ) ##check if has to be changed to cuda\n",
"\n",
" if ( abs( m13 ) < 0.9999999999 ) \n",
" \n",
" x = CUDAnative.atan2( - m23, m33 )\n",
" z = CUDAnative.atan2( - m12, m11 )#-m12, m11\n",
" # if(m23==0.0)\n",
" # x = atan( m23, m33 )\n",
" # end\n",
" # if(m12==0.0)\n",
" # z = atan( m12, m11 )\n",
" # end\n",
"\n",
" else\n",
"\n",
" x = CUDAnative.atan2( m32, m22 )\n",
" z = 0.0;\n",
"\n",
" end\n",
" \n",
" \n",
" return Vector3(x,y,z)\n",
" \n",
"end\n",
"\n",
"function setQuaternionFromEuler(euler::Vector3)\n",
" x=euler.x\n",
" y=euler.y\n",
" z=euler.z\n",
" \n",
" \n",
" c1 = CUDAnative.cos( x / 2.0 )\n",
" c2 = CUDAnative.cos( y / 2.0 )\n",
" c3 = CUDAnative.cos( z / 2.0 )\n",
"\n",
" s1 = CUDAnative.sin( x / 2.0 )\n",
" s2 = CUDAnative.sin( y / 2.0 )\n",
" s3 = CUDAnative.sin( z / 2.0 )\n",
" \n",
" \n",
" x = s1 * c2 * c3 + c1 * s2 * s3\n",
" y = c1 * s2 * c3 - s1 * c2 * s3\n",
" z = c1 * c2 * s3 + s1 * s2 * c3\n",
" w = c1 * c2 * c3 - s1 * s2 * s3\n",
" \n",
" return Quaternion(x,y,z,w)\n",
"end\n",
"\n",
"function applyQuaternion1(e::Vector3,q2::Quaternion)\n",
" x = e.x\n",
" y = e.y\n",
" z = e.z\n",
"\n",
" qx = q2.x\n",
" qy = q2.y\n",
" qz = q2.z\n",
" qw = q2.w\n",
"\n",
" # calculate quat * vector\n",
"\n",
" ix = qw * x + qy * z - qz * y\n",
" iy = qw * y + qz * x - qx * z\n",
" iz = qw * z + qx * y - qy * x\n",
" iw = - qx * x - qy * y - qz * z\n",
"\n",
" # calculate result * inverse quat\n",
"\n",
" xx = ix * qw + iw * - qx + iy * - qz - iz * - qy\n",
" yy = iy * qw + iw * - qy + iz * - qx - ix * - qz\n",
" zz = iz * qw + iw * - qz + ix * - qy - iy * - qx\n",
" \n",
" d=15\n",
"\n",
" return Vector3(xx,yy,zz)\n",
"end\n"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"multiplyQuaternions (generic function with 1 method)"
]
},
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function conjugate(q::Quaternion)\n",
" x= (-q.x==-0) ? 0.0 : -q.x\n",
" y= (-q.y==-0) ? 0.0 : -q.y\n",
" z= (-q.z==-0) ? 0.0 : -q.z\n",
" w=q.w\n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" w=convert(Float64,w)\n",
" return Quaternion(x,y,z,w)\n",
"end\n",
"\n",
"function RotateVec3D(a::Quaternion, f::Vector3) \n",
" fx= (f.x==-0) ? 0 : f.x\n",
" fy= (f.y==-0) ? 0 : f.y\n",
" fz= (f.z==-0) ? 0 : f.z\n",
" # fx= f.x\n",
" # fy= f.y\n",
" # fz= f.z\n",
" tw = fx*a.x + fy*a.y + fz*a.z\n",
" tx = fx*a.w - fy*a.z + fz*a.y\n",
" ty = fx*a.z + fy*a.w - fz*a.x\n",
" tz = -fx*a.y + fy*a.x + fz*a.w\n",
"\n",
" return Vector3((a.w*tx+a.x*tw+a.y*tz-a.z*ty),(a.w*ty-a.x*tz+a.y*tw+a.z*tx),(a.w*tz+a.x*ty-a.y*tx+a.z*tw))\n",
"end\n",
"#!< Returns a vector representing the specified vector \"f\" rotated by this quaternion. @param[in] f The vector to transform.\n",
"\n",
"function RotateVec3DInv(a::Quaternion, f::Vector3) \n",
" fx=f.x\n",
" fy=f.y\n",
" fz=f.z\n",
" tw = a.x*fx + a.y*fy + a.z*fz\n",
" tx = a.w*fx - a.y*fz + a.z*fy\n",
" ty = a.w*fy + a.x*fz - a.z*fx\n",
" tz = a.w*fz - a.x*fy + a.y*fx\n",
" return Vector3((tw*a.x + tx*a.w + ty*a.z - tz*a.y),(tw*a.y - tx*a.z + ty*a.w + tz*a.x),(tw*a.z + tx*a.y - ty*a.x + tz*a.w))\n",
"end\n",
"#!< Returns a vector representing the specified vector \"f\" rotated by the inverse of this quaternion. This is the opposite of RotateVec3D. @param[in] f The vector to transform.\n",
"\n",
"function ToRotationVector(a::Quaternion) \n",
" if (a.w >= 1.0 || a.w <= -1.0) \n",
" return Vector3(0.0,0.0,0.0)\n",
" end\n",
" squareLength = 1.0-a.w*a.w; # because x*x + y*y + z*z + w*w = 1.0, but more susceptible to w noise (when \n",
" SLTHRESH_ACOS2SQRT= 2.4e-3; # SquareLength threshhold for when we can use square root optimization for acos. From SquareLength = 1-w*w. (calculate according to 1.0-W_THRESH_ACOS2SQRT*W_THRESH_ACOS2SQRT\n",
"\n",
" if (squareLength < SLTHRESH_ACOS2SQRT) # ???????\n",
" x=a.x*(2.0*CUDAnative.sqrt((2-2*a.w)/squareLength))\n",
" y=a.y*(2.0*CUDAnative.sqrt((2-2*a.w)/squareLength))\n",
" z=a.z*(2.0*CUDAnative.sqrt((2-2*a.w)/squareLength))\n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
" \n",
" return Vector3(x,y,z) ; # acos(w) = sqrt(2*(1-x)) for w close to 1. for w=0.001, error is 1.317e-6\n",
" else \n",
" x=a.x*(2.0*CUDAnative.acos(a.w)/CUDAnative.sqrt(squareLength))\n",
" y=a.y*(2.0*CUDAnative.acos(a.w)/CUDAnative.sqrt(squareLength))\n",
" z=a.z*(2.0*CUDAnative.acos(a.w)/CUDAnative.sqrt(squareLength))\n",
" x=convert(Float64,x)\n",
" y=convert(Float64,y)\n",
" z=convert(Float64,z)\n",
"\n",
" return Vector3(x,y,z)\n",
" end \n",
"end \n",
"# !< Returns a rotation vector representing this quaternion rotation. Adapted from http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/\n",
"\n",
"function FromRotationVector(VecIn::Vector3)\n",
" theta=VecIn*Vector3(0.5,0.5,0.5)\n",
" ntheta=CUDAnative.sqrt((theta.x * theta.x) + (theta.y * theta.y) + (theta.z * theta.z))\n",
" thetaMag2=ntheta*ntheta\n",
" \n",
" DBL_EPSILONx24 =5.328e-15\n",
" if thetaMag2*thetaMag2 < DBL_EPSILONx24\n",
" qw=1.0 - 0.5*thetaMag2\n",
"\t\ts=1.0 - thetaMag2 / 6.0\n",
" else\n",
" thetaMag = CUDAnative.sqrt(thetaMag2)\n",
"\t\tqw=CUDAnative.cos(thetaMag)\n",
"\t\ts=CUDAnative.sin(thetaMag) / thetaMag\n",
" end\n",
" qx=theta.x*s\n",
" qy=theta.y*s\n",
" qz=theta.z*s\n",
" \n",
" qx=convert(Float64,qx)\n",
" qy=convert(Float64,qy)\n",
" qz=convert(Float64,qz)\n",
" qw=convert(Float64,qw)\n",
" \n",
" return Quaternion(qx,qy,qz,qw)\n",
"end\n",
"\n",
"function multiplyQuaternions(q::Quaternion,f::Quaternion)\n",
" x=q.x\n",
" y=q.y\n",
" z=q.z\n",
" w=q.w\n",
" x1=w*f.x + x*f.w + y*f.z - z*f.y \n",
" y1=w*f.y - x*f.z + y*f.w + z*f.x\n",
" z1=w*f.z + x*f.y - y*f.x + z*f.w\n",
" w1=w*f.w - x*f.x - y*f.y - z*f.z\n",
"# x1=convert(Float64,x1)\n",
"# y1=convert(Float64,y1)\n",
"# z1=convert(Float64,z1)\n",
"# w1=convert(Float64,w1)\n",
"\treturn Quaternion(x1,y1,z1,w1 ); #!< overload quaternion multiplication.\n",
"end\n"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"axialStrain (generic function with 1 method)"
]
},
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function updateStrain( axialStrain,E) # ?from where strain\n",
" strain = axialStrain # redundant?\n",
" currentTransverseStrainSum=0.0 # ??? todo\n",
" linear=true\n",
" maxStrain=1000000000000000;# ?? todo later change\n",
" if linear\n",
" if axialStrain > maxStrain\n",
" maxStrain = axialStrain # remember this maximum for easy reference\n",
" end\n",
" return stress(axialStrain,E)\n",
" else \n",
" if (axialStrain > maxStrain) # if new territory on the stress/strain curve\n",
" maxStrain = axialStrain # remember this maximum for easy reference\n",
" returnStress = stress(axialStrain,E) # ??currentTransverseStrainSum\n",
" if (nu != 0.0) \n",
" strainOffset = maxStrain-stress(axialStrain,E)/(_eHat*(1.0-nu)) # precalculate strain offset for when we back off\n",
" else \n",
" strainOffset = maxStrain-returnStress/E # precalculate strain offset for when we back off\n",
" end\n",
" else # backed off a non-linear material, therefore in linear region.\n",
" relativeStrain = axialStrain-strainOffset # treat the material as linear with a strain offset according to the maximum plastic deformation\n",
" if (nu != 0.0) \n",
" returnStress = stress(relativeStrain,E)\n",
" else \n",
" returnStress = E*relativeStrain\n",
" end\n",
" end\n",
" return returnStress\n",
" end\n",
"end\n",
"\n",
"function stress( strain , E ) #end,transverseStrainSum, forceLinear){\n",
" # reference: http://www.colorado.edu/engineering/CAS/courses.d/Structures.d/IAST.Lect05.d/IAST.Lect05.pdf page 10\n",
" # if (isFailed(strain)) return 0.0f; //if a failure point is set and exceeded, we've broken!\n",
" # var E =setup.edges[0].stiffness; //todo change later to material ??\n",
" # var E=1000000;//todo change later to material ??\n",
" # var scaleFactor=1;\n",
" return E*strain;\n",
"\n",
" # # if (strain <= strainData[1] || linear || forceLinear){ //for compression/first segment and linear materials (forced or otherwise), simple calculation\n",
"\n",
" # if (nu==0.0) return E*strain;\n",
" # else return _eHat*((1-nu)*strain + nu*transverseStrainSum); \n",
" # else return eHat()*((1-nu)*strain + nu*transverseStrainSum); \n",
" # # }\n",
"\n",
" #//the non-linear feature with non-zero poissons ratio is currently experimental\n",
" #int DataCount = modelDataPoints();\n",
" #for (int i=2; i<DataCount; i++){ //go through each segment in the material model (skipping the first segment because it has already been handled.\n",
" # if (strain <= strainData[i] || i==DataCount-1){ //if in the segment ending with this point (or if this is the last point extrapolate out) \n",
" # float Perc = (strain-strainData[i-1])/(strainData[i]-strainData[i-1]);\n",
" # float basicStress = stressData[i-1] + Perc*(stressData[i]-stressData[i-1]);\n",
" # if (nu==0.0f) return basicStress;\n",
" # else { //accounting for volumetric effects\n",
" # float modulus = (stressData[i]-stressData[i-1])/(strainData[i]-strainData[i-1]);\n",
" # float modulusHat = modulus/((1-2*nu)*(1+nu));\n",
" # float effectiveStrain = basicStress/modulus; //this is the strain at which a simple linear stress strain line would hit this point at the definied modulus\n",
" # float effectiveTransverseStrainSum = transverseStrainSum*(effectiveStrain/strain);\n",
" # return modulusHat*((1-nu)*effectiveStrain + nu*effectiveTransverseStrainSum);\n",
" # }\n",
" # }\n",
" #}\n",
"\n",
" # assert(false); //should never reach this point\n",
" # return 0.0f;\n",
"end \n",
"\n",
"function axialStrain( positiveEnd,strain)\n",
"\t#strainRatio = pVPos->material()->E/pVNeg->material()->E;\n",
"\tstrainRatio=1.0;\n",
"\treturn positiveEnd ? 2.0 *strain*strainRatio/(1.0+strainRatio) : 2.0*strain/(1.0+strainRatio)\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"moment (generic function with 1 method)"
]
},
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function force(N_intForce,N_orient,N_force,static,currentTimeStep) \n",
" # forces from internal bonds\n",
" totalForce=Vector3(0,0,0)\n",
" # new THREE.Vector3(node.force.x,node.force.y,node.force.z);\n",
" # todo \n",
"\n",
"\n",
" totalForce=totalForce+N_intForce\n",
"\n",
" # for (int i=0; i<6; i++){ \n",
" # \tif (links[i]) totalForce += links[i]->force(isNegative((linkDirection)i)); # total force in LCS\n",
" # }\n",
" totalForce = RotateVec3D(N_orient,totalForce); # from local to global coordinates\n",
"\n",
"\n",
" # assert(!(totalForce.x != totalForce.x) || !(totalForce.y != totalForce.y) || !(totalForce.z != totalForce.z)); //assert non QNAN\n",
"\n",
" # other forces\n",
" if(static)\n",
" totalForce=totalForce+N_force\n",
" # }else if(currentTimeStep<50){\n",
" # \ttotalForce.add(new THREE.Vector3(node.force.x,node.force.y,node.force.z));\n",
" else\n",
" # var ex=0.1;\n",
" # if(node.force.y!=0){\n",
" # \tvar f=400*Math.sin(currentTimeStep*ex);\n",
" # \ttotalForce.add(new THREE.Vector3(0,f,0));\n",
"\n",
" # }\n",
" #x=N_position[node][3]\n",
" #t=currentTimeStep\n",
" #wave=getForce(x,t)\n",
" #totalForce=totalForce+[0 wave 0]\n",
" end\n",
"\n",
"\n",
" # if (externalExists()) totalForce += external()->force(); //external forces\n",
" # totalForce -= velocity()*mat->globalDampingTranslateC(); //global damping f-cv\n",
" # totalForce.z += mat->gravityForce(); //gravity, according to f=mg\n",
"\n",
" # if (isCollisionsEnabled()){\n",
" # \tfor (std::vector<CVX_Collision*>::iterator it=colWatch->begin(); it!=colWatch->end(); it++){\n",
" # \t\ttotalForce -= (*it)->contactForce(this);\n",
" # \t}\n",
" # }\n",
" # todo make internal forces 0 again\n",
" # N_intForce[node]=[0 0 0] # do i really need it?\n",
"\n",
" # node.force.x=0;\n",
" # node.force.y=0;\n",
" # node.force.z=0;\n",
"\n",
"\n",
" return totalForce\n",
"end\n",
"\n",
"\n",
"function moment(intMoment,orient,moment) \n",
" #moments from internal bonds\n",
" totalMoment=Vector3(0,0,0)\n",
" # for (int i=0; i<6; i++){ \n",
" # \tif (links[i]) totalMoment += links[i]->moment(isNegative((linkDirection)i)); //total force in LCS\n",
" # }\n",
"\n",
" totalMoment=totalMoment+intMoment\n",
" \n",
" \n",
"\n",
" totalMoment = RotateVec3D(orient,totalMoment);\n",
" \n",
" \n",
"\n",
" totalMoment=totalMoment+moment\n",
"\n",
"\n",
" #other moments\n",
" # if (externalExists()) totalMoment += external()->moment(); //external moments\n",
" # totalMoment -= angularVelocity()*mat->globalDampingRotateC(); //global damping\n",
"\n",
" return totalMoment\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"updateDataAndSaveFEA! (generic function with 1 method)"
]
},
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function updateDataAndSaveFEA!(setup,fileName)\n",
"# nodes = setup[\"nodes\"]\n",
"# edges = setup[\"edges\"]\n",
" \n",
"# setup[\"animation\"][\"showDisplacement\"]=false\n",
"# voxCount=size(nodes)[1]\n",
"# linkCount=size(edges)[1]\n",
" \n",
"# N_displacement=Array(metavoxel[\"N_displacementGPU\"])\n",
"# N_angle=Array(metavoxel[\"N_angleGPU\"])\n",
"# E_stress=Array(metavoxel[\"E_stressGPU\"])\n",
" \n",
"# setup[\"viz\"][\"maxStress\"]=maximum(E_stress)\n",
"# setup[\"viz\"][\"minStress\"]=minimum(E_stress) \n",
"\n",
"\n",
"# i=1\n",
"# \tfor edge in edges\n",
"# edge[\"stress\"]=E_stress[i]\n",
"# i=i+1\n",
"\n",
"# end\n",
" \n",
" \n",
"# i=1 \n",
"# \tfor node in nodes\n",
"# node[\"displacement\"][\"x\"]=N_displacement[i].x*100\n",
"# node[\"displacement\"][\"y\"]=N_displacement[i].y*100\n",
"# node[\"displacement\"][\"z\"]=N_displacement[i].z*100\n",
" \n",
"# node[\"angle\"][\"x\"]=N_angle[i].x\n",
"# node[\"angle\"][\"y\"]=N_angle[i].y\n",
"# node[\"angle\"][\"z\"]=N_angle[i].z\n",
"# i=i+1\n",
"\n",
"# end\n",
" \n",
" # pass data as a json string (how it shall be displayed in a file)\n",
" stringdata = JSON.json(setup)\n",
"\n",
" # write the file with the stringdata variable information\n",
" open(fileName, \"w\") do f\n",
" write(f, stringdata)\n",
" end\n",
" \n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"updateDataAndSave! (generic function with 1 method)"
]
},
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function updateDataAndSave!(metavoxel,setup,fileName)\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" \n",
" setup[\"animation\"][\"showDisplacement\"]=true\n",
" voxCount=size(nodes)[1]\n",
" linkCount=size(edges)[1]\n",
" \n",
" N_displacement=Array(metavoxel[\"N_displacementGPU\"])\n",
" N_angle=Array(metavoxel[\"N_angleGPU\"])\n",
" E_stress=Array(metavoxel[\"E_stressGPU\"])\n",
" \n",
" setup[\"viz\"][\"maxStress\"]=maximum(E_stress)\n",
" setup[\"viz\"][\"minStress\"]=minimum(E_stress) \n",
"\n",
"\n",
" i=1\n",
"\tfor edge in edges\n",
" edge[\"stress\"]=E_stress[i]\n",
" i=i+1\n",
"\n",
" end\n",
" \n",
" \n",
" i=1 \n",
"\tfor node in nodes\n",
" node[\"displacement\"][\"x\"]=N_displacement[i].x/15\n",
" node[\"displacement\"][\"y\"]=N_displacement[i].y/15\n",
" node[\"displacement\"][\"z\"]=N_displacement[i].z/15\n",
" \n",
" node[\"angle\"][\"x\"]=N_angle[i].x\n",
" node[\"angle\"][\"y\"]=N_angle[i].y\n",
" node[\"angle\"][\"z\"]=N_angle[i].z\n",
" i=i+1\n",
"\n",
" end\n",
" \n",
" # pass data as a json string (how it shall be displayed in a file)\n",
" stringdata = JSON.json(setup)\n",
"\n",
" # write the file with the stringdata variable information\n",
" open(fileName, \"w\") do f\n",
" write(f, stringdata)\n",
" end\n",
" \n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"runMetavoxelGPU! (generic function with 1 method)"
]
},
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function runMetavoxelGPU!(setup,numTimeSteps,latticeSize,displacements,returnEvery,save)\n",
" function initialize!(setup)\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
"\n",
" i=1\n",
" # pre-calculate current position\n",
" for node in nodes\n",
" # element=parse(Int,node[\"id\"][2:end])\n",
" N_position[i]=Vector3(node[\"position\"][\"x\"]*15.0,node[\"position\"][\"y\"]*15.0,node[\"position\"][\"z\"]*15.0)\n",
" N_restrained[i]=node[\"restrained_degrees_of_freedom\"][1] ## todo later consider other degrees of freedom\n",
" N_displacement[i]=Vector3(node[\"displacement\"][\"x\"]*15,node[\"displacement\"][\"y\"]*15,node[\"displacement\"][\"z\"]*15)\n",
" N_angle[i]=Vector3(node[\"angle\"][\"x\"],node[\"angle\"][\"y\"],node[\"angle\"][\"z\"])\n",
" N_force[i]=Vector3(node[\"force\"][\"x\"],node[\"force\"][\"y\"],node[\"force\"][\"z\"])\n",
" N_currPosition[i]=Vector3(node[\"position\"][\"x\"]*15.0,node[\"position\"][\"y\"]*15.0,node[\"position\"][\"z\"]*15.0)\n",
"\n",
" # for dynamic simulations\n",
" # append!(N_posTimeSteps,[[]])\n",
" # append!(N_angTimeSteps,[[]])\n",
"\n",
" i=i+1\n",
" end \n",
"\n",
" i=1\n",
" # pre-calculate the axis\n",
" for edge in edges\n",
" # element=parse(Int,edge[\"id\"][2:end])\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = nodes[edge[\"source\"]+1]\n",
" toNode = nodes[edge[\"target\"]+1]\n",
"\n",
"\n",
" node1 = [fromNode[\"position\"][\"x\"]*15.0 fromNode[\"position\"][\"y\"]*15.0 fromNode[\"position\"][\"z\"]*15.0]\n",
" node2 = [toNode[\"position\"][\"x\"]*15.0 toNode[\"position\"][\"y\"]*15.0 toNode[\"position\"][\"z\"]*15.0]\n",
"\n",
" length=norm(node2-node1)\n",
" axis=normalize(collect(Iterators.flatten(node2-node1)))\n",
"\n",
" E_source[i]=edge[\"source\"]+1\n",
" E_target[i]=edge[\"target\"]+1\n",
" E_area[i]=edge[\"area\"]\n",
" E_density[i]=edge[\"density\"]\n",
" E_stiffness[i]=edge[\"stiffness\"]\n",
" E_axis[i]=Vector3(axis[1],axis[2],axis[3])\n",
" E_currentRestLength[i]=length #?????? todo change\n",
"# E_currentRestLength[i]=75/sqrt(2)\n",
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
" \n",
"\n",
" N_edgeID[E_source[i],N_currEdge[E_source[i]]]=i\n",
" N_edgeFirst[E_source[i],N_currEdge[E_source[i]]]=true\n",
" N_currEdge[E_source[i]]+=1\n",
"\n",
" N_edgeID[E_target[i],N_currEdge[E_target[i]]]=i\n",
" N_edgeFirst[E_target[i],N_currEdge[E_target[i]]]=false\n",
" N_currEdge[E_target[i]]+=1\n",
"\n",
"\n",
" # for dynamic simulations\n",
" # append!(E_stressTimeSteps,[[]])\n",
"\n",
" i=i+1\n",
" end \n",
" end\n",
" function simulateParallel!(metavoxel,numTimeSteps,dt,returnEvery)\n",
" # initialize(setup)\n",
"\n",
" for i in 1:numTimeSteps\n",
" #println(\"Timestep:\",i)\n",
" doTimeStep!(metavoxel,dt,i)\n",
" if(mod(i,returnEvery)==0)\n",
" append!(displacements,[Array(metavoxel[\"N_displacementGPU\"])])\n",
" end\n",
" end\n",
" end\n",
" \n",
" ########\n",
" voxCount=0\n",
" linkCount=0\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" voxCount=size(nodes)[1]\n",
" linkCount=size(edges)[1]\n",
" strain =0 #todooo moveeee\n",
" maxNumEdges=10\n",
"\n",
" ########\n",
" voxCount=0\n",
" linkCount=0\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" voxCount=size(nodes)[1]\n",
" linkCount=size(edges)[1]\n",
" strain =0 #todooo moveeee\n",
"\n",
" ############# nodes\n",
" N_position=fill(Vector3(),voxCount)\n",
" N_restrained=zeros(Bool, voxCount)\n",
" N_displacement=fill(Vector3(),voxCount)\n",
" N_angle=fill(Vector3(),voxCount)\n",
" N_currPosition=fill(Vector3(),voxCount)\n",
" N_linMom=fill(Vector3(),voxCount)\n",
" N_angMom=fill(Vector3(),voxCount)\n",
" N_intForce=fill(Vector3(),voxCount)\n",
" N_intMoment=fill(Vector3(),voxCount)\n",
" N_moment=fill(Vector3(),voxCount)\n",
" # N_posTimeSteps=[]\n",
" # N_angTimeSteps=[]\n",
" N_force=fill(Vector3(),voxCount)\n",
" N_orient=fill(Quaternion(),voxCount)\n",
" N_edgeID=fill(-1,(voxCount,maxNumEdges))\n",
" N_edgeFirst=fill(true,(voxCount,maxNumEdges))\n",
" N_currEdge=fill(1,voxCount)\n",
"\n",
" ############# edges\n",
" E_source=fill(0,linkCount)\n",
" E_target=fill(0,linkCount)\n",
" E_area=fill(0.0f0,linkCount)\n",
" E_density=fill(0.0f0,linkCount)\n",
" E_stiffness=fill(0.0f0,linkCount)\n",
" E_stress=fill(0.0f0,linkCount)\n",
" E_axis=fill(Vector3(1.0,0.0,0.0),linkCount)\n",
" E_currentRestLength=fill(0.0f0,linkCount)\n",
" E_pos2=fill(Vector3(),linkCount)\n",
" E_angle1v=fill(Vector3(),linkCount)\n",
" E_angle2v=fill(Vector3(),linkCount)\n",
" E_angle1=fill(Quaternion(),linkCount)\n",
" E_angle2=fill(Quaternion(),linkCount)\n",
"\n",
" E_intForce1=fill(Vector3(),linkCount)\n",
" E_intMoment1=fill(Vector3(),linkCount) \n",
"\n",
" E_intForce2=fill(Vector3(),linkCount)\n",
" E_intMoment2=fill(Vector3(),linkCount)\n",
" E_damp=fill(false,linkCount)\n",
"\n",
" E_currentTransverseStrainSum=fill(0.0f0,linkCount)# TODO remove ot incorporate\n",
" # E_stressTimeSteps=[]\n",
"\n",
"\n",
" #################################################################\n",
" initialize!(setup)\n",
" #################################################################\n",
"\n",
" ########################## turn to cuda arrays\n",
" ############# nodes\n",
" N_positionGPU= CuArray(N_position) \n",
" N_restrainedGPU= CuArray(N_restrained) \n",
" N_displacementGPU=CuArray(N_displacement) \n",
" N_angleGPU= CuArray(N_angle) \n",
" N_currPositionGPU=CuArray(N_currPosition) \n",
" N_linMomGPU= CuArray(N_linMom) \n",
" N_angMomGPU= CuArray(N_angMom) \n",
" N_intForceGPU= CuArray(N_intForce) \n",
" N_intMomentGPU= CuArray(N_intMoment) \n",
" N_momentGPU= CuArray(N_moment) \n",
" N_forceGPU= CuArray(N_force) \n",
" N_orientGPU= CuArray(N_orient) \n",
" N_edgeIDGPU= CuArray(N_edgeID) \n",
" N_edgeFirstGPU= CuArray(N_edgeFirst) \n",
"\n",
"\n",
" ############# edges\n",
" E_sourceGPU= CuArray(E_source) \n",
" E_targetGPU= CuArray(E_target)\n",
" E_areaGPU= CuArray(E_area) \n",
" E_densityGPU= CuArray(E_density)\n",
" E_stiffnessGPU= CuArray(E_stiffness)\n",
" E_stressGPU= CuArray(E_stress)\n",
" E_axisGPU= CuArray(E_axis) \n",
" E_currentRestLengthGPU= CuArray(E_currentRestLength)\n",
" E_pos2GPU= CuArray(E_pos2)\n",
" E_angle1vGPU= CuArray(E_angle1v)\n",
" E_angle2vGPU= CuArray(E_angle2v)\n",
" E_angle1GPU= CuArray(E_angle1)\n",
" E_angle2GPU= CuArray(E_angle2)\n",
" E_currentTransverseStrainSumGPU=CuArray(E_currentTransverseStrainSum)\n",
" E_intForce1GPU= CuArray(E_intForce1) \n",
" E_intMoment1GPU= CuArray(E_intMoment1) \n",
" E_intForce2GPU= CuArray(E_intForce2) \n",
" E_intMoment2GPU= CuArray(E_intMoment2)\n",
" E_dampGPU= CuArray(E_damp) \n",
" # E_stressTimeSteps=[]\n",
"\n",
"\n",
" #########################################\n",
" metavoxel = Dict(\n",
" \"N_positionGPU\" => N_positionGPU, \n",
" \"N_restrainedGPU\" => N_restrainedGPU, \n",
" \"N_displacementGPU\" => N_displacementGPU,\n",
" \"N_angleGPU\" => N_angleGPU, \n",
" \"N_currPositionGPU\" => N_currPositionGPU,\n",
" \"N_linMomGPU\" => N_linMomGPU, \n",
" \"N_angMomGPU\" => N_angMomGPU, \n",
" \"N_intForceGPU\" => N_intForceGPU, \n",
" \"N_intMomentGPU\" => N_intMomentGPU, \n",
" \"N_momentGPU\" => N_momentGPU, \n",
" \"N_forceGPU\" => N_forceGPU, \n",
" \"N_orientGPU\" => N_orientGPU, \n",
" \"N_edgeIDGPU\" => N_edgeIDGPU, \n",
" \"N_edgeFirstGPU\" => N_edgeFirstGPU,\n",
" \"E_sourceGPU\" =>E_sourceGPU, \n",
" \"E_targetGPU\" =>E_targetGPU, \n",
" \"E_areaGPU\" =>E_areaGPU, \n",
" \"E_densityGPU\" =>E_densityGPU, \n",
" \"E_stiffnessGPU\" =>E_stiffnessGPU, \n",
" \"E_stressGPU\" =>E_stressGPU, \n",
" \"E_axisGPU\" =>E_axisGPU, \n",
" \"E_currentRestLengthGPU\" =>E_currentRestLengthGPU, \n",
" \"E_pos2GPU\" =>E_pos2GPU, \n",
" \"E_angle1vGPU\" =>E_angle1vGPU, \n",
" \"E_angle2vGPU\" =>E_angle2vGPU, \n",
" \"E_angle1GPU\" =>E_angle1GPU, \n",
" \"E_angle2GPU\" =>E_angle2GPU, \n",
" \"E_currentTransverseStrainSumGPU\" =>E_currentTransverseStrainSumGPU,\n",
" \"E_intForce1GPU\" =>E_intForce1GPU, \n",
" \"E_intMoment1GPU\" =>E_intMoment1GPU, \n",
" \"E_intForce2GPU\" =>E_intForce2GPU, \n",
" \"E_intMoment2GPU\" =>E_intMoment2GPU, \n",
" \"E_dampGPU\" =>E_dampGPU \n",
" )\n",
"\n",
" #########################################\n",
" \n",
"\n",
" dt=0.0251646\n",
" E = 2000 # MPa\n",
" s=2.38\n",
" mass=10 \n",
" \n",
" \n",
" \n",
" MaxFreq2=E*s/mass\n",
" dt= 1/(6.283185*sqrt(MaxFreq2))\n",
"# dt=0.0001646\n",
" println(\"dt: $dt\")\n",
" \n",
" append!(displacements,[Array(metavoxel[\"N_displacementGPU\"])])\n",
" \n",
" t=@timed doTimeStep!(metavoxel,dt,0)\n",
" append!(displacements,[Array(metavoxel[\"N_displacementGPU\"])])\n",
" time=t[2]\n",
" println(\"first timestep took $time seconds\")\n",
" t=@timed simulateParallel!(metavoxel,numTimeSteps-1,dt,returnEvery)\n",
" time=t[2]\n",
" \n",
" if save\n",
" updateDataAndSave!(metavoxel,setup,\"../../json/trialJuliaParallelGPU.json\")\n",
" end\n",
" println(\"ran latticeSize $latticeSize with $voxCount voxels and $linkCount edges for $numTimeSteps time steps took $time seconds\")\n",
" return\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"fea (generic function with 1 method)"
]
},
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function fea(setup)\n",
" #######################################################\n",
" function points(element, properties)\n",
" elements = properties[\"elements\"]\n",
" nodes = properties[\"nodes\"]\n",
" degrees_of_freedom = properties[\"degrees_of_freedom\"]\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = elements[element][1]\n",
" toNode = elements[element][2]\n",
"\n",
" # the coordinates for each node\n",
" fromPoint = nodes[fromNode]\n",
" toPoint = nodes[toNode]\n",
"\n",
" # find the degrees of freedom for each node\n",
" dofs = degrees_of_freedom[fromNode]\n",
" dofs=vcat(dofs,degrees_of_freedom[toNode])\n",
"\n",
" return fromPoint, toPoint, dofs\n",
" end\n",
"\n",
" function direction_cosine(vec1, vec2)\n",
" return dot(vec1,vec2) / (norm(vec1) * norm(vec2))\n",
" end\n",
"\n",
" function rotation_matrix(element_vector, x_axis, y_axis,z_axis)\n",
" # find the direction cosines\n",
" x_proj = direction_cosine(element_vector, x_axis)\n",
" y_proj = direction_cosine(element_vector, y_axis)\n",
" z_proj = direction_cosine(element_vector, z_axis);\n",
" return [[x_proj y_proj z_proj 0 0 0];[0 0 0 x_proj y_proj z_proj]]\n",
" end\n",
"\n",
" function rotation_matrix(element_vector, x_axis, y_axis,z_axis)\n",
" # find the direction cosines\n",
" L=norm(element_vector)\n",
" l = (element_vector[1])/L\n",
" m = (element_vector[2])/L\n",
" n = (element_vector[3])/L\n",
" D = ( l^2+ m^2+n^2)^0.5\n",
"\n",
" transMatrix=[[l m n 0 0 0 0 0 0 0 0 0];[-m/D l/D 0 0 0 0 0 0 0 0 0 0];[ -l*n/D -m*n/D D 0 0 0 0 0 0 0 0 0];[ 0 0 0 l m n 0 0 0 0 0 0];[ 0 0 0 -m/D l/D 0 0 0 0 0 0 0];[ 0 0 0 -l*n/D -m*n/D D 0 0 0 0 0 0];[ 0 0 0 0 0 0 l m n 0 0 0];[ 0 0 0 0 0 0 -m/D l/D 0 0 0 0];[ 0 0 0 0 0 0 -l*n/D -m*n/D D 0 0 0];[ 0 0 0 0 0 0 0 0 0 l m n];[ 0 0 0 0 0 0 0 0 0 -m/D l/D 0];[ 0 0 0 0 0 0 0 0 0 -l*n/D -m*n/D D]]\n",
"\n",
" return transMatrix\n",
" end\n",
" \n",
" #######################################################\n",
" function get_matrices(setup)\n",
"\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" ndofs = length(nodes)*6\n",
"\n",
" x_axis = [1 0 0]\n",
" y_axis = [0 1 0]\n",
" z_axis = [0 0 1]\n",
"\n",
" M = zeros((ndofs,ndofs))\n",
" K = zeros((ndofs,ndofs))\n",
" \n",
" \n",
" for edge in edges\n",
" #degrees_of_freedom = properties[\"degrees_of_freedom\"]\n",
"\n",
" element=parse(Int,edge[\"id\"][2:end])\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = nodes[edge[\"source\"]+1]\n",
" toNode = nodes[edge[\"target\"]+1]\n",
" \n",
"\n",
" # the coordinates for each node\n",
" fromPoint = [fromNode[\"position\"][\"x\"]*15.0 fromNode[\"position\"][\"y\"]*15.0 fromNode[\"position\"][\"z\"]*15.0]\n",
" toPoint = [toNode[\"position\"][\"x\"]*15.0 toNode[\"position\"][\"y\"]*15.0 toNode[\"position\"][\"z\"]*15.0]\n",
"\n",
" # find the degrees of freedom for each node\n",
" dofs = convert(Array{Int}, fromNode[\"degrees_of_freedom\"])\n",
" dofs=vcat(dofs,convert(Array{Int}, toNode[\"degrees_of_freedom\"]))\n",
"\n",
" element_vector=toPoint-fromPoint\n",
"\n",
" # find element mass and stifness matrices\n",
" length = norm(element_vector)\n",
" rho = edge[\"density\"]\n",
" area = edge[\"area\"]\n",
" E = edge[\"stiffness\"]# youngs modulus\n",
"\n",
" A = edge[\"area\"]\n",
" G=1.0#todo shear_modulus\n",
" ixx = 1.0#todo section ixx\n",
" iyy = 1.0#todo section.iyy#\n",
" l0=length\n",
" j=1.0;#todo check\n",
" l02 = l0 * l0\n",
" l03 = l0 * l0 * l0\n",
" \n",
" # find element mass and stifness matrices\n",
" length = norm(element_vector)\n",
" rho = edge[\"density\"]\n",
" area = edge[\"area\"]\n",
" E = edge[\"stiffness\"]# youngs modulus\n",
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
" \n",
" \n",
" \n",
" A = edge[\"area\"]\n",
" G=1.0#todo shear_modulus\n",
" ixx = 1.0#todo section ixx\n",
" iyy = 1.0#todo section.iyy#\n",
" j=1.0;#todo check\n",
" \n",
" \n",
" h = 2.38 # mm\n",
" b = 2.38 # mm\n",
" E = 2000 # MPa\n",
" rho = 7.85e-9 / 3 # kg/mm^3\n",
" G = E * 1 / 3 # MPa\n",
" A=h*b\n",
" Q = 1 / 3 - 0.2244 / (min(h / b, b / h) + 0.1607)\n",
" J = Q * min(h * b^3, b * h^3)\n",
" I= b*h^3/12\n",
" ixx=I\n",
" iyy=I\n",
" j=J\n",
" \n",
" l0=length\n",
" l02 = l0 * l0\n",
" l03 = l0 * l0 * l0\n",
"\n",
" # Cm = rho * area * length /6.0\n",
" # Ck= E * area / length \n",
"\n",
" # m = [[2 1];[1 2]]\n",
" # k = [[1 -1];[-1 1]]\n",
"\n",
" k = [[E*A/l0 0 0 0 0 0 -E*A/l0 0 0 0 0 0];[0 12*E*ixx/l03 0 0 0 6*E*ixx/l02 0 -12*E*ixx/l03 0 0 0 6*E*ixx/l02];[0 0 12*E*iyy/l03 0 -6*E*iyy/l02 0 0 0 -12*E*iyy/l03 0 -6*E*iyy/l02 0];[0 0 0 G*j/l0 0 0 0 0 0 -G*j/l0 0 0];[0 0 -6*E*iyy/l02 0 4*E*iyy/l0 0 0 0 6*E*iyy/l02 0 2*E*iyy/l0 0];[0 6*E*ixx/l02 0 0 0 4*E*ixx/l0 0 -6*E*ixx/l02 0 0 0 2*E*ixx/l0];[-E*A/l0 0 0 0 0 0 E*A/l0 0 0 0 0 0];[0 -12*E*ixx/l03 0 0 0 -6*E*ixx/l02 0 12*E*ixx/l03 0 0 0 -6*E*ixx/l02];[0 0 -12*E*iyy/l03 0 6*E*iyy/l02 0 0 0 12*E*iyy/l03 0 6*E*iyy/l02 0];[0 0 0 -G*j/l0 0 0 0 0 0 G*j/l0 0 0];[0 0 -6*E*iyy/l02 0 2*E*iyy/l0 0 0 0 6*E*iyy/l02 0 4*E*iyy/l0 0];[0 6*E*ixx/l02 0 0 0 2*E*ixx/l0 0 -6*E*ixx/l02 0 0 0 4*E*ixx/l0]]\n",
"\n",
" \n",
" ################################\n",
"# mass=10\n",
"# nu=0.35\n",
"# W = 75\n",
"# L = W/sqrt(2)\n",
"# L=length\n",
"# n_min = 1\n",
"# n_max = 7\n",
"# # Cross Section inputs, must be floats\n",
"# E = 2000 # MPa\n",
"# G = E * 1 / 3 # MPa\n",
"# h = 2.38 # mm\n",
"# b = 2.38 # mm\n",
"# rho = 7.85e-9 / 3 # kg/mm^3\n",
"# S = h * b\n",
"# Sy = (S * (6 + 12 * nu + 6 * nu^2)/ (7 + 12 * nu + 4 * nu^2))\n",
"# # For solid rectangular cross section (width=b, depth=d & ( b < d )):\n",
"# Q = 1 / 3 - 0.2244 / (min(h / b, b / h) + 0.1607)\n",
"# J = Q * min(h * b^3, b * h^3)\n",
" \n",
" \n",
"# ##if voxels\n",
"# #nu=0\n",
"# #L=l\n",
"# #a1 = E*L # EA/L : Units of N/m\n",
"# #a2 = E * L*L*L / (12.0*(1+nu)) # GJ/L : Units of N-m\n",
"# #b1 = E*L # 12EI/L^3 : Units of N/m\n",
"# #b2 = E*L*L/2.0 # 6EI/L^2 : Units of N (or N-m/m: torque related to linear distance)\n",
"# #b3 = E*L*L*L/6.0 # 2EI/L : Units of N-m\n",
" \n",
"# I= b*h^3/12\n",
"# # J=b*h*(b*b+h*h)/12\n",
"# a1=E*b*h/L\n",
"# a2=G*J/L\n",
"# b1=12*E*I/(L^3)\n",
"# b2=6*E*I/(L^2)\n",
"# b3=2*E*I/(L)\n",
"\n",
" \n",
"\n",
"# k = [[E*A/l0 0 0 0 0 0 -E*A/l0 0 0 0 0 0];[0 12*E*ixx/l03 0 0 0 6*E*ixx/l02 0 -12*E*ixx/l03 0 0 0 6*E*ixx/l02];[0 0 12*E*iyy/l03 0 -6*E*iyy/l02 0 0 0 -12*E*iyy/l03 0 -6*E*iyy/l02 0];[0 0 0 G*j/l0 0 0 0 0 0 -G*j/l0 0 0];[0 0 -6*E*iyy/l02 0 4*E*iyy/l0 0 0 0 6*E*iyy/l02 0 2*E*iyy/l0 0];[0 6*E*ixx/l02 0 0 0 4*E*ixx/l0 0 -6*E*ixx/l02 0 0 0 2*E*ixx/l0];[-E*A/l0 0 0 0 0 0 E*A/l0 0 0 0 0 0];[0 -12*E*ixx/l03 0 0 0 -6*E*ixx/l02 0 12*E*ixx/l03 0 0 0 -6*E*ixx/l02];[0 0 -12*E*iyy/l03 0 6*E*iyy/l02 0 0 0 12*E*iyy/l03 0 6*E*iyy/l02 0];[0 0 0 -G*j/l0 0 0 0 0 0 G*j/l0 0 0];[0 0 -6*E*iyy/l02 0 2*E*iyy/l0 0 0 0 6*E*iyy/l02 0 4*E*iyy/l0 0];[0 6*E*ixx/l02 0 0 0 2*E*ixx/l0 0 -6*E*ixx/l02 0 0 0 4*E*ixx/l0]]\n",
"# k= [[ a1 0 0 0 0 0 -a1 0 0 0 0 0 ];\n",
"# [ 0 b1 0 0 0 b2 0 -b1 0 0 0 b2 ];\n",
"# [ 0 0 b1 0 -b2 0 0 0 -b1 0 -b2 0 ];\n",
"# [ 0 0 0 a2 0 0 0 0 0 -a2 0 0 ];\n",
"# [ 0 0 0 0 2b3 0 0 0 b2 0 b3 0 ];\n",
"# [ 0 0 0 0 0 2b3 0 -b2 0 0 0 b3 ];\n",
"# [ 0 0 0 0 0 0 a1 0 0 0 0 0 ];\n",
"# [ 0 0 0 0 0 0 0 b1 0 0 0 -b2 ];\n",
"# [ 0 0 0 0 0 0 0 0 b1 0 b2 0 ];\n",
"# [ 0 0 0 0 0 0 0 0 0 a2 0 0 ];\n",
"# [ 0 0 0 0 0 0 0 0 0 0 2b3 0 ];\n",
"# [ 0 0 0 0 0 0 0 0 0 0 0 2b3 ]]\n",
" # find rotated mass and stifness matrices\n",
" tau = rotation_matrix(element_vector, x_axis,y_axis,z_axis)\n",
"\n",
" # m_r=transpose(tau)*m*tau\n",
" k_r=transpose(tau)*k*tau\n",
"\n",
" # change from element to global coordinate\n",
" index= dofs.+1\n",
"\n",
" B=zeros((12,ndofs))\n",
" for i in 1:12\n",
" B[i,index[i]]=1.0\n",
" end\n",
"\n",
"\n",
" # M_rG= transpose(B)*m_r*B\n",
" K_rG= transpose(B)*k_r*B\n",
"\n",
" # M += Cm .* M_rG\n",
" # K += Ck .* K_rG\n",
" K += K_rG\n",
"\n",
" end\n",
" \n",
" \n",
" # construct the force vector\n",
" F=zeros(ndofs)\n",
" remove_indices=[];\n",
" for node in nodes\n",
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
" #insert!(F,i, value);\n",
" #F=vcat(F,value)\n",
" \n",
" \n",
" i=parse(Int,node[\"id\"][2:end])\n",
" f=node[\"force\"]\n",
" \n",
" # println(f)\n",
" F[(i)*6+1]+=f[\"x\"]\n",
" F[(i)*6+2]+=f[\"y\"]\n",
" F[(i)*6+3]+=f[\"z\"]\n",
" F[(i)*6+4]+=0\n",
" F[(i)*6+5]+=0\n",
" F[(i)*6+6]+=0\n",
" Load+=f[\"y\"]\n",
" if (F[(i)*6+2]!=0)\n",
" append!(topNodesIndices,i+1)\n",
" end\n",
" \n",
" dofs = convert(Array{Int}, node[\"degrees_of_freedom\"]).+1\n",
" restrained_dofs=node[\"restrained_degrees_of_freedom\"]\n",
" for (index, value) in enumerate(dofs)\n",
" if restrained_dofs[index]\n",
" append!( remove_indices, value)\n",
" end\n",
" end\n",
" \n",
" end\n",
"\n",
" #println(remove_indices)\n",
" #print(K)\n",
" #print(F)\n",
" \n",
"\n",
" #M = M[setdiff(1:end, remove_indices), :]\n",
" K = K[setdiff(1:end, remove_indices), :]\n",
"\n",
" #M = M[:,setdiff(1:end, remove_indices)]\n",
" K = K[:,setdiff(1:end, remove_indices)]\n",
"\n",
" F = F[setdiff(1:end, remove_indices)]\n",
" \n",
" U=zeros(ndofs)\n",
" \n",
" return M,K,F,U,remove_indices\n",
" end\n",
"\n",
" \n",
" function updateDisplacement(setup, X)\n",
" nodes= setup[\"nodes\"]\n",
" i=0\n",
" for node in nodes\n",
" \n",
"# if !node[\"restrained_degrees_of_freedom\"][2]\n",
" #i=parse(Int,node[\"id\"][2:end])\n",
" node[\"displacement\"][\"x\"]=X[(i)*6+1]/15\n",
" node[\"displacement\"][\"y\"]=X[(i)*6+2]/15\n",
" node[\"displacement\"][\"z\"]=X[(i)*6+3]/15\n",
" node[\"angle\"][\"x\"]=X[(i)*6+4]\n",
" node[\"angle\"][\"y\"]=X[(i)*6+5]\n",
" node[\"angle\"][\"z\"]=X[(i)*6+6]\n",
" append!(displacementFEA,[Vector3(X[(i)*6+1],X[(i)*6+2],X[(i)*6+3])])\n",
" i=i+1\n",
"# else\n",
"# append!(displacementFEA,[Vector3(0,0,0)])\n",
"# end\n",
" end\n",
" end\n",
" \n",
" #######################################################\n",
"\n",
" function get_stresses(setup)\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" ndofs = length(nodes)*6\n",
"\n",
" x_axis = [1 0 0]\n",
" y_axis = [0 1 0]\n",
" z_axis = [0 0 1]\n",
"\n",
" # find the stresses in each member\n",
" stresses=zeros(length(edges))\n",
" max11=-10e6\n",
" min11=10e6\n",
" for edge in edges\n",
" #degrees_of_freedom = properties[\"degrees_of_freedom\"]\n",
"\n",
" element=parse(Int,edge[\"id\"][2:end])\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = nodes[edge[\"source\"]+1]\n",
" toNode = nodes[edge[\"target\"]+1]\n",
"\n",
" # the coordinates for each node\n",
" fromPoint = [fromNode[\"position\"][\"x\"]*15.0 fromNode[\"position\"][\"y\"]*15.0 fromNode[\"position\"][\"z\"]*15.0]\n",
" toPoint = [toNode[\"position\"][\"x\"]*15.0 toNode[\"position\"][\"y\"]*15.0 toNode[\"position\"][\"z\"]*15.0]\n",
"\n",
" # find the degrees of freedom for each node\n",
" dofs = convert(Array{Int}, fromNode[\"degrees_of_freedom\"])\n",
" dofs=vcat(dofs,convert(Array{Int}, toNode[\"degrees_of_freedom\"]))\n",
"\n",
" element_vector=toPoint-fromPoint\n",
"\n",
"\n",
" # find rotated mass and stifness matrices\n",
" tau = rotation_matrix(element_vector, x_axis,y_axis,z_axis)\n",
"\n",
" # i1=parse(Int,fromNode[\"id\"][2:end])\n",
" # i2=parse(Int,toNode[\"id\"][2:end])\n",
"\n",
" # global_displacements=[X[(i1)*6+1] X[(i1)*6+2] X[(i1)*6+3] X[(i1)*6+4] X[(i1)*6+5] X[(i1)*6+6] X[(i2)*6+1] X[(i2)*6+2] X[(i2)*6+3] X[(i2)*6+4] X[(i2)*6+5] X[(i2)*6+6]] # todo change\n",
" global_displacements=[fromNode[\"displacement\"][\"x\"]*15 fromNode[\"displacement\"][\"y\"]*15 fromNode[\"displacement\"][\"z\"]*15 fromNode[\"angle\"][\"x\"] fromNode[\"angle\"][\"y\"] fromNode[\"angle\"][\"z\"] toNode[\"displacement\"][\"x\"]*15 toNode[\"displacement\"][\"y\"]*15 toNode[\"displacement\"][\"z\"]*15 toNode[\"angle\"][\"x\"] toNode[\"angle\"][\"y\"] toNode[\"angle\"][\"z\"]] # todo change\n",
"\n",
" # nodal displacement\n",
"\n",
" q=tau*transpose(global_displacements)\n",
" # println(q)\n",
" # calculate the strain and stresses\n",
" strain =(q[7]-q[1])/norm(element_vector)\n",
" E = edge[\"stiffness\"]# youngs modulus\n",
" E=2000\n",
" stress=E.*strain\n",
" edge[\"stress\"]=stress\n",
" if stress>max11\n",
" max11=stress\n",
" end\n",
" if stress<min11\n",
" min11=stress\n",
" end\n",
" # println(element)\n",
" # println(stress)\n",
" end\n",
"\n",
"\n",
"\n",
" setup[\"viz\"][\"minStress\"]=min11\n",
" setup[\"viz\"][\"maxStress\"]=max11\n",
" return stresses\n",
" end\n",
" \n",
" function initialize(setup)\n",
" nodes = setup[\"nodes\"]\n",
" ndofs = length(nodes)*6\n",
" \n",
" i=0\n",
" for node in nodes\n",
" dg=[]\n",
" for ii in 0:5\n",
" append!(dg,i+ii) \n",
" end\n",
" i+=6\n",
" node[\"degrees_of_freedom\"]=dg\n",
" end\n",
" end\n",
"\n",
" #######################################################\n",
" function solveFea(setup)\n",
" // # determine the global matrices\n",
" initialize(setup)\n",
" \n",
" M,K,F,U,ind=get_matrices(setup)\n",
" \n",
" #println(M)\n",
" #println(K)\n",
" #println(F)\n",
"\n",
" #evals=eigvals(K,M)\n",
" #evecs=eigvecs(K,M)\n",
" #frequencies=sqrt.(evals)\n",
" X=inv(K)*F\n",
" U[setdiff(1:end, ind)]=X\n",
"\n",
" updateDisplacement(setup, U)\n",
"\n",
" # determine the stresses in each element\n",
" stresses=get_stresses(setup)\n",
" end\n",
" #######################################################\n",
" displacementFEA=[]\n",
" Load=0\n",
" topNodesIndices=[]\n",
" solveFea(setup)\n",
" return displacementFEA,Load,topNodesIndices\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"getYoungsModulus (generic function with 1 method)"
]
},
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function getYoungsModulus(latticeSize,voxelSize,disp,Load,topNodesIndices)\n",
" F=-Load\n",
" l0=voxelSize*latticeSize\n",
" A=l0*l0\n",
"\n",
" δl1=-mean( x.y for x in disp[topNodesIndices])\n",
" \n",
" stresses=F/A\n",
" strain=δl1/l0\n",
" println(\"Load=$Load\")\n",
" println(\"stress=$stresses\")\n",
"\n",
" E=stresses/strain \n",
"\n",
" return E\n",
"end\n"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"getSetup (generic function with 1 method)"
]
},
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function getSetup(latticeSize)\n",
" setup = Dict()\n",
" name=string(\"../../json/setupTestUni$latticeSize\",\".json\")\n",
"# name=string(\"../../json/canteliver\",\".json\")\n",
" \n",
"# open(\"../../json/setupValid2.json\", \"r\") do f\n",
"# open(\"../../json/setupTest.json\", \"r\") do f\n",
" # open(\"../../json/trialJulia.json\", \"r\") do f\n",
"# open(\"../../json/setupTestUni4.json\", \"r\") do f\n",
" # open(\"../../json/setupChiral.json\", \"r\") do f\n",
"# open(\"../../json/setupTestCubeUni10.json\", \"r\") do f\n",
" open(name, \"r\") do f\n",
"# global setup\n",
" dicttxt = String(read(f)) # file information to string\n",
" setup=JSON.parse(dicttxt) # parse and transform data\n",
" end\n",
"\n",
" setup=setup[\"setup\"]\n",
" return setup\n",
"end"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"setup=getSetup(latticeSize)\n",
"displacementFEA,Load,topNodesIndices=fea(setup)\n",
"topNodesIndices\n",
"println(length(setup[\"nodes\"]))\n",
"length(setup[\"edges\"])"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"5-element Array{Float64,1}:\n",
" 0.0\n",
" 0.0\n",
" 0.0\n",
" 0.0\n",
" 0.0"
]
},
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"DDisplacements=[[],[],[],[],[]]\n",
"DDisplacementsFEA=[[],[],[],[],[]]\n",
"Loads=[0.0,0,0,0,0]\n",
"EsFEA=[0.0,0,0,0,0]\n",
"Es=[0.0,0,0,0,0]"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Dict{String,Any} with 8 entries:\n",
" \"nodes\" => Any[Dict{String,Any}(\"degrees_of_freedom\"=>Any[0, 1, 2, 3, …\n",
" \"voxelSize\" => 5\n",
" \"numTimeSteps\" => 100\n",
" \"hierarchical\" => false\n",
" \"animation\" => Dict{String,Any}(\"exaggeration\"=>2000,\"speed\"=>3,\"showDispl…\n",
" \"viz\" => Dict{String,Any}(\"colorMap\"=>0,\"exaggeration\"=>10000,\"color…\n",
" \"edges\" => Any[Dict{String,Any}(\"source\"=>0,\"area\"=>1,\"density\"=>0.028…\n",
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"setup"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"setup=getSetup(latticeSize)\n",
"displacementFEA,Load,topNodesIndices=fea(setup)\n",
"# displacementFEA,Load,topNodesIndices=feaDisplacement(setup,latticeSize)\n",
"updateDataAndSaveFEA!(setup,\"../../json/trialJuliaParallelGPU.json\")\n"
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"dt: 0.007294855212986816\n",
"first timestep took 0.000645101 seconds\n",
"ran latticeSize 3 with 144 voxels and 432 edges for 6000 time steps took 2.0397974 seconds\n",
"Load=-900.0\n",
"stress=0.017777777777777778\n",
"Load=-900.0\n",
"stress=0.017777777777777778\n",
"EsFEA:[0.0, 1.3631163779051199, 1.4928557096014121, 0.0, 0.0]\n",
"Es:[0.0, 1.3636389591522067, 1.4821324986526747, 0.0, 0.0]\n",
"FEA displacement= -3.161875031059339,converged displacement= -3.199251807603066\n"
]
},
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip3900)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip3900)\" d=\"\n",
"M203.721 1425.62 L2352.76 1425.62 L2352.76 121.675 L203.721 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip3902\">\n",
" <rect x=\"203\" y=\"121\" width=\"2150\" height=\"1305\"/>\n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 261.163,1425.62 261.163,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 599.062,1425.62 599.062,121.675 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 936.961,1425.62 936.961,121.675 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1274.86,1425.62 1274.86,121.675 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1612.76,1425.62 1612.76,121.675 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1950.66,1425.62 1950.66,121.675 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2288.56,1425.62 2288.56,121.675 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,1249.44 2352.76,1249.44 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,885.818 2352.76,885.818 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,522.199 2352.76,522.199 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,158.579 2352.76,158.579 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,1425.62 2352.76,1425.62 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,1425.62 203.721,121.675 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 261.163,1425.62 261.163,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 599.062,1425.62 599.062,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 936.961,1425.62 936.961,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1274.86,1425.62 1274.86,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1612.76,1425.62 1612.76,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1950.66,1425.62 1950.66,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2288.56,1425.62 2288.56,1409.97 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,1249.44 229.509,1249.44 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,885.818 229.509,885.818 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,522.199 229.509,522.199 \n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,158.579 229.509,158.579 \n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 261.163, 1479.62)\" x=\"261.163\" y=\"1479.62\">0</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 599.062, 1479.62)\" x=\"599.062\" y=\"1479.62\">100</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 936.961, 1479.62)\" x=\"936.961\" y=\"1479.62\">200</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1274.86, 1479.62)\" x=\"1274.86\" y=\"1479.62\">300</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1612.76, 1479.62)\" x=\"1612.76\" y=\"1479.62\">400</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1950.66, 1479.62)\" x=\"1950.66\" y=\"1479.62\">500</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2288.56, 1479.62)\" x=\"2288.56\" y=\"1479.62\">600</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 1266.94)\" x=\"179.721\" y=\"1266.94\">-3</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 903.318)\" x=\"179.721\" y=\"903.318\">-2</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 539.699)\" x=\"179.721\" y=\"539.699\">-1</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 176.079)\" x=\"179.721\" y=\"176.079\">0</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1278.24, 73.2)\" x=\"1278.24\" y=\"73.2\">3 Voxel Convergence Study</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1278.24, 1559.48)\" x=\"1278.24\" y=\"1559.48\">timestep</text>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 773.647)\" x=\"89.2861\" y=\"773.647\">displacement</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 264.542,158.579 602.441,1096.87 940.34,1350.79 1278.24,1388.71 1616.14,1360.7 1954.04,1333.81 2291.93,1321.89 \n",
"<polyline clip-path=\"url(#clip3902)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 264.542,1308.3 602.441,1308.3 940.34,1308.3 1278.24,1308.3 1616.14,1308.3 1954.04,1308.3 2291.93,1308.3 \n",
"<path clip-path=\"url(#clip3900)\" d=\"\n",
"M1853.56 386.635 L2280.76 386.635 L2280.76 205.195 L1853.56 205.195 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1853.56,386.635 2280.76,386.635 2280.76,205.195 1853.56,205.195 1853.56,386.635 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1877.56,265.675 2021.56,265.675 \n",
" \"/>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2045.56, 283.175)\" x=\"2045.56\" y=\"283.175\">Dynamic</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip3900)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1877.56,326.155 2021.56,326.155 \n",
" \"/>\n",
"<g clip-path=\"url(#clip3900)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2045.56, 343.655)\" x=\"2045.56\" y=\"343.655\">FEA</text>\n",
"</g>\n",
"</svg>\n"
]
},
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\n",
"setup=getSetup(latticeSize)\n",
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
"displacements=[]\n",
"save=true\n",
"returnEvery=10\n",
"runMetavoxelGPU!(setup,numTimeSteps,latticeSize,displacements,returnEvery,true)\n",
"\n",
"numTimeStepsRecorded=length(displacements)\n",
"d=[]\n",
"dFEA=[]\n",
"j=length(displacements[end])\n",
"step=100\n",
"for i in 1:step:numTimeStepsRecorded\n",
" append!(d,displacements[i][j].y)\n",
" append!(dFEA,displacementFEA[j].y)\n",
"end\n",
"Loads[latticeSize]=Load\n",
"DDisplacements[latticeSize]=d\n",
"DDisplacementsFEA[latticeSize]=dFEA\n",
"\n",
"E1=getYoungsModulus(latticeSize,75,displacementFEA,Load,topNodesIndices)\n",
"E2=getYoungsModulus(latticeSize,75,displacements[end],Load,topNodesIndices)\n",
"\n",
"EsFEA[latticeSize]=E1\n",
"Es[latticeSize]=E2\n",
"\n",
"print(\"EsFEA:\" )\n",
"println(EsFEA)\n",
"print(\"Es:\" )\n",
"println(Es)\n",
"\n",
"println(\"FEA displacement= $(displacementFEA[j].y),converged displacement= $(displacements[numTimeStepsRecorded][j].y)\")\n",
"plot(1:step:numTimeStepsRecorded,d,label=\"Dynamic\",xlabel=\"timestep\",ylabel=\"displacement\",title=\"$latticeSize Voxel Convergence Study\")\n",
"plot!(1:step:numTimeStepsRecorded,dFEA,label=\"FEA\")\n",
"# savefig(\"4_voxel_convergence\")\n"
]
},
{
"cell_type": "code",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip4300)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip4300)\" d=\"\n",
"M203.721 1425.62 L2352.76 1425.62 L2352.76 121.675 L203.721 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <rect x=\"203\" y=\"121\" width=\"2150\" height=\"1305\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 250.365,1425.62 250.365,121.675 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 675.692,1425.62 675.692,121.675 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1101.02,1425.62 1101.02,121.675 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1526.35,1425.62 1526.35,121.675 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1951.67,1425.62 1951.67,121.675 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,1311.05 2352.76,1311.05 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,926.892 2352.76,926.892 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,542.736 2352.76,542.736 \n",
"<polyline clip-path=\"url(#clip4302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 203.721,158.579 2352.76,158.579 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,1425.62 203.721,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 250.365,1425.62 250.365,1409.97 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 675.692,1425.62 675.692,1409.97 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1101.02,1425.62 1101.02,1409.97 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1526.35,1425.62 1526.35,1409.97 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1951.67,1425.62 1951.67,1409.97 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,1311.05 229.509,1311.05 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,926.892 229.509,926.892 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,542.736 229.509,542.736 \n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 203.721,158.579 229.509,158.579 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 250.365, 1479.62)\" x=\"250.365\" y=\"1479.62\">0</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 675.692, 1479.62)\" x=\"675.692\" y=\"1479.62\">30</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1101.02, 1479.62)\" x=\"1101.02\" y=\"1479.62\">60</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1526.35, 1479.62)\" x=\"1526.35\" y=\"1479.62\">90</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1951.67, 1479.62)\" x=\"1951.67\" y=\"1479.62\">120</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 1328.55)\" x=\"179.721\" y=\"1328.55\">-3</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 944.392)\" x=\"179.721\" y=\"944.392\">-2</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 560.236)\" x=\"179.721\" y=\"560.236\">-1</text>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 179.721, 176.079)\" x=\"179.721\" y=\"176.079\">0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1278.24, 73.2)\" x=\"1278.24\" y=\"73.2\">Node Displacement</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1278.24, 1559.48)\" x=\"1278.24\" y=\"1559.48\">Node ID</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 773.647)\" x=\"89.2861\" y=\"773.647\">displacement</text>\n",
"</g>\n",
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
"<circle clip-path=\"url(#clip4302)\" cx=\"264.542\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"278.72\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"292.898\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"307.075\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"321.253\" cy=\"463.982\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"335.43\" cy=\"301.992\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"349.608\" cy=\"253.252\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"363.785\" cy=\"591.902\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"377.963\" cy=\"594.83\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"392.14\" cy=\"461.458\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"406.318\" cy=\"470.265\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"420.496\" cy=\"299.627\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"434.673\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"448.851\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"463.028\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"477.206\" cy=\"360.914\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"491.383\" cy=\"252.711\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"505.561\" cy=\"325.286\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"519.739\" cy=\"464.058\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"533.916\" cy=\"301.914\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"548.094\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"562.271\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"576.449\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"590.626\" cy=\"461.834\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"604.804\" cy=\"299.857\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"618.982\" cy=\"596.162\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"633.159\" cy=\"592.222\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"647.337\" cy=\"470.868\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"661.514\" cy=\"705.691\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"675.692\" cy=\"615.716\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"689.869\" cy=\"593.798\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"704.047\" cy=\"606.538\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"718.224\" cy=\"599.106\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"732.402\" cy=\"705.454\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"746.58\" cy=\"591.219\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"760.757\" cy=\"616.947\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"774.935\" cy=\"862.346\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"789.112\" cy=\"593.858\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"803.29\" cy=\"986.748\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"817.467\" cy=\"703.031\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"831.645\" cy=\"616.689\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"845.823\" cy=\"704.65\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"860\" cy=\"616.425\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"874.178\" cy=\"596.581\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"888.355\" cy=\"603.512\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"902.533\" cy=\"589.104\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"916.71\" cy=\"1248.47\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"930.888\" cy=\"968.845\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"945.066\" cy=\"958.789\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"959.243\" cy=\"1384.28\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"973.421\" cy=\"1385.42\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"987.598\" cy=\"1255.23\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1001.78\" cy=\"982.605\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1015.95\" cy=\"974.963\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1030.13\" cy=\"984.667\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1044.31\" cy=\"956.756\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1058.49\" cy=\"907.998\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1072.66\" cy=\"1253.92\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1086.84\" cy=\"968.189\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1101.02\" cy=\"1251.49\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1115.2\" cy=\"972.822\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1129.37\" cy=\"1384.47\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1143.55\" cy=\"1381.57\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1157.73\" cy=\"978.779\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1171.91\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1186.08\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1200.26\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1214.44\" cy=\"465.045\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1228.62\" cy=\"300.235\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1242.79\" cy=\"253.761\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1256.97\" cy=\"324.792\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1271.15\" cy=\"361.876\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1285.33\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1299.5\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1313.68\" cy=\"361.308\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1327.86\" cy=\"253.103\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1342.04\" cy=\"360.298\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1356.21\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1370.39\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1384.57\" cy=\"464.631\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1398.75\" cy=\"302.037\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1412.93\" cy=\"325.241\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1427.1\" cy=\"703.907\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1441.28\" cy=\"617.092\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1455.46\" cy=\"595.347\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1469.64\" cy=\"983.296\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1483.81\" cy=\"863.884\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1497.99\" cy=\"865.512\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1512.17\" cy=\"595.5\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1526.35\" cy=\"864.023\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1540.52\" cy=\"704.469\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1554.7\" cy=\"617.5\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1568.88\" cy=\"987.151\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1583.06\" cy=\"1261.29\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1597.23\" cy=\"974.11\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1611.41\" cy=\"959.415\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1625.59\" cy=\"910.661\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1639.77\" cy=\"985.555\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1653.94\" cy=\"982.603\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1668.12\" cy=\"957.374\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1682.3\" cy=\"981.752\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1696.48\" cy=\"1256.33\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1710.65\" cy=\"970.862\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1724.83\" cy=\"908.206\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1739.01\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1753.19\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1767.36\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1781.54\" cy=\"595.376\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1795.72\" cy=\"470.832\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1809.9\" cy=\"302.215\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1824.07\" cy=\"593.337\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1838.25\" cy=\"465.191\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1852.43\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1866.61\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1880.78\" cy=\"324.722\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1894.96\" cy=\"300.393\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1909.14\" cy=\"464.858\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1923.32\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1937.5\" cy=\"158.579\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1951.67\" cy=\"593.786\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1965.85\" cy=\"471.49\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1980.03\" cy=\"596.689\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1994.21\" cy=\"601.952\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2008.38\" cy=\"593.524\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2022.56\" cy=\"616.473\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2036.74\" cy=\"606.975\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2050.92\" cy=\"706.205\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2065.09\" cy=\"983.858\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2079.27\" cy=\"616.697\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2093.45\" cy=\"703.907\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2107.63\" cy=\"603.887\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2121.8\" cy=\"591.416\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2135.98\" cy=\"599.489\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2150.16\" cy=\"1388.71\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2164.34\" cy=\"986.231\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2178.51\" cy=\"971.603\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2192.69\" cy=\"1385.73\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2206.87\" cy=\"1251.9\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2221.05\" cy=\"910.755\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2235.22\" cy=\"971.967\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2249.4\" cy=\"1256.63\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2263.58\" cy=\"1383.05\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2277.76\" cy=\"982.36\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2291.93\" cy=\"1387.59\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"264.542\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"278.72\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"292.898\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"307.075\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"321.253\" cy=\"453.896\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"335.43\" cy=\"298.808\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"349.608\" cy=\"253.263\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"363.785\" cy=\"583.607\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"377.963\" cy=\"587.144\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"392.14\" cy=\"456.15\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"406.318\" cy=\"461\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"420.496\" cy=\"299.283\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"434.673\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"448.851\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"463.028\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"477.206\" cy=\"368.723\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"491.383\" cy=\"253.263\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"505.561\" cy=\"330.871\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"519.739\" cy=\"456.15\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"533.916\" cy=\"299.283\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"548.094\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"562.271\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"576.449\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"590.626\" cy=\"453.896\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"604.804\" cy=\"298.808\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"618.982\" cy=\"583.607\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"633.159\" cy=\"587.144\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"647.337\" cy=\"461\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"661.514\" cy=\"718.905\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"675.692\" cy=\"617.632\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"689.869\" cy=\"593.037\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"704.047\" cy=\"618.662\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"718.224\" cy=\"613.33\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"732.402\" cy=\"713.823\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"746.58\" cy=\"595.548\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"760.757\" cy=\"616.358\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"774.935\" cy=\"846.163\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"789.112\" cy=\"593.037\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"803.29\" cy=\"970.861\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"817.467\" cy=\"713.823\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"831.645\" cy=\"616.358\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"845.823\" cy=\"718.905\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"860\" cy=\"617.632\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"874.178\" cy=\"618.662\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"888.355\" cy=\"613.33\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"902.533\" cy=\"595.548\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"916.71\" cy=\"1233.59\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"930.888\" cy=\"970.895\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"945.066\" cy=\"955.666\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"959.243\" cy=\"1367.04\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"973.421\" cy=\"1373.23\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"987.598\" cy=\"1240.25\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1001.78\" cy=\"982.661\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1015.95\" cy=\"971.361\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1030.13\" cy=\"999.267\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1044.31\" cy=\"955.666\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1058.49\" cy=\"920.956\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1072.66\" cy=\"1240.25\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1086.84\" cy=\"971.361\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1101.02\" cy=\"1233.59\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1115.2\" cy=\"970.895\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1129.37\" cy=\"1367.04\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1143.55\" cy=\"1373.23\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1157.73\" cy=\"982.661\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1171.91\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1186.08\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1200.26\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1214.44\" cy=\"453.896\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1228.62\" cy=\"298.808\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1242.79\" cy=\"253.263\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1256.97\" cy=\"328.222\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1271.15\" cy=\"366.291\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1285.33\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1299.5\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1313.68\" cy=\"368.723\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1327.86\" cy=\"253.263\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1342.04\" cy=\"366.291\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1356.21\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1370.39\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1384.57\" cy=\"453.896\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1398.75\" cy=\"298.808\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1412.93\" cy=\"328.222\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1427.1\" cy=\"718.905\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1441.28\" cy=\"617.632\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1455.46\" cy=\"593.037\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1469.64\" cy=\"977.204\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1483.81\" cy=\"851.06\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1497.99\" cy=\"846.163\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1512.17\" cy=\"593.037\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1526.35\" cy=\"851.06\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1540.52\" cy=\"718.905\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1554.7\" cy=\"617.632\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1568.88\" cy=\"977.204\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1583.06\" cy=\"1233.59\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1597.23\" cy=\"970.895\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1611.41\" cy=\"955.666\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1625.59\" cy=\"913.135\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1639.77\" cy=\"993.184\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1653.94\" cy=\"999.267\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1668.12\" cy=\"955.666\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1682.3\" cy=\"993.184\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1696.48\" cy=\"1233.59\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1710.65\" cy=\"970.895\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1724.83\" cy=\"913.135\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1739.01\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1753.19\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1767.36\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1781.54\" cy=\"583.607\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1795.72\" cy=\"461\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1809.9\" cy=\"299.283\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1824.07\" cy=\"587.144\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1838.25\" cy=\"456.15\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1852.43\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1866.61\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1880.78\" cy=\"330.871\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1894.96\" cy=\"299.283\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1909.14\" cy=\"456.15\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1923.32\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1937.5\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1951.67\" cy=\"583.607\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1965.85\" cy=\"461\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1980.03\" cy=\"587.144\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"1994.21\" cy=\"618.662\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2008.38\" cy=\"595.548\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2022.56\" cy=\"616.358\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2036.74\" cy=\"613.33\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2050.92\" cy=\"713.823\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2065.09\" cy=\"970.861\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2079.27\" cy=\"616.358\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2093.45\" cy=\"713.823\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2107.63\" cy=\"618.662\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2121.8\" cy=\"595.548\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2135.98\" cy=\"613.33\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2150.16\" cy=\"1367.04\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2164.34\" cy=\"982.661\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2178.51\" cy=\"971.361\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2192.69\" cy=\"1373.23\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2206.87\" cy=\"1240.25\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2221.05\" cy=\"920.956\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2235.22\" cy=\"971.361\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2249.4\" cy=\"1240.25\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2263.58\" cy=\"1367.04\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2277.76\" cy=\"982.661\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip4302)\" cx=\"2291.93\" cy=\"1373.23\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<path clip-path=\"url(#clip4300)\" d=\"\n",
"M1853.56 386.635 L2280.76 386.635 L2280.76 205.195 L1853.56 205.195 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip4300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1853.56,386.635 2280.76,386.635 2280.76,205.195 1853.56,205.195 1853.56,386.635 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip4300)\" cx=\"1961.56\" cy=\"265.675\" r=\"21\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2045.56, 283.175)\" x=\"2045.56\" y=\"283.175\">Dyanmic</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip4300)\" cx=\"1961.56\" cy=\"326.155\" r=\"21\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip4300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2045.56, 343.655)\" x=\"2045.56\" y=\"343.655\">FEA</text>\n",
"</g>\n",
"</svg>\n"
]
},
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"n=[]\n",
"nFEA=[]\n",
"j=length(displacements[end])\n",
"for i in 1:j\n",
" append!(n,displacements[end][i].y)\n",
" append!(nFEA,displacementFEA[i].y)\n",
"end\n",
"scatter(1:j,n,label=\"Dyanmic\",xlabel=\"Node ID\",ylabel=\"displacement\",title=\"Node Displacement\")\n",
"scatter!(1:j,nFEA,label=\"FEA\")\n",
"# savefig(\"node_displacement_four_voxel\")"
]
},
{
"cell_type": "code",
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip8300)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip8300)\" d=\"\n",
"M242.516 1425.62 L2352.76 1425.62 L2352.76 121.675 L242.516 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip8302\">\n",
" <rect x=\"242\" y=\"121\" width=\"2111\" height=\"1305\"/>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 302.24,1425.62 302.24,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 799.938,1425.62 799.938,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1297.64,1425.62 1297.64,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1795.33,1425.62 1795.33,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2293.03,1425.62 2293.03,121.675 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,1388.71 2352.76,1388.71 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,1200.01 2352.76,1200.01 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,1011.3 2352.76,1011.3 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,822.588 2352.76,822.588 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,633.879 2352.76,633.879 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,445.17 2352.76,445.17 \n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 242.516,256.461 2352.76,256.461 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,1425.62 2352.76,1425.62 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,1425.62 242.516,121.675 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 302.24,1425.62 302.24,1409.97 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 799.938,1425.62 799.938,1409.97 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1297.64,1425.62 1297.64,1409.97 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1795.33,1425.62 1795.33,1409.97 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2293.03,1425.62 2293.03,1409.97 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,1388.71 267.839,1388.71 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,1200.01 267.839,1200.01 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,1011.3 267.839,1011.3 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,822.588 267.839,822.588 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,633.879 267.839,633.879 \n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,445.17 267.839,445.17 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 242.516,256.461 267.839,256.461 \n",
" \"/>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 302.24, 1479.62)\" x=\"302.24\" y=\"1479.62\">1</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 799.938, 1479.62)\" x=\"799.938\" y=\"1479.62\">2</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1297.64, 1479.62)\" x=\"1297.64\" y=\"1479.62\">3</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1795.33, 1479.62)\" x=\"1795.33\" y=\"1479.62\">4</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2293.03, 1479.62)\" x=\"2293.03\" y=\"1479.62\">5</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 1406.21)\" x=\"218.516\" y=\"1406.21\">0.00</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 1217.51)\" x=\"218.516\" y=\"1217.51\">0.01</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 1028.8)\" x=\"218.516\" y=\"1028.8\">0.02</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 840.088)\" x=\"218.516\" y=\"840.088\">0.03</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 651.379)\" x=\"218.516\" y=\"651.379\">0.04</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 462.67)\" x=\"218.516\" y=\"462.67\">0.05</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 218.516, 273.961)\" x=\"218.516\" y=\"273.961\">0.06</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1297.64, 73.2)\" x=\"1297.64\" y=\"73.2\">Young's Modulus</text>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1297.64, 1559.48)\" x=\"1297.64\" y=\"1559.48\">lattice size</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 773.647)\" x=\"89.2861\" y=\"773.647\">E</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 302.24,184.235 799.938,1388.71 1297.64,1388.71 1795.33,1388.71 2293.03,1388.71 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8302)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 302.24,158.579 799.938,1388.71 1297.64,1388.71 1795.33,1388.71 2293.03,1388.71 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"302.24\" cy=\"184.235\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"799.938\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"1297.64\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"1795.33\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"2293.03\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"302.24\" cy=\"158.579\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"799.938\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"1297.64\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"1795.33\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip8302)\" cx=\"2293.03\" cy=\"1388.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<path clip-path=\"url(#clip8300)\" d=\"\n",
"M1853.56 386.635 L2280.76 386.635 L2280.76 205.195 L1853.56 205.195 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1853.56,386.635 2280.76,386.635 2280.76,205.195 1853.56,205.195 1853.56,386.635 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1877.56,265.675 2021.56,265.675 \n",
" \"/>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2045.56, 283.175)\" x=\"2045.56\" y=\"283.175\">Dyanmic</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip8300)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1877.56,326.155 2021.56,326.155 \n",
" \"/>\n",
"<g clip-path=\"url(#clip8300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2045.56, 343.655)\" x=\"2045.56\" y=\"343.655\">FEA</text>\n",
"</g>\n",
"</svg>\n"
]
},
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Es[1]=EsFEA[1]\n",
"plot(1:5,Es,label=\"Dyanmic\",xlabel=\"lattice size\",ylabel=\"E\",title=\"Young's Modulus\")\n",
"plot!(1:5,EsFEA,label=\"FEA\")\n",
"scatter!(1:5,Es,color=\"black\",label=\"\")\n",
"scatter!(1:5,EsFEA,color=\"black\",label=\"\")\n",
"# savefig(\"youngs_modulus1\")"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"ename": "BoundsError",
"evalue": "BoundsError: attempt to access 0-element Array{Float64,1} at index [1:201]",
"output_type": "error",
"traceback": [
"BoundsError: attempt to access 0-element Array{Float64,1} at index [1:201]",
"",
"Stacktrace:",
" [1] throw_boundserror(::Array{Float64,1}, ::Tuple{UnitRange{Int64}}) at .\\abstractarray.jl:538",
" [2] checkbounds at .\\abstractarray.jl:503 [inlined]",
" [3] getindex(::Array{Float64,1}, ::UnitRange{Int64}) at .\\array.jl:734",
" [4] gr_display(::Plots.Subplot{Plots.GRBackend}, ::Measures.Length{:mm,Float64}, ::Measures.Length{:mm,Float64}, ::Array{Float64,1}) at C:\\Users\\amira\\.julia\\packages\\Plots\\cc8wh\\src\\backends\\gr.jl:1597",
" [5] gr_display(::Plots.Plot{Plots.GRBackend}, ::String) at C:\\Users\\amira\\.julia\\packages\\Plots\\cc8wh\\src\\backends\\gr.jl:716",
" [6] _show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol(\"image/svg+xml\")}, ::Plots.Plot{Plots.GRBackend}) at C:\\Users\\amira\\.julia\\packages\\Plots\\cc8wh\\src\\backends\\gr.jl:1922",
" [7] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::MIME{Symbol(\"image/svg+xml\")}, ::Plots.Plot{Plots.GRBackend}) at C:\\Users\\amira\\.julia\\packages\\Plots\\cc8wh\\src\\output.jl:216",
" [8] #sprint#342(::Nothing, ::Int64, ::typeof(sprint), ::Function, ::MIME{Symbol(\"image/svg+xml\")}, ::Vararg{Any,N} where N) at .\\strings\\io.jl:107",
" [9] sprint(::Function, ::MIME{Symbol(\"image/svg+xml\")}, ::Vararg{Any,N} where N) at .\\strings\\io.jl:103",
" [10] _ijulia_display_dict(::Plots.Plot{Plots.GRBackend}) at C:\\Users\\amira\\.julia\\packages\\Plots\\cc8wh\\src\\ijulia.jl:53",
" [11] display_dict(::Plots.Plot{Plots.GRBackend}) at C:\\Users\\amira\\.julia\\packages\\Plots\\cc8wh\\src\\init.jl:83",
" [12] #invokelatest#1 at .\\essentials.jl:790 [inlined]",
" [13] invokelatest at .\\essentials.jl:789 [inlined]",
" [14] execute_request(::ZMQ.Socket, ::IJulia.Msg) at C:\\Users\\amira\\.julia\\packages\\IJulia\\DrVMH\\src\\execute_request.jl:112",
" [15] #invokelatest#1 at .\\essentials.jl:790 [inlined]",
" [16] invokelatest at .\\essentials.jl:789 [inlined]",
" [17] eventloop(::ZMQ.Socket) at C:\\Users\\amira\\.julia\\packages\\IJulia\\DrVMH\\src\\eventloop.jl:8",
" [18] (::getfield(IJulia, Symbol(\"##15#18\")))() at .\\task.jl:268"
]
}
],
"source": [
"plot()\n",
"for i in 2:5\n",
" plot!(1:step:numTimeStepsRecorded,DDisplacements[i],label=\"$i x dynamic\",xlabel=\"timestep\",ylabel=\"displacement\",title=\"Dynamic Model Convergence\")\n",
" plot!(1:step:numTimeStepsRecorded,DDisplacementsFEA[i],label=\"$i x fea\",xlabel=\"timestep\",ylabel=\"displacement\",title=\"Dynamic Model Convergence\")\n",
"\n",
"end\n",
"plot!()\n",
"# savefig(\"total_convergence1\")"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0.0, 0.0, 0.0, 0.0, 1.73458063195242]\n"
]
},
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip2100\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip2100)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip2101\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip2100)\" d=\"\n",
"M175.611 1425.62 L2352.76 1425.62 L2352.76 47.2441 L175.611 47.2441 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip2102\">\n",
" <rect x=\"175\" y=\"47\" width=\"2178\" height=\"1379\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 237.228,1425.62 237.228,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 750.706,1425.62 750.706,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1264.18,1425.62 1264.18,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1777.66,1425.62 1777.66,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2291.14,1425.62 2291.14,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 175.611,1386.61 2352.76,1386.61 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 175.611,1030.15 2352.76,1030.15 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 175.611,673.695 2352.76,673.695 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 175.611,317.239 2352.76,317.239 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 175.611,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 175.611,1425.62 175.611,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 237.228,1425.62 237.228,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 750.706,1425.62 750.706,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1264.18,1425.62 1264.18,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1777.66,1425.62 1777.66,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2291.14,1425.62 2291.14,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 175.611,1386.61 201.736,1386.61 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 175.611,1030.15 201.736,1030.15 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 175.611,673.695 201.736,673.695 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 175.611,317.239 201.736,317.239 \n",
" \"/>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 237.228, 1479.62)\" x=\"237.228\" y=\"1479.62\">1</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 750.706, 1479.62)\" x=\"750.706\" y=\"1479.62\">2</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1264.18, 1479.62)\" x=\"1264.18\" y=\"1479.62\">3</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1777.66, 1479.62)\" x=\"1777.66\" y=\"1479.62\">4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2291.14, 1479.62)\" x=\"2291.14\" y=\"1479.62\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 151.611, 1404.11)\" x=\"151.611\" y=\"1404.11\">0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 151.611, 1047.65)\" x=\"151.611\" y=\"1047.65\">1</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 151.611, 691.195)\" x=\"151.611\" y=\"691.195\">2</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 151.611, 334.739)\" x=\"151.611\" y=\"334.739\">3</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1264.18, 1559.48)\" x=\"1264.18\" y=\"1559.48\">lattice size</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 736.431)\" x=\"89.2861\" y=\"736.431\">E</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 237.228,1386.61 750.706,1386.61 1264.18,1386.61 1777.66,1386.61 2291.14,768.305 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"237.228\" cy=\"1386.61\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"750.706\" cy=\"1386.61\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"1264.18\" cy=\"1386.61\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"1777.66\" cy=\"1386.61\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"2291.14\" cy=\"768.305\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#3da44d; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 237.228,1226.2 750.706,782.093 1264.18,565.653 1777.66,86.2547 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"237.228\" cy=\"1226.2\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"750.706\" cy=\"782.093\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"1264.18\" cy=\"565.653\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"1777.66\" cy=\"86.2547\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<polyline clip-path=\"url(#clip2102)\" style=\"stroke:#ac8d18; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 237.228,1365.22 750.706,901.827 1264.18,855.488 1777.66,787.761 2291.14,769.938 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"237.228\" cy=\"1365.22\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"750.706\" cy=\"901.827\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"1264.18\" cy=\"855.488\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"1777.66\" cy=\"787.761\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip2102)\" cx=\"2291.14\" cy=\"769.938\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<path clip-path=\"url(#clip2100)\" d=\"\n",
"M1636.82 372.684 L2280.76 372.684 L2280.76 130.764 L1636.82 130.764 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1636.82,372.684 2280.76,372.684 2280.76,130.764 1636.82,130.764 1636.82,372.684 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1660.82,191.244 1804.82,191.244 \n",
" \"/>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1828.82, 208.744)\" x=\"1828.82\" y=\"208.744\">metavoxel (single)</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#3da44d; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1660.82,251.724 1804.82,251.724 \n",
" \"/>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1828.82, 269.224)\" x=\"1828.82\" y=\"269.224\">measured (double)</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip2100)\" style=\"stroke:#ac8d18; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1660.82,312.204 1804.82,312.204 \n",
" \"/>\n",
"<g clip-path=\"url(#clip2100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1828.82, 329.704)\" x=\"1828.82\" y=\"329.704\">voxframe (single)</text>\n",
"</g>\n",
"</svg>\n"
]
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Emeasured = [0.4500, 1.6959, 2.3031, 3.6480]\n",
"voxFrameSingle=[0.06,1.36,1.49,1.68,1.73]#,1.80,1.83]\n",
"println(EsFEA)\n",
"plot(1:5,EsFEA,label=\"metavoxel (single)\",xlabel=\"lattice size\",ylabel=\"E\")\n",
"scatter!(1:5,EsFEA,color=\"black\",label=\"\")\n",
"plot!(1:4,Emeasured,label=\"measured (double)\")\n",
"scatter!(1:4,Emeasured,color=\"black\",label=\"\")\n",
"plot!(1:5,voxFrameSingle,label=\"voxframe (single)\")\n",
"scatter!(1:5,voxFrameSingle,color=\"black\",label=\"\")\n",
"# savefig(\"youngs_fea_comparison\")"
]
},
{
"cell_type": "code",
"execution_count": 284,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip6300\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip6300)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip6301\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip6300)\" d=\"\n",
"M202.373 1425.62 L2352.76 1425.62 L2352.76 47.2441 L202.373 47.2441 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip6302\">\n",
" <rect x=\"202\" y=\"47\" width=\"2151\" height=\"1379\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 262.737,1425.62 262.737,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 758.137,1425.62 758.137,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1253.54,1425.62 1253.54,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1748.94,1425.62 1748.94,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2244.34,1425.62 2244.34,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 202.373,1386.66 2352.76,1386.66 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 202.373,1119.97 2352.76,1119.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 202.373,853.271 2352.76,853.271 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 202.373,586.575 2352.76,586.575 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 202.373,319.88 2352.76,319.88 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 202.373,53.1845 2352.76,53.1845 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,1425.62 202.373,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 262.737,1425.62 262.737,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 758.137,1425.62 758.137,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1253.54,1425.62 1253.54,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1748.94,1425.62 1748.94,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2244.34,1425.62 2244.34,1409.08 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,1386.66 228.178,1386.66 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,1119.97 228.178,1119.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,853.271 228.178,853.271 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,586.575 228.178,586.575 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,319.88 228.178,319.88 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 202.373,53.1845 228.178,53.1845 \n",
" \"/>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 262.737, 1479.62)\" x=\"262.737\" y=\"1479.62\">0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 758.137, 1479.62)\" x=\"758.137\" y=\"1479.62\">1000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1253.54, 1479.62)\" x=\"1253.54\" y=\"1479.62\">2000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1748.94, 1479.62)\" x=\"1748.94\" y=\"1479.62\">3000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2244.34, 1479.62)\" x=\"2244.34\" y=\"1479.62\">4000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 178.373, 1404.16)\" x=\"178.373\" y=\"1404.16\">0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 178.373, 1137.47)\" x=\"178.373\" y=\"1137.47\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 178.373, 870.771)\" x=\"178.373\" y=\"870.771\">10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 178.373, 604.075)\" x=\"178.373\" y=\"604.075\">15</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 178.373, 337.38)\" x=\"178.373\" y=\"337.38\">20</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 178.373, 70.6845)\" x=\"178.373\" y=\"70.6845\">25</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1277.56, 1559.48)\" x=\"1277.56\" y=\"1559.48\">number of voxels</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 736.431)\" x=\"89.2861\" y=\"736.431\">Time(s)</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 263.233,1383.64 266.701,1378.48 294.443,1370.66 516.382,1365.33 2291.9,1343.99 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"263.233\" cy=\"1383.64\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"266.701\" cy=\"1378.48\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"294.443\" cy=\"1370.66\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"516.382\" cy=\"1365.33\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"2291.9\" cy=\"1343.99\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<polyline clip-path=\"url(#clip6302)\" style=\"stroke:#3da44d; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 263.233,1386.61 266.701,1386.53 294.443,1383.71 516.382,1354.93 2291.9,86.2547 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"263.233\" cy=\"1386.61\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"266.701\" cy=\"1386.53\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"294.443\" cy=\"1383.71\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"516.382\" cy=\"1354.93\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<circle clip-path=\"url(#clip6302)\" cx=\"2291.9\" cy=\"86.2547\" r=\"14\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"none\"/>\n",
"<path clip-path=\"url(#clip6300)\" d=\"\n",
"M1767.89 312.204 L2280.76 312.204 L2280.76 130.764 L1767.89 130.764 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1767.89,312.204 2280.76,312.204 2280.76,130.764 1767.89,130.764 1767.89,312.204 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1791.89,191.244 1935.89,191.244 \n",
" \"/>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1959.89, 208.744)\" x=\"1959.89\" y=\"208.744\">dynamic gpu</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip6300)\" style=\"stroke:#3da44d; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1791.89,251.724 1935.89,251.724 \n",
" \"/>\n",
"<g clip-path=\"url(#clip6300)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1959.89, 269.224)\" x=\"1959.89\" y=\"269.224\">c solver</text>\n",
"</g>\n",
"</svg>\n"
]
},
"execution_count": 284,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"gpu=[5.668E-02,1.534E-01,3.000E-01,4.000E-01,8.000E-01]\n",
"csolver=[1.010E-03,2.483E-03,5.534E-02,5.949E-01,2.438E+01]\n",
"X=[1,8,64,512,4096]\n",
"plot(X,gpu,label=\"dynamic gpu\",xlabel=\"number of voxels\",ylabel=\"Time(s)\")\n",
"scatter!(X,gpu,color=\"black\",label=\"\")\n",
"plot!(X,csolver,label=\"c solver\")\n",
"scatter!(X,csolver,color=\"black\",label=\"\")\n"
]
},
{
"cell_type": "code",
"execution_count": 279,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip4700\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip4700)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip4701\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip4700)\" d=\"\n",
"M269.279 1425.62 L2352.76 1425.62 L2352.76 121.675 L269.279 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip4702\">\n",
" <rect x=\"269\" y=\"121\" width=\"2084\" height=\"1305\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 328.147,1425.62 328.147,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 819.533,1425.62 819.533,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1310.92,1425.62 1310.92,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1802.31,1425.62 1802.31,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2293.69,1425.62 2293.69,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 269.279,1258.39 2352.76,1258.39 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 269.279,1011.49 2352.76,1011.49 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 269.279,764.584 2352.76,764.584 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 269.279,517.679 2352.76,517.679 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 269.279,270.773 2352.76,270.773 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,1425.62 269.279,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 328.147,1425.62 328.147,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 819.533,1425.62 819.533,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1310.92,1425.62 1310.92,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1802.31,1425.62 1802.31,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2293.69,1425.62 2293.69,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,1258.39 294.28,1258.39 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,1011.49 294.28,1011.49 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,764.584 294.28,764.584 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,517.679 294.28,517.679 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 269.279,270.773 294.28,270.773 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 328.147, 1479.62)\" x=\"328.147\" y=\"1479.62\">0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 734.39, 1500.63)\" x=\"734.39\" y=\"1500.63\">5.0×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 882.931, 1473.22)\" x=\"882.931\" y=\"1473.22\">3</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1225.78, 1500.63)\" x=\"1225.78\" y=\"1500.63\">1.0×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 1374.32, 1473.22)\" x=\"1374.32\" y=\"1473.22\">4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1717.16, 1500.63)\" x=\"1717.16\" y=\"1500.63\">1.5×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 1865.7, 1473.22)\" x=\"1865.7\" y=\"1473.22\">4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2208.55, 1500.63)\" x=\"2208.55\" y=\"1500.63\">2.0×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 2357.09, 1473.22)\" x=\"2357.09\" y=\"1473.22\">4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 245.279, 1275.89)\" x=\"245.279\" y=\"1275.89\">0.025</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 245.279, 1028.99)\" x=\"245.279\" y=\"1028.99\">0.050</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 245.279, 782.084)\" x=\"245.279\" y=\"782.084\">0.075</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 245.279, 535.179)\" x=\"245.279\" y=\"535.179\">0.100</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 245.279, 288.273)\" x=\"245.279\" y=\"288.273\">0.125</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1311.02, 73.2)\" x=\"1311.02\" y=\"73.2\">Dynamic Model Convergence</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1311.02, 1559.48)\" x=\"1311.02\" y=\"1559.48\">timestep</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 773.647)\" x=\"89.2861\" y=\"773.647\">strain</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 328.245,158.579 338.073,158.579 347.901,158.579 357.728,158.579 367.556,158.579 377.384,158.579 387.211,158.579 397.039,158.579 406.867,158.579 416.695,158.579 \n",
" 426.522,158.579 436.35,158.579 446.178,158.579 456.005,158.579 465.833,158.579 475.661,158.579 485.489,158.579 495.316,158.579 505.144,158.579 514.972,158.579 \n",
" 524.8,158.579 534.627,158.579 544.455,158.579 554.283,158.579 564.11,158.579 573.938,158.579 583.766,158.579 593.594,158.579 603.421,158.579 613.249,158.579 \n",
" 623.077,158.579 632.904,158.579 642.732,158.579 652.56,158.579 662.388,158.579 672.215,158.579 682.043,158.579 691.871,158.579 701.699,158.579 711.526,158.579 \n",
" 721.354,158.579 731.182,158.579 741.009,158.579 750.837,158.579 760.665,158.579 770.493,158.579 780.32,158.579 790.148,158.579 799.976,158.579 809.803,158.579 \n",
" 819.631,158.579 829.459,158.579 839.287,158.579 849.114,158.579 858.942,158.579 868.77,158.579 878.598,158.579 888.425,158.579 898.253,158.579 908.081,158.579 \n",
" 917.908,158.579 927.736,158.579 937.564,158.579 947.392,158.579 957.219,158.579 967.047,158.579 976.875,158.579 986.702,158.579 996.53,158.579 1006.36,158.579 \n",
" 1016.19,158.579 1026.01,158.579 1035.84,158.579 1045.67,158.579 1055.5,158.579 1065.32,158.579 1075.15,158.579 1084.98,158.579 1094.81,158.579 1104.64,158.579 \n",
" 1114.46,158.579 1124.29,158.579 1134.12,158.579 1143.95,158.579 1153.77,158.579 1163.6,158.579 1173.43,158.579 1183.26,158.579 1193.08,158.579 1202.91,158.579 \n",
" 1212.74,158.579 1222.57,158.579 1232.4,158.579 1242.22,158.579 1252.05,158.579 1261.88,158.579 1271.71,158.579 1281.53,158.579 1291.36,158.579 1301.19,158.579 \n",
" 1311.02,158.579 1320.85,158.579 1330.67,158.579 1340.5,158.579 1350.33,158.579 1360.16,158.579 1369.98,158.579 1379.81,158.579 1389.64,158.579 1399.47,158.579 \n",
" 1409.29,158.579 1419.12,158.579 1428.95,158.579 1438.78,158.579 1448.61,158.579 1458.43,158.579 1468.26,158.579 1478.09,158.579 1487.92,158.579 1497.74,158.579 \n",
" 1507.57,158.579 1517.4,158.579 1527.23,158.579 1537.05,158.579 1546.88,158.579 1556.71,158.579 1566.54,158.579 1576.37,158.579 1586.19,158.579 1596.02,158.579 \n",
" 1605.85,158.579 1615.68,158.579 1625.5,158.579 1635.33,158.579 1645.16,158.579 1654.99,158.579 1664.82,158.579 1674.64,158.579 1684.47,158.579 1694.3,158.579 \n",
" 1704.13,158.579 1713.95,158.579 1723.78,158.579 1733.61,158.579 1743.44,158.579 1753.26,158.579 1763.09,158.579 1772.92,158.579 1782.75,158.579 1792.58,158.579 \n",
" 1802.4,158.579 1812.23,158.579 1822.06,158.579 1831.89,158.579 1841.71,158.579 1851.54,158.579 1861.37,158.579 1871.2,158.579 1881.03,158.579 1890.85,158.579 \n",
" 1900.68,158.579 1910.51,158.579 1920.34,158.579 1930.16,158.579 1939.99,158.579 1949.82,158.579 1959.65,158.579 1969.47,158.579 1979.3,158.579 1989.13,158.579 \n",
" 1998.96,158.579 2008.79,158.579 2018.61,158.579 2028.44,158.579 2038.27,158.579 2048.1,158.579 2057.92,158.579 2067.75,158.579 2077.58,158.579 2087.41,158.579 \n",
" 2097.24,158.579 2107.06,158.579 2116.89,158.579 2126.72,158.579 2136.55,158.579 2146.37,158.579 2156.2,158.579 2166.03,158.579 2175.86,158.579 2185.68,158.579 \n",
" 2195.51,158.579 2205.34,158.579 2215.17,158.579 2225,158.579 2234.82,158.579 2244.65,158.579 2254.48,158.579 2264.31,158.579 2274.13,158.579 2283.96,158.579 \n",
" 2293.79,158.579 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 328.245,1376.9 338.073,1376.9 347.901,1376.9 357.728,1376.9 367.556,1376.9 377.384,1376.9 387.211,1376.9 397.039,1376.9 406.867,1376.9 416.695,1376.9 \n",
" 426.522,1376.9 436.35,1376.9 446.178,1376.9 456.005,1376.9 465.833,1376.9 475.661,1376.9 485.489,1376.9 495.316,1376.9 505.144,1376.9 514.972,1376.9 \n",
" 524.8,1376.9 534.627,1376.9 544.455,1376.9 554.283,1376.9 564.11,1376.9 573.938,1376.9 583.766,1376.9 593.594,1376.9 603.421,1376.9 613.249,1376.9 \n",
" 623.077,1376.9 632.904,1376.9 642.732,1376.9 652.56,1376.9 662.388,1376.9 672.215,1376.9 682.043,1376.9 691.871,1376.9 701.699,1376.9 711.526,1376.9 \n",
" 721.354,1376.9 731.182,1376.9 741.009,1376.9 750.837,1376.9 760.665,1376.9 770.493,1376.9 780.32,1376.9 790.148,1376.9 799.976,1376.9 809.803,1376.9 \n",
" 819.631,1376.9 829.459,1376.9 839.287,1376.9 849.114,1376.9 858.942,1376.9 868.77,1376.9 878.598,1376.9 888.425,1376.9 898.253,1376.9 908.081,1376.9 \n",
" 917.908,1376.9 927.736,1376.9 937.564,1376.9 947.392,1376.9 957.219,1376.9 967.047,1376.9 976.875,1376.9 986.702,1376.9 996.53,1376.9 1006.36,1376.9 \n",
" 1016.19,1376.9 1026.01,1376.9 1035.84,1376.9 1045.67,1376.9 1055.5,1376.9 1065.32,1376.9 1075.15,1376.9 1084.98,1376.9 1094.81,1376.9 1104.64,1376.9 \n",
" 1114.46,1376.9 1124.29,1376.9 1134.12,1376.9 1143.95,1376.9 1153.77,1376.9 1163.6,1376.9 1173.43,1376.9 1183.26,1376.9 1193.08,1376.9 1202.91,1376.9 \n",
" 1212.74,1376.9 1222.57,1376.9 1232.4,1376.9 1242.22,1376.9 1252.05,1376.9 1261.88,1376.9 1271.71,1376.9 1281.53,1376.9 1291.36,1376.9 1301.19,1376.9 \n",
" 1311.02,1376.9 1320.85,1376.9 1330.67,1376.9 1340.5,1376.9 1350.33,1376.9 1360.16,1376.9 1369.98,1376.9 1379.81,1376.9 1389.64,1376.9 1399.47,1376.9 \n",
" 1409.29,1376.9 1419.12,1376.9 1428.95,1376.9 1438.78,1376.9 1448.61,1376.9 1458.43,1376.9 1468.26,1376.9 1478.09,1376.9 1487.92,1376.9 1497.74,1376.9 \n",
" 1507.57,1376.9 1517.4,1376.9 1527.23,1376.9 1537.05,1376.9 1546.88,1376.9 1556.71,1376.9 1566.54,1376.9 1576.37,1376.9 1586.19,1376.9 1596.02,1376.9 \n",
" 1605.85,1376.9 1615.68,1376.9 1625.5,1376.9 1635.33,1376.9 1645.16,1376.9 1654.99,1376.9 1664.82,1376.9 1674.64,1376.9 1684.47,1376.9 1694.3,1376.9 \n",
" 1704.13,1376.9 1713.95,1376.9 1723.78,1376.9 1733.61,1376.9 1743.44,1376.9 1753.26,1376.9 1763.09,1376.9 1772.92,1376.9 1782.75,1376.9 1792.58,1376.9 \n",
" 1802.4,1376.9 1812.23,1376.9 1822.06,1376.9 1831.89,1376.9 1841.71,1376.9 1851.54,1376.9 1861.37,1376.9 1871.2,1376.9 1881.03,1376.9 1890.85,1376.9 \n",
" 1900.68,1376.9 1910.51,1376.9 1920.34,1376.9 1930.16,1376.9 1939.99,1376.9 1949.82,1376.9 1959.65,1376.9 1969.47,1376.9 1979.3,1376.9 1989.13,1376.9 \n",
" 1998.96,1376.9 2008.79,1376.9 2018.61,1376.9 2028.44,1376.9 2038.27,1376.9 2048.1,1376.9 2057.92,1376.9 2067.75,1376.9 2077.58,1376.9 2087.41,1376.9 \n",
" 2097.24,1376.9 2107.06,1376.9 2116.89,1376.9 2126.72,1376.9 2136.55,1376.9 2146.37,1376.9 2156.2,1376.9 2166.03,1376.9 2175.86,1376.9 2185.68,1376.9 \n",
" 2195.51,1376.9 2205.34,1376.9 2215.17,1376.9 2225,1376.9 2234.82,1376.9 2244.65,1376.9 2254.48,1376.9 2264.31,1376.9 2274.13,1376.9 2283.96,1376.9 \n",
" 2293.79,1376.9 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#3da44d; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 328.245,1366.51 338.073,1366.51 347.901,1366.51 357.728,1366.51 367.556,1366.51 377.384,1366.51 387.211,1366.51 397.039,1366.51 406.867,1366.51 416.695,1366.51 \n",
" 426.522,1366.51 436.35,1366.51 446.178,1366.51 456.005,1366.51 465.833,1366.51 475.661,1366.51 485.489,1366.51 495.316,1366.51 505.144,1366.51 514.972,1366.51 \n",
" 524.8,1366.51 534.627,1366.51 544.455,1366.51 554.283,1366.51 564.11,1366.51 573.938,1366.51 583.766,1366.51 593.594,1366.51 603.421,1366.51 613.249,1366.51 \n",
" 623.077,1366.51 632.904,1366.51 642.732,1366.51 652.56,1366.51 662.388,1366.51 672.215,1366.51 682.043,1366.51 691.871,1366.51 701.699,1366.51 711.526,1366.51 \n",
" 721.354,1366.51 731.182,1366.51 741.009,1366.51 750.837,1366.51 760.665,1366.51 770.493,1366.51 780.32,1366.51 790.148,1366.51 799.976,1366.51 809.803,1366.51 \n",
" 819.631,1366.51 829.459,1366.51 839.287,1366.51 849.114,1366.51 858.942,1366.51 868.77,1366.51 878.598,1366.51 888.425,1366.51 898.253,1366.51 908.081,1366.51 \n",
" 917.908,1366.51 927.736,1366.51 937.564,1366.51 947.392,1366.51 957.219,1366.51 967.047,1366.51 976.875,1366.51 986.702,1366.51 996.53,1366.51 1006.36,1366.51 \n",
" 1016.19,1366.51 1026.01,1366.51 1035.84,1366.51 1045.67,1366.51 1055.5,1366.51 1065.32,1366.51 1075.15,1366.51 1084.98,1366.51 1094.81,1366.51 1104.64,1366.51 \n",
" 1114.46,1366.51 1124.29,1366.51 1134.12,1366.51 1143.95,1366.51 1153.77,1366.51 1163.6,1366.51 1173.43,1366.51 1183.26,1366.51 1193.08,1366.51 1202.91,1366.51 \n",
" 1212.74,1366.51 1222.57,1366.51 1232.4,1366.51 1242.22,1366.51 1252.05,1366.51 1261.88,1366.51 1271.71,1366.51 1281.53,1366.51 1291.36,1366.51 1301.19,1366.51 \n",
" 1311.02,1366.51 1320.85,1366.51 1330.67,1366.51 1340.5,1366.51 1350.33,1366.51 1360.16,1366.51 1369.98,1366.51 1379.81,1366.51 1389.64,1366.51 1399.47,1366.51 \n",
" 1409.29,1366.51 1419.12,1366.51 1428.95,1366.51 1438.78,1366.51 1448.61,1366.51 1458.43,1366.51 1468.26,1366.51 1478.09,1366.51 1487.92,1366.51 1497.74,1366.51 \n",
" 1507.57,1366.51 1517.4,1366.51 1527.23,1366.51 1537.05,1366.51 1546.88,1366.51 1556.71,1366.51 1566.54,1366.51 1576.37,1366.51 1586.19,1366.51 1596.02,1366.51 \n",
" 1605.85,1366.51 1615.68,1366.51 1625.5,1366.51 1635.33,1366.51 1645.16,1366.51 1654.99,1366.51 1664.82,1366.51 1674.64,1366.51 1684.47,1366.51 1694.3,1366.51 \n",
" 1704.13,1366.51 1713.95,1366.51 1723.78,1366.51 1733.61,1366.51 1743.44,1366.51 1753.26,1366.51 1763.09,1366.51 1772.92,1366.51 1782.75,1366.51 1792.58,1366.51 \n",
" 1802.4,1366.51 1812.23,1366.51 1822.06,1366.51 1831.89,1366.51 1841.71,1366.51 1851.54,1366.51 1861.37,1366.51 1871.2,1366.51 1881.03,1366.51 1890.85,1366.51 \n",
" 1900.68,1366.51 1910.51,1366.51 1920.34,1366.51 1930.16,1366.51 1939.99,1366.51 1949.82,1366.51 1959.65,1366.51 1969.47,1366.51 1979.3,1366.51 1989.13,1366.51 \n",
" 1998.96,1366.51 2008.79,1366.51 2018.61,1366.51 2028.44,1366.51 2038.27,1366.51 2048.1,1366.51 2057.92,1366.51 2067.75,1366.51 2077.58,1366.51 2087.41,1366.51 \n",
" 2097.24,1366.51 2107.06,1366.51 2116.89,1366.51 2126.72,1366.51 2136.55,1366.51 2146.37,1366.51 2156.2,1366.51 2166.03,1366.51 2175.86,1366.51 2185.68,1366.51 \n",
" 2195.51,1366.51 2205.34,1366.51 2215.17,1366.51 2225,1366.51 2234.82,1366.51 2244.65,1366.51 2254.48,1366.51 2264.31,1366.51 2274.13,1366.51 2283.96,1366.51 \n",
" 2293.79,1366.51 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#c271d2; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 328.245,1388.71 338.073,1388.71 347.901,1388.71 357.728,1388.71 367.556,1388.71 377.384,1388.71 387.211,1388.71 397.039,1388.71 406.867,1388.71 416.695,1388.71 \n",
" 426.522,1388.71 436.35,1388.71 446.178,1388.71 456.005,1388.71 465.833,1388.71 475.661,1388.71 485.489,1388.71 495.316,1388.71 505.144,1388.71 514.972,1388.71 \n",
" 524.8,1388.71 534.627,1388.71 544.455,1388.71 554.283,1388.71 564.11,1388.71 573.938,1388.71 583.766,1388.71 593.594,1388.71 603.421,1388.71 613.249,1388.71 \n",
" 623.077,1388.71 632.904,1388.71 642.732,1388.71 652.56,1388.71 662.388,1388.71 672.215,1388.71 682.043,1388.71 691.871,1388.71 701.699,1388.71 711.526,1388.71 \n",
" 721.354,1388.71 731.182,1388.71 741.009,1388.71 750.837,1388.71 760.665,1388.71 770.493,1388.71 780.32,1388.71 790.148,1388.71 799.976,1388.71 809.803,1388.71 \n",
" 819.631,1388.71 829.459,1388.71 839.287,1388.71 849.114,1388.71 858.942,1388.71 868.77,1388.71 878.598,1388.71 888.425,1388.71 898.253,1388.71 908.081,1388.71 \n",
" 917.908,1388.71 927.736,1388.71 937.564,1388.71 947.392,1388.71 957.219,1388.71 967.047,1388.71 976.875,1388.71 986.702,1388.71 996.53,1388.71 1006.36,1388.71 \n",
" 1016.19,1388.71 1026.01,1388.71 1035.84,1388.71 1045.67,1388.71 1055.5,1388.71 1065.32,1388.71 1075.15,1388.71 1084.98,1388.71 1094.81,1388.71 1104.64,1388.71 \n",
" 1114.46,1388.71 1124.29,1388.71 1134.12,1388.71 1143.95,1388.71 1153.77,1388.71 1163.6,1388.71 1173.43,1388.71 1183.26,1388.71 1193.08,1388.71 1202.91,1388.71 \n",
" 1212.74,1388.71 1222.57,1388.71 1232.4,1388.71 1242.22,1388.71 1252.05,1388.71 1261.88,1388.71 1271.71,1388.71 1281.53,1388.71 1291.36,1388.71 1301.19,1388.71 \n",
" 1311.02,1388.71 1320.85,1388.71 1330.67,1388.71 1340.5,1388.71 1350.33,1388.71 1360.16,1388.71 1369.98,1388.71 1379.81,1388.71 1389.64,1388.71 1399.47,1388.71 \n",
" 1409.29,1388.71 1419.12,1388.71 1428.95,1388.71 1438.78,1388.71 1448.61,1388.71 1458.43,1388.71 1468.26,1388.71 1478.09,1388.71 1487.92,1388.71 1497.74,1388.71 \n",
" 1507.57,1388.71 1517.4,1388.71 1527.23,1388.71 1537.05,1388.71 1546.88,1388.71 1556.71,1388.71 1566.54,1388.71 1576.37,1388.71 1586.19,1388.71 1596.02,1388.71 \n",
" 1605.85,1388.71 1615.68,1388.71 1625.5,1388.71 1635.33,1388.71 1645.16,1388.71 1654.99,1388.71 1664.82,1388.71 1674.64,1388.71 1684.47,1388.71 1694.3,1388.71 \n",
" 1704.13,1388.71 1713.95,1388.71 1723.78,1388.71 1733.61,1388.71 1743.44,1388.71 1753.26,1388.71 1763.09,1388.71 1772.92,1388.71 1782.75,1388.71 1792.58,1388.71 \n",
" 1802.4,1388.71 1812.23,1388.71 1822.06,1388.71 1831.89,1388.71 1841.71,1388.71 1851.54,1388.71 1861.37,1388.71 1871.2,1388.71 1881.03,1388.71 1890.85,1388.71 \n",
" 1900.68,1388.71 1910.51,1388.71 1920.34,1388.71 1930.16,1388.71 1939.99,1388.71 1949.82,1388.71 1959.65,1388.71 1969.47,1388.71 1979.3,1388.71 1989.13,1388.71 \n",
" 1998.96,1388.71 2008.79,1388.71 2018.61,1388.71 2028.44,1388.71 2038.27,1388.71 2048.1,1388.71 2057.92,1388.71 2067.75,1388.71 2077.58,1388.71 2087.41,1388.71 \n",
" 2097.24,1388.71 2107.06,1388.71 2116.89,1388.71 2126.72,1388.71 2136.55,1388.71 2146.37,1388.71 2156.2,1388.71 2166.03,1388.71 2175.86,1388.71 2185.68,1388.71 \n",
" 2195.51,1388.71 2205.34,1388.71 2215.17,1388.71 2225,1388.71 2234.82,1388.71 2244.65,1388.71 2254.48,1388.71 2264.31,1388.71 2274.13,1388.71 2283.96,1388.71 \n",
" 2293.79,1388.71 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4702)\" style=\"stroke:#ac8d18; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 328.245,1384.64 338.073,1384.64 347.901,1384.64 357.728,1384.64 367.556,1384.64 377.384,1384.64 387.211,1384.64 397.039,1384.64 406.867,1384.64 416.695,1384.64 \n",
" 426.522,1384.64 436.35,1384.64 446.178,1384.64 456.005,1384.64 465.833,1384.64 475.661,1384.64 485.489,1384.64 495.316,1384.64 505.144,1384.64 514.972,1384.64 \n",
" 524.8,1384.64 534.627,1384.64 544.455,1384.64 554.283,1384.64 564.11,1384.64 573.938,1384.64 583.766,1384.64 593.594,1384.64 603.421,1384.64 613.249,1384.64 \n",
" 623.077,1384.64 632.904,1384.64 642.732,1384.64 652.56,1384.64 662.388,1384.64 672.215,1384.64 682.043,1384.64 691.871,1384.64 701.699,1384.64 711.526,1384.64 \n",
" 721.354,1384.64 731.182,1384.64 741.009,1384.64 750.837,1384.64 760.665,1384.64 770.493,1384.64 780.32,1384.64 790.148,1384.64 799.976,1384.64 809.803,1384.64 \n",
" 819.631,1384.64 829.459,1384.64 839.287,1384.64 849.114,1384.64 858.942,1384.64 868.77,1384.64 878.598,1384.64 888.425,1384.64 898.253,1384.64 908.081,1384.64 \n",
" 917.908,1384.64 927.736,1384.64 937.564,1384.64 947.392,1384.64 957.219,1384.64 967.047,1384.64 976.875,1384.64 986.702,1384.64 996.53,1384.64 1006.36,1384.64 \n",
" 1016.19,1384.64 1026.01,1384.64 1035.84,1384.64 1045.67,1384.64 1055.5,1384.64 1065.32,1384.64 1075.15,1384.64 1084.98,1384.64 1094.81,1384.64 1104.64,1384.64 \n",
" 1114.46,1384.64 1124.29,1384.64 1134.12,1384.64 1143.95,1384.64 1153.77,1384.64 1163.6,1384.64 1173.43,1384.64 1183.26,1384.64 1193.08,1384.64 1202.91,1384.64 \n",
" 1212.74,1384.64 1222.57,1384.64 1232.4,1384.64 1242.22,1384.64 1252.05,1384.64 1261.88,1384.64 1271.71,1384.64 1281.53,1384.64 1291.36,1384.64 1301.19,1384.64 \n",
" 1311.02,1384.64 1320.85,1384.64 1330.67,1384.64 1340.5,1384.64 1350.33,1384.64 1360.16,1384.64 1369.98,1384.64 1379.81,1384.64 1389.64,1384.64 1399.47,1384.64 \n",
" 1409.29,1384.64 1419.12,1384.64 1428.95,1384.64 1438.78,1384.64 1448.61,1384.64 1458.43,1384.64 1468.26,1384.64 1478.09,1384.64 1487.92,1384.64 1497.74,1384.64 \n",
" 1507.57,1384.64 1517.4,1384.64 1527.23,1384.64 1537.05,1384.64 1546.88,1384.64 1556.71,1384.64 1566.54,1384.64 1576.37,1384.64 1586.19,1384.64 1596.02,1384.64 \n",
" 1605.85,1384.64 1615.68,1384.64 1625.5,1384.64 1635.33,1384.64 1645.16,1384.64 1654.99,1384.64 1664.82,1384.64 1674.64,1384.64 1684.47,1384.64 1694.3,1384.64 \n",
" 1704.13,1384.64 1713.95,1384.64 1723.78,1384.64 1733.61,1384.64 1743.44,1384.64 1753.26,1384.64 1763.09,1384.64 1772.92,1384.64 1782.75,1384.64 1792.58,1384.64 \n",
" 1802.4,1384.64 1812.23,1384.64 1822.06,1384.64 1831.89,1384.64 1841.71,1384.64 1851.54,1384.64 1861.37,1384.64 1871.2,1384.64 1881.03,1384.64 1890.85,1384.64 \n",
" 1900.68,1384.64 1910.51,1384.64 1920.34,1384.64 1930.16,1384.64 1939.99,1384.64 1949.82,1384.64 1959.65,1384.64 1969.47,1384.64 1979.3,1384.64 1989.13,1384.64 \n",
" 1998.96,1384.64 2008.79,1384.64 2018.61,1384.64 2028.44,1384.64 2038.27,1384.64 2048.1,1384.64 2057.92,1384.64 2067.75,1384.64 2077.58,1384.64 2087.41,1384.64 \n",
" 2097.24,1384.64 2107.06,1384.64 2116.89,1384.64 2126.72,1384.64 2136.55,1384.64 2146.37,1384.64 2156.2,1384.64 2166.03,1384.64 2175.86,1384.64 2185.68,1384.64 \n",
" 2195.51,1384.64 2205.34,1384.64 2215.17,1384.64 2225,1384.64 2234.82,1384.64 2244.65,1384.64 2254.48,1384.64 2264.31,1384.64 2274.13,1384.64 2283.96,1384.64 \n",
" 2293.79,1384.64 \n",
" \"/>\n",
"<path clip-path=\"url(#clip4700)\" d=\"\n",
"M1896.26 568.075 L2280.76 568.075 L2280.76 205.195 L1896.26 205.195 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1896.26,568.075 2280.76,568.075 2280.76,205.195 1896.26,205.195 1896.26,568.075 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1920.26,265.675 2064.26,265.675 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2088.26, 283.175)\" x=\"2088.26\" y=\"283.175\">1 x fea</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#e26f46; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1920.26,326.155 2064.26,326.155 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2088.26, 343.655)\" x=\"2088.26\" y=\"343.655\">2 x fea</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#3da44d; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1920.26,386.635 2064.26,386.635 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2088.26, 404.135)\" x=\"2088.26\" y=\"404.135\">3 x fea</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#c271d2; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1920.26,447.115 2064.26,447.115 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2088.26, 464.615)\" x=\"2088.26\" y=\"464.615\">4 x fea</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip4700)\" style=\"stroke:#ac8d18; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1920.26,507.595 2064.26,507.595 \n",
" \"/>\n",
"<g clip-path=\"url(#clip4700)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2088.26, 525.095)\" x=\"2088.26\" y=\"525.095\">5 x fea</text>\n",
"</g>\n",
"</svg>\n"
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
]
},
"execution_count": 279,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"plot()\n",
"for i in 1:5\n",
" l0=75*i\n",
" A=l0*l0\n",
"# plot!(1:step:numTimeStepsRecorded,DDisplacements[i]/A,label=\"$i x dynamic\",xlabel=\"timestep\",ylabel=\"strain\",title=\"Dynamic Model Convergence\")\n",
" plot!(1:step:numTimeStepsRecorded,-DDisplacementsFEA[i]/l0,label=\"$i x fea\",xlabel=\"timestep\",ylabel=\"strain\",title=\"Dynamic Model Convergence\")\n",
"\n",
"end\n",
"plot!()\n",
"# savefig(\"total_convergence\")"
]
},
{
"cell_type": "code",
"execution_count": 280,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip5100\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip5100)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip5101\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip5100)\" d=\"\n",
"M255.898 1425.62 L2352.76 1425.62 L2352.76 121.675 L255.898 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip5102\">\n",
" <rect x=\"255\" y=\"121\" width=\"2098\" height=\"1305\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 327.161,1425.62 327.161,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 805.16,1425.62 805.16,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1283.16,1425.62 1283.16,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1761.16,1425.62 1761.16,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2239.16,1425.62 2239.16,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 255.898,1183.69 2352.76,1183.69 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 255.898,927.414 2352.76,927.414 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 255.898,671.136 2352.76,671.136 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 255.898,414.857 2352.76,414.857 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 255.898,158.579 2352.76,158.579 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,1425.62 255.898,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 327.161,1425.62 327.161,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 805.16,1425.62 805.16,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1283.16,1425.62 1283.16,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1761.16,1425.62 1761.16,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2239.16,1425.62 2239.16,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,1183.69 281.06,1183.69 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,927.414 281.06,927.414 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,671.136 281.06,671.136 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,414.857 281.06,414.857 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 255.898,158.579 281.06,158.579 \n",
" \"/>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 327.161, 1479.62)\" x=\"327.161\" y=\"1479.62\">2</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 805.16, 1479.62)\" x=\"805.16\" y=\"1479.62\">4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1283.16, 1479.62)\" x=\"1283.16\" y=\"1479.62\">6</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1761.16, 1479.62)\" x=\"1761.16\" y=\"1479.62\">8</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2239.16, 1479.62)\" x=\"2239.16\" y=\"1479.62\">10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 231.898, 1201.19)\" x=\"231.898\" y=\"1201.19\">500</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 231.898, 944.914)\" x=\"231.898\" y=\"944.914\">1000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 231.898, 688.636)\" x=\"231.898\" y=\"688.636\">1500</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 231.898, 432.357)\" x=\"231.898\" y=\"432.357\">2000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 231.898, 176.079)\" x=\"231.898\" y=\"176.079\">2500</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1304.33, 73.2)\" x=\"1304.33\" y=\"73.2\">load vs displacement</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1304.33, 1559.48)\" x=\"1304.33\" y=\"1559.48\">displacement</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 773.647)\" x=\"89.2861\" y=\"773.647\">load</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip5102)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2293.41,1388.71 315.243,1234.95 604.848,978.669 695.551,619.88 944.154,158.579 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip5102)\" cx=\"2293.41\" cy=\"1388.71\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5102)\" cx=\"315.243\" cy=\"1234.95\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5102)\" cx=\"604.848\" cy=\"978.669\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5102)\" cx=\"695.551\" cy=\"619.88\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5102)\" cx=\"944.154\" cy=\"158.579\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<path clip-path=\"url(#clip5100)\" d=\"\n",
"M1973.85 386.635 L2280.76 386.635 L2280.76 205.195 L1973.85 205.195 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1973.85,386.635 2280.76,386.635 2280.76,205.195 1973.85,205.195 1973.85,386.635 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5100)\" style=\"stroke:#009af9; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1997.85,265.675 2141.85,265.675 \n",
" \"/>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2165.85, 283.175)\" x=\"2165.85\" y=\"283.175\">fea</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip5100)\" cx=\"2081.85\" cy=\"326.155\" r=\"21\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip5100)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2165.85, 343.655)\" x=\"2165.85\" y=\"343.655\">fea</text>\n",
"</g>\n",
"</svg>\n"
]
},
"execution_count": 280,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"strains=[-DDisplacementsFEA[1][1],-DDisplacementsFEA[2][1],-DDisplacementsFEA[3][1],-DDisplacementsFEA[4][1],-DDisplacementsFEA[5][1]]\n",
"plot(strains,-Loads,label=\"fea\",xlabel=\"displacement\",ylabel=\"load\",title=\"load vs displacement\")\n",
"scatter!(strains,-Loads,label=\"fea\",xlabel=\"displacement\",ylabel=\"load\",title=\"load vs displacement\")\n"
]
},
{
"cell_type": "code",
"execution_count": 281,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip5500\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip5500)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip5501\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip5500)\" d=\"\n",
"M389.709 1425.62 L2352.76 1425.62 L2352.76 121.675 L389.709 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip5502\">\n",
" <rect x=\"389\" y=\"121\" width=\"1964\" height=\"1305\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 641.46,1425.62 641.46,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1013.17,1425.62 1013.17,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1384.88,1425.62 1384.88,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1756.58,1425.62 1756.58,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2128.29,1425.62 2128.29,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 389.709,1142.69 2352.76,1142.69 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 389.709,773.647 2352.76,773.647 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 389.709,404.606 2352.76,404.606 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5502)\" style=\"stroke:#000000; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 389.709,158.579 2352.76,158.579 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 389.709,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 389.709,1425.62 389.709,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 641.46,1425.62 641.46,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1013.17,1425.62 1013.17,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1384.88,1425.62 1384.88,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1756.58,1425.62 1756.58,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2128.29,1425.62 2128.29,1409.97 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 389.709,1142.69 413.266,1142.69 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 389.709,773.647 413.266,773.647 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 389.709,404.606 413.266,404.606 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 389.709,158.579 413.266,158.579 \n",
" \"/>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 641.46, 1479.62)\" x=\"641.46\" y=\"1479.62\">0.025</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1013.17, 1479.62)\" x=\"1013.17\" y=\"1479.62\">0.050</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1384.88, 1479.62)\" x=\"1384.88\" y=\"1479.62\">0.075</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1756.58, 1479.62)\" x=\"1756.58\" y=\"1479.62\">0.100</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2128.29, 1479.62)\" x=\"2128.29\" y=\"1479.62\">0.125</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 365.709, 1160.19)\" x=\"365.709\" y=\"1160.19\">400000000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 365.709, 791.147)\" x=\"365.709\" y=\"791.147\">400000001</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 365.709, 422.106)\" x=\"365.709\" y=\"422.106\">400000001</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:end;\" transform=\"rotate(0, 365.709, 176.079)\" x=\"365.709\" y=\"176.079\">400000001</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1371.23, 73.2)\" x=\"1371.23\" y=\"73.2\">stress vs strain</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1371.23, 1559.48)\" x=\"1371.23\" y=\"1559.48\">strain</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 89.2861, 773.647)\" x=\"89.2861\" y=\"773.647\">stess</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip5502)\" cx=\"2297.2\" cy=\"1388.71\" r=\"14\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5502)\" cx=\"463.054\" cy=\"1388.71\" r=\"14\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5502)\" cx=\"478.694\" cy=\"1388.71\" r=\"14\" fill=\"#3da44d\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5502)\" cx=\"445.267\" cy=\"1388.71\" r=\"14\" fill=\"#c271d2\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<circle clip-path=\"url(#clip5502)\" cx=\"451.406\" cy=\"1388.71\" r=\"14\" fill=\"#ac8d18\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<path clip-path=\"url(#clip5500)\" d=\"\n",
"M2013.99 568.075 L2280.76 568.075 L2280.76 205.195 L2013.99 205.195 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip5500)\" style=\"stroke:#000000; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2013.99,568.075 2280.76,568.075 2280.76,205.195 2013.99,205.195 2013.99,568.075 \n",
" \"/>\n",
"<circle clip-path=\"url(#clip5500)\" cx=\"2121.99\" cy=\"265.675\" r=\"21\" fill=\"#009af9\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2205.99, 283.175)\" x=\"2205.99\" y=\"283.175\">1</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip5500)\" cx=\"2121.99\" cy=\"326.155\" r=\"21\" fill=\"#e26f46\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2205.99, 343.655)\" x=\"2205.99\" y=\"343.655\">2</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip5500)\" cx=\"2121.99\" cy=\"386.635\" r=\"21\" fill=\"#3da44d\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2205.99, 404.135)\" x=\"2205.99\" y=\"404.135\">3</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip5500)\" cx=\"2121.99\" cy=\"447.115\" r=\"21\" fill=\"#c271d2\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2205.99, 464.615)\" x=\"2205.99\" y=\"464.615\">4</text>\n",
"</g>\n",
"<circle clip-path=\"url(#clip5500)\" cx=\"2121.99\" cy=\"507.595\" r=\"21\" fill=\"#ac8d18\" fill-rule=\"evenodd\" fill-opacity=\"1\" stroke=\"#000000\" stroke-opacity=\"1\" stroke-width=\"3.2\"/>\n",
"<g clip-path=\"url(#clip5500)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2205.99, 525.095)\" x=\"2205.99\" y=\"525.095\">5</text>\n",
"</g>\n",
"</svg>\n"
]
},
"execution_count": 281,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"plot()\n",
"stresss=[]\n",
"strainn=[]\n",
"for i in 1:5\n",
" l0=75*i\n",
" A=l0*l0\n",
" append!(stresss,400000000)\n",
"# append!(stresss,-Loads[i]/A)\n",
" append!(strainn,-DDisplacementsFEA[i][1]/l0)\n",
" scatter!([-DDisplacementsFEA[i][1]/l0],[400000000],label=\"$i\",xlabel=\"strain\",ylabel=\"stess\",title=\"stress vs strain\")\n",
"\n",
"end\n",
"plot!()\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 282,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"dt: 0.007294855212986816\n",
"first timestep took 0.001470699 seconds\n",
"ran latticeSize 5 with 540 voxels and 1800 edges for 20000 time steps took 9.3035085 seconds\n"
]
}
],
"source": [
"setup=getSetup(latticeSize)\n",
"numTimeSteps=20000\n",
"displacements=[]\n",
"save=true\n",
"returnEvery=1\n",
"runMetavoxelGPU!(setup,numTimeSteps,latticeSize,displacements,returnEvery,false)\n"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"feaDisplacement (generic function with 1 method)"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"function feaDisplacement(setup,latticeSize)\n",
" #######################################################\n",
" function points(element, properties)\n",
" elements = properties[\"elements\"]\n",
" nodes = properties[\"nodes\"]\n",
" degrees_of_freedom = properties[\"degrees_of_freedom\"]\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = elements[element][1]\n",
" toNode = elements[element][2]\n",
"\n",
" # the coordinates for each node\n",
" fromPoint = nodes[fromNode]\n",
" toPoint = nodes[toNode]\n",
"\n",
" # find the degrees of freedom for each node\n",
" dofs = degrees_of_freedom[fromNode]\n",
" dofs=vcat(dofs,degrees_of_freedom[toNode])\n",
"\n",
" return fromPoint, toPoint, dofs\n",
" end\n",
"\n",
" function direction_cosine(vec1, vec2)\n",
" return dot(vec1,vec2) / (norm(vec1) * norm(vec2))\n",
" end\n",
"\n",
" function rotation_matrix(element_vector, x_axis, y_axis,z_axis)\n",
" # find the direction cosines\n",
" x_proj = direction_cosine(element_vector, x_axis)\n",
" y_proj = direction_cosine(element_vector, y_axis)\n",
" z_proj = direction_cosine(element_vector, z_axis);\n",
" return [[x_proj y_proj z_proj 0 0 0];[0 0 0 x_proj y_proj z_proj]]\n",
" end\n",
"\n",
" function rotation_matrix(element_vector, x_axis, y_axis,z_axis)\n",
" # find the direction cosines\n",
" L=norm(element_vector)\n",
" l = (element_vector[1])/L\n",
" m = (element_vector[2])/L\n",
" n = (element_vector[3])/L\n",
" D = ( l^2+ m^2+n^2)^0.5\n",
"\n",
" transMatrix=[[l m n 0 0 0 0 0 0 0 0 0];[-m/D l/D 0 0 0 0 0 0 0 0 0 0];[ -l*n/D -m*n/D D 0 0 0 0 0 0 0 0 0];[ 0 0 0 l m n 0 0 0 0 0 0];[ 0 0 0 -m/D l/D 0 0 0 0 0 0 0];[ 0 0 0 -l*n/D -m*n/D D 0 0 0 0 0 0];[ 0 0 0 0 0 0 l m n 0 0 0];[ 0 0 0 0 0 0 -m/D l/D 0 0 0 0];[ 0 0 0 0 0 0 -l*n/D -m*n/D D 0 0 0];[ 0 0 0 0 0 0 0 0 0 l m n];[ 0 0 0 0 0 0 0 0 0 -m/D l/D 0];[ 0 0 0 0 0 0 0 0 0 -l*n/D -m*n/D D]]\n",
"\n",
" return transMatrix\n",
" end\n",
" \n",
" #######################################################\n",
" function get_matrices(setup)\n",
"\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" ndofs = length(nodes)*6\n",
"\n",
" x_axis = [1 0 0]\n",
" y_axis = [0 1 0]\n",
" z_axis = [0 0 1]\n",
"\n",
" M = zeros((ndofs,ndofs))\n",
" K = zeros((ndofs,ndofs))\n",
" \n",
" \n",
" for edge in edges\n",
" #degrees_of_freedom = properties[\"degrees_of_freedom\"]\n",
"\n",
" element=parse(Int,edge[\"id\"][2:end])\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = nodes[edge[\"source\"]+1]\n",
" toNode = nodes[edge[\"target\"]+1]\n",
" \n",
"\n",
" # the coordinates for each node\n",
" fromPoint = [fromNode[\"position\"][\"x\"]*15.0 fromNode[\"position\"][\"y\"]*15.0 fromNode[\"position\"][\"z\"]*15.0]\n",
" toPoint = [toNode[\"position\"][\"x\"]*15.0 toNode[\"position\"][\"y\"]*15.0 toNode[\"position\"][\"z\"]*15.0]\n",
"\n",
" # find the degrees of freedom for each node\n",
" dofs = convert(Array{Int}, fromNode[\"degrees_of_freedom\"])\n",
" dofs=vcat(dofs,convert(Array{Int}, toNode[\"degrees_of_freedom\"]))\n",
"\n",
" element_vector=toPoint-fromPoint\n",
"\n",
" # find element mass and stifness matrices\n",
" length = norm(element_vector)\n",
" rho = edge[\"density\"]\n",
" area = edge[\"area\"]\n",
" E = edge[\"stiffness\"]# youngs modulus\n",
"\n",
" A = edge[\"area\"]\n",
" G=1.0#todo shear_modulus\n",
" ixx = 1.0#todo section ixx\n",
" iyy = 1.0#todo section.iyy#\n",
" l0=length\n",
" j=1.0;#todo check\n",
" l02 = l0 * l0\n",
" l03 = l0 * l0 * l0\n",
" \n",
" # find element mass and stifness matrices\n",
" length = norm(element_vector)\n",
" rho = edge[\"density\"]\n",
" area = edge[\"area\"]\n",
" E = edge[\"stiffness\"]# youngs modulus\n",
" \n",
" \n",
" \n",
" A = edge[\"area\"]\n",
" G=1.0#todo shear_modulus\n",
" ixx = 1.0#todo section ixx\n",
" iyy = 1.0#todo section.iyy#\n",
" j=1.0;#todo check\n",
" \n",
" \n",
" h = 2.38 # mm\n",
" b = 2.38 # mm\n",
" E = 2000 # MPa\n",
" rho = 7.85e-9 / 3 # kg/mm^3\n",
" G = E * 1 / 3 # MPa\n",
" A=h*b\n",
" Q = 1 / 3 - 0.2244 / (min(h / b, b / h) + 0.1607)\n",
" J = Q * min(h * b^3, b * h^3)\n",
" I= b*h^3/12\n",
" ixx=I\n",
" iyy=I\n",
" j=J\n",
" \n",
" l0=length\n",
" l02 = l0 * l0\n",
" l03 = l0 * l0 * l0\n",
"\n",
"\n",
" k = [[E*A/l0 0 0 0 0 0 -E*A/l0 0 0 0 0 0];[0 12*E*ixx/l03 0 0 0 6*E*ixx/l02 0 -12*E*ixx/l03 0 0 0 6*E*ixx/l02];[0 0 12*E*iyy/l03 0 -6*E*iyy/l02 0 0 0 -12*E*iyy/l03 0 -6*E*iyy/l02 0];[0 0 0 G*j/l0 0 0 0 0 0 -G*j/l0 0 0];[0 0 -6*E*iyy/l02 0 4*E*iyy/l0 0 0 0 6*E*iyy/l02 0 2*E*iyy/l0 0];[0 6*E*ixx/l02 0 0 0 4*E*ixx/l0 0 -6*E*ixx/l02 0 0 0 2*E*ixx/l0];[-E*A/l0 0 0 0 0 0 E*A/l0 0 0 0 0 0];[0 -12*E*ixx/l03 0 0 0 -6*E*ixx/l02 0 12*E*ixx/l03 0 0 0 -6*E*ixx/l02];[0 0 -12*E*iyy/l03 0 6*E*iyy/l02 0 0 0 12*E*iyy/l03 0 6*E*iyy/l02 0];[0 0 0 -G*j/l0 0 0 0 0 0 G*j/l0 0 0];[0 0 -6*E*iyy/l02 0 2*E*iyy/l0 0 0 0 6*E*iyy/l02 0 4*E*iyy/l0 0];[0 6*E*ixx/l02 0 0 0 2*E*ixx/l0 0 -6*E*ixx/l02 0 0 0 4*E*ixx/l0]]\n",
"\n",
"\n",
" # find rotated mass and stifness matrices\n",
" tau = rotation_matrix(element_vector, x_axis,y_axis,z_axis)\n",
"\n",
" # m_r=transpose(tau)*m*tau\n",
" k_r=transpose(tau)*k*tau\n",
"\n",
" # change from element to global coordinate\n",
" index= dofs.+1\n",
"\n",
" B=zeros((12,ndofs))\n",
" for i in 1:12\n",
" B[i,index[i]]=1.0\n",
" end\n",
"\n",
"\n",
" # M_rG= transpose(B)*m_r*B\n",
" K_rG= transpose(B)*k_r*B\n",
"\n",
" # M += Cm .* M_rG\n",
" # K += Ck .* K_rG\n",
" K += K_rG\n",
"\n",
" end\n",
" \n",
" \n",
" # construct the force vector\n",
" F=zeros(ndofs)\n",
" U=zeros(ndofs)\n",
" remove_indices=[];\n",
" for node in nodes\n",
" #insert!(F,i, value);\n",
" #F=vcat(F,value)\n",
" \n",
" \n",
" \n",
" \n",
" i=parse(Int,node[\"id\"][2:end])\n",
" f=node[\"force\"]\n",
" \n",
" # println(f)\n",
" U[(i)*6+1]=0\n",
" U[(i)*6+2]=-0.01*(node[\"position\"][\"y\"]+2.5)*15.0 *((node[\"position\"][\"y\"]+2.5)/(5*latticeSize))\n",
" U[(i)*6+3]=0\n",
" U[(i)*6+4]=0\n",
" U[(i)*6+5]=0\n",
" U[(i)*6+6]=0\n",
" \n",
" # println(f)\n",
" F[(i)*6+1]+=f[\"x\"]\n",
" F[(i)*6+2]+=f[\"y\"]\n",
" F[(i)*6+3]+=f[\"z\"]\n",
" F[(i)*6+4]+=0\n",
" F[(i)*6+5]+=0\n",
" F[(i)*6+6]+=0\n",
" Load+=f[\"y\"]\n",
" if (F[(i)*6+2]!=0)\n",
" append!(topNodesIndices,i+1)\n",
" end\n",
" \n",
" dofs = convert(Array{Int}, node[\"degrees_of_freedom\"]).+1\n",
" restrained_dofs=node[\"restrained_degrees_of_freedom\"]\n",
" for (index, value) in enumerate(dofs)\n",
" if restrained_dofs[index]\n",
" append!( remove_indices, value)\n",
" end\n",
" end\n",
" \n",
" end\n",
"\n",
" #println(remove_indices)\n",
" #print(K)\n",
" #print(F)\n",
" \n",
"\n",
" #M = M[setdiff(1:end, remove_indices), :]\n",
" K = K[setdiff(1:end, remove_indices), :]\n",
"\n",
" #M = M[:,setdiff(1:end, remove_indices)]\n",
" K = K[:,setdiff(1:end, remove_indices)]\n",
"\n",
" F = F[setdiff(1:end, remove_indices)]\n",
" X = U[setdiff(1:end, remove_indices)]\n",
" \n",
" return M,K,F,U,remove_indices,X\n",
" end\n",
"\n",
" \n",
" function updateDisplacement(setup, X)\n",
" nodes= setup[\"nodes\"]\n",
" i=0\n",
" for node in nodes\n",
" \n",
"# if !node[\"restrained_degrees_of_freedom\"][2]\n",
" #i=parse(Int,node[\"id\"][2:end])\n",
" node[\"displacement\"][\"x\"]=X[(i)*6+1]\n",
" node[\"displacement\"][\"y\"]=X[(i)*6+2]\n",
" node[\"displacement\"][\"z\"]=X[(i)*6+3]\n",
" node[\"angle\"][\"x\"]=X[(i)*6+4]\n",
" node[\"angle\"][\"y\"]=X[(i)*6+5]\n",
" node[\"angle\"][\"z\"]=X[(i)*6+6]\n",
" append!(displacementFEA,[Vector3(X[(i)*6+1],X[(i)*6+2],X[(i)*6+3])])\n",
" i=i+1\n",
"# else\n",
"# append!(displacementFEA,[Vector3(0,0,0)])\n",
"# end\n",
" end\n",
" end\n",
" \n",
" #######################################################\n",
"\n",
" function get_stresses(setup)\n",
" nodes = setup[\"nodes\"]\n",
" edges = setup[\"edges\"]\n",
" ndofs = length(nodes)*6\n",
"\n",
" x_axis = [1 0 0]\n",
" y_axis = [0 1 0]\n",
" z_axis = [0 0 1]\n",
"\n",
" # find the stresses in each member\n",
" stresses=zeros(length(edges))\n",
" max11=-10e6\n",
" min11=10e6\n",
" for edge in edges\n",
" #degrees_of_freedom = properties[\"degrees_of_freedom\"]\n",
"\n",
" element=parse(Int,edge[\"id\"][2:end])\n",
"\n",
" # find the nodes that the lements connects\n",
" fromNode = nodes[edge[\"source\"]+1]\n",
" toNode = nodes[edge[\"target\"]+1]\n",
"\n",
" # the coordinates for each node\n",
" fromPoint = [fromNode[\"position\"][\"x\"]*15 fromNode[\"position\"][\"y\"]*15 fromNode[\"position\"][\"z\"]*15]\n",
" toPoint = [toNode[\"position\"][\"x\"]*15 toNode[\"position\"][\"y\"]*15 toNode[\"position\"][\"z\"]*15]\n",
"\n",
" # find the degrees of freedom for each node\n",
" dofs = convert(Array{Int}, fromNode[\"degrees_of_freedom\"])\n",
" dofs=vcat(dofs,convert(Array{Int}, toNode[\"degrees_of_freedom\"]))\n",
"\n",
" element_vector=toPoint-fromPoint\n",
"\n",
"\n",
" # find rotated mass and stifness matrices\n",
" tau = rotation_matrix(element_vector, x_axis,y_axis,z_axis)\n",
"\n",
" # i1=parse(Int,fromNode[\"id\"][2:end])\n",
" # i2=parse(Int,toNode[\"id\"][2:end])\n",
"\n",
" # global_displacements=[X[(i1)*6+1] X[(i1)*6+2] X[(i1)*6+3] X[(i1)*6+4] X[(i1)*6+5] X[(i1)*6+6] X[(i2)*6+1] X[(i2)*6+2] X[(i2)*6+3] X[(i2)*6+4] X[(i2)*6+5] X[(i2)*6+6]] # todo change\n",
" global_displacements=[fromNode[\"displacement\"][\"x\"]*15 fromNode[\"displacement\"][\"y\"]*15 fromNode[\"displacement\"][\"z\"]*15 fromNode[\"angle\"][\"x\"] fromNode[\"angle\"][\"y\"] fromNode[\"angle\"][\"z\"] toNode[\"displacement\"][\"x\"]*15 toNode[\"displacement\"][\"y\"]*15 toNode[\"displacement\"][\"z\"]*15 toNode[\"angle\"][\"x\"] toNode[\"angle\"][\"y\"] toNode[\"angle\"][\"z\"]] # todo change\n",
"\n",
" # nodal displacement\n",
"\n",
" q=tau*transpose(global_displacements)\n",
" # println(q)\n",
" # calculate the strain and stresses\n",
" strain =(q[7]-q[1])/norm(element_vector)\n",
" E = edge[\"stiffness\"]# youngs modulus\n",
" E=2000\n",
" stress=E.*strain\n",
" edge[\"stress\"]=stress\n",
" if stress>max11\n",
" max11=stress\n",
" end\n",
" if stress<min11\n",
" min11=stress\n",
" end\n",
" # println(element)\n",
" # println(stress)\n",
" end\n",
"\n",
"\n",
"\n",
" setup[\"viz\"][\"minStress\"]=min11\n",
" setup[\"viz\"][\"maxStress\"]=max11\n",
" return stresses\n",
" end\n",
" \n",
" function initialize(setup)\n",
" nodes = setup[\"nodes\"]\n",
" ndofs = length(nodes)*6\n",
" \n",
" i=0\n",
" for node in nodes\n",
" dg=[]\n",
" for ii in 0:5\n",
" append!(dg,i+ii) \n",
" end\n",
" i+=6\n",
" node[\"degrees_of_freedom\"]=dg\n",
" end\n",
" end\n",
" \n",
"\n",
" #######################################################\n",
" function solveFea(setup)\n",
" // # determine the global matrices\n",
" initialize(setup)\n",
" \n",
" M,K,F,U,ind,X=get_matrices(setup)\n",
" \n",
" #println(M)\n",
" #println(K)\n",
" #println(F)\n",
" \n",
"# X = deepcopy(F)\n",
" iiind=F.!=0\n",
" \n",
"# X[X.!=0] .= -0.01*5/100*latticeSize\n",
"# print(\"displacementtt: \")\n",
"# println(X)\n",
"\n",
"# X=inv(K)*F\n",
" F=inv(K)*X\n",
" \n",
" Load=sum(F[iiind])\n",
"# print(\"load: \")\n",
"# println(F)\n",
" \n",
"# X=inv(K)*F\n",
" \n",
"# U[setdiff(1:end, ind)]=X\n",
"\n",
" updateDisplacement(setup, U)\n",
"\n",
" # determine the stresses in each element\n",
" stresses=get_stresses(setup)\n",
" end\n",
" #######################################################\n",
" displacementFEA=[]\n",
" Load=0\n",
" topNodesIndices=[]\n",
" solveFea(setup)\n",
" return displacementFEA,Load,topNodesIndices\n",
"end"
]
},
{
"cell_type": "code",
"execution_count": 621,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"5-element Array{Int64,1}:\n",
" 1\n",
" 2\n",
" 3\n",
" 5\n",
" 7"
]
},
"execution_count": 621,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"A=[1,2,3,0,0,5,7,0]\n",
"iiind=A.!=0\n",
"A[iiind]"
]
}
],
"metadata": {
"@webio": {
"lastCommId": null,
"lastKernelId": null
},
"kernelspec": {
"display_name": "Julia 1.2.0",
"language": "julia",
"name": "julia-1.2"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.2.0"
}
},
"nbformat": 4,
"nbformat_minor": 4
}