Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
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
302
303
304
305
306
307
308
309
310
311
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
414
415
416
417
418
419
420
421
422
423
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
## trace generated using paraview version 5.7.0
#
# To ensure correct image size when batch processing, please search
# for and uncomment the line `# renderView*.ViewSize = [*,*]`
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
case = 1
case = 2
case = 3
#
drawLine = False
prestrain = 1
gamma = 'infinity'
# trace generated using paraview version 5.7.0
#
# To ensure correct image size when batch processing, please search
# for and uncomment the line `# renderView*.ViewSize = [*,*]`
#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()
# create a new 'XML Structured Grid Reader'
elasticRatiovts = XMLStructuredGridReader(FileName=['/home/klaus/Desktop/DUNE/dune-microstructure/outputs/ElasticRatio.vts'])
elasticRatiovts.PointArrayStatus = ['elasticRatio', 'prestrainRatio', 'Type', 'angles', 'curvature']
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [1067, 518]
# show data in view
elasticRatiovtsDisplay = Show(elasticRatiovts, renderView1)
# get color transfer function/color map for 'elasticRatio'
elasticRatioLUT = GetColorTransferFunction('elasticRatio')
elasticRatioLUT.RGBPoints = [0.3303091106505249, 0.001462, 0.000466, 0.013866, 0.33293563447422064, 0.002258, 0.001295, 0.018331, 0.33556148860800733, 0.003279, 0.002305, 0.023708, 0.33818801243170304, 0.004512, 0.00349, 0.029965, 0.34081386656548973, 0.00595, 0.004843, 0.03713, 0.3434403903891855, 0.007588, 0.006356, 0.044973, 0.346066244522972, 0.009426, 0.008022, 0.052844, 0.3486927683466678, 0.011465, 0.009828, 0.06075, 0.3513192921703637, 0.013708, 0.011771, 0.068667, 0.3539451463041502, 0.016156, 0.01384, 0.076603, 0.35657167012784596, 0.018815, 0.016026, 0.084584, 0.35919752426163265, 0.021692, 0.01832, 0.09261, 0.3618240480853284, 0.024792, 0.020715, 0.100676, 0.36444990221911505, 0.028123, 0.023201, 0.108787, 0.3670764260428108, 0.031696, 0.025765, 0.116965, 0.3697029498665066, 0.03552, 0.028397, 0.125209, 0.3723288040002933, 0.039608, 0.03109, 0.133515, 0.37495532782398905, 0.04383, 0.03383, 0.141886, 0.3775811819577757, 0.048062, 0.036607, 0.150327, 0.38020770578147145, 0.05232, 0.039407, 0.158841, 0.38283355991525797, 0.056615, 0.04216, 0.167446, 0.38546008373895374, 0.060949, 0.044794, 0.176129, 0.3880866075626497, 0.06533, 0.047318, 0.184892, 0.39071246169643614, 0.069764, 0.049726, 0.193735, 0.3933389855201319, 0.074257, 0.052017, 0.20266, 0.3959648396539186, 0.078815, 0.054184, 0.211667, 0.39859136347761437, 0.083446, 0.056225, 0.220755, 0.40121721761140106, 0.088155, 0.058133, 0.229922, 0.4038437414350968, 0.092949, 0.059904, 0.239164, 0.40646959556888346, 0.097833, 0.061531, 0.248477, 0.4090961193925792, 0.102815, 0.06301, 0.257854, 0.411722643216275, 0.107899, 0.064335, 0.267289, 0.41434849735006163, 0.113094, 0.065492, 0.276784, 0.4169750211737574, 0.118405, 0.066479, 0.286321, 0.4196008753075439, 0.123833, 0.067295, 0.295879, 0.4222273991312397, 0.12938, 0.067935, 0.305443, 0.4248532532650264, 0.135053, 0.068391, 0.315, 0.42747977708872215, 0.140858, 0.068654, 0.324538, 0.43010630091241786, 0.146785, 0.068738, 0.334011, 0.43273215504620455, 0.152839, 0.068637, 0.343404, 0.4353586788699003, 0.159018, 0.068354, 0.352688, 0.437984533003687, 0.165308, 0.067911, 0.361816, 0.4406110568273828, 0.171713, 0.067305, 0.370771, 0.4432369109611694, 0.178212, 0.066576, 0.379497, 0.4458634347848652, 0.184801, 0.065732, 0.387973, 0.44848995860856095, 0.19146, 0.064818, 0.396152, 0.45111581274234747, 0.198177, 0.063862, 0.404009, 0.45374233656604335, 0.204935, 0.062907, 0.411514, 0.4563681906998299, 0.211718, 0.061992, 0.418647, 0.4589947145235257, 0.218512, 0.061158, 0.425392, 0.4616205686573123, 0.225302, 0.060445, 0.431742, 0.4642470924810081, 0.232077, 0.059889, 0.437695, 0.46687361630470386, 0.238826, 0.059517, 0.443256, 0.4694994704384905, 0.245543, 0.059352, 0.448436, 0.47212599426218627, 0.25222, 0.059415, 0.453248, 0.47475184839597295, 0.258857, 0.059706, 0.45771, 0.4773783722196687, 0.265447, 0.060237, 0.46184, 0.4800042263534554, 0.271994, 0.060994, 0.46566, 0.4826307501771512, 0.278493, 0.061978, 0.46919, 0.4852572740008469, 0.284951, 0.063168, 0.472451, 0.4878831281346336, 0.291366, 0.064553, 0.475462, 0.4905096519583293, 0.29774, 0.066117, 0.478243, 0.49313550609211587, 0.304081, 0.067835, 0.480812, 0.49576202991581164, 0.310382, 0.069702, 0.483186, 0.4983878840495983, 0.316654, 0.07169, 0.48538, 0.5010144078732941, 0.322899, 0.073782, 0.487408, 0.5036409316969899, 0.329114, 0.075972, 0.489287, 0.5062667858307764, 0.335308, 0.078236, 0.491024, 0.5088933096544722, 0.341482, 0.080564, 0.492631, 0.5115191637882589, 0.347636, 0.082946, 0.494121, 0.5141456876119547, 0.353773, 0.085373, 0.495501, 0.5167715417457412, 0.359898, 0.087831, 0.496778, 0.5193980655694371, 0.366012, 0.090314, 0.49796, 0.5220245893931329, 0.372116, 0.092816, 0.499053, 0.5246504435269194, 0.378211, 0.095332, 0.500067, 0.5272769673506152, 0.384299, 0.097855, 0.501002, 0.5299028214844018, 0.390384, 0.100379, 0.501864, 0.5325293453080976, 0.396467, 0.102902, 0.502658, 0.5351551994418843, 0.402548, 0.10542, 0.503386, 0.53778172326558, 0.408629, 0.10793, 0.504052, 0.5404075773993666, 0.414709, 0.110431, 0.504662, 0.5430341012230624, 0.420791, 0.11292, 0.505215, 0.5456606250467582, 0.426877, 0.115395, 0.505714, 0.5482864791805449, 0.432967, 0.117855, 0.50616, 0.5509130030042406, 0.439062, 0.120298, 0.506555, 0.5535388571380273, 0.445163, 0.122724, 0.506901, 0.5561653809617231, 0.451271, 0.125132, 0.507198, 0.5587912350955095, 0.457386, 0.127522, 0.507448, 0.5614177589192055, 0.463508, 0.129893, 0.507652, 0.5640442827429011, 0.46964, 0.132245, 0.507809, 0.5666701368766878, 0.47578, 0.134577, 0.507921, 0.5692966607003835, 0.481929, 0.136891, 0.507989, 0.5719225148341702, 0.488088, 0.139186, 0.508011, 0.574549038657866, 0.494258, 0.141462, 0.507988, 0.5771748927916527, 0.500438, 0.143719, 0.50792, 0.5798014166153485, 0.506629, 0.145958, 0.507806, 0.5824279404390442, 0.512831, 0.148179, 0.507648, 0.5850537945728308, 0.519045, 0.150383, 0.507443, 0.5876803183965266, 0.52527, 0.152569, 0.507192, 0.5903061725303131, 0.531507, 0.154739, 0.506895, 0.592932696354009, 0.537755, 0.156894, 0.506551, 0.5955585504877956, 0.544015, 0.159033, 0.506159, 0.5981850743114914, 0.550287, 0.161158, 0.505719, 0.6008115981351871, 0.556571, 0.163269, 0.50523, 0.6034374522689737, 0.562866, 0.165368, 0.504692, 0.6060639760926695, 0.569172, 0.167454, 0.504105, 0.6086898302264562, 0.57549, 0.16953, 0.503466, 0.6113163540501519, 0.581819, 0.171596, 0.502777, 0.6139422081839385, 0.588158, 0.173652, 0.502035, 0.6165687320076343, 0.594508, 0.175701, 0.501241, 0.6191952558313301, 0.600868, 0.177743, 0.500394, 0.6218211099651167, 0.607238, 0.179779, 0.499492, 0.6244476337888125, 0.613617, 0.181811, 0.498536, 0.6270734879225992, 0.620005, 0.18384, 0.497524, 0.6297000117462948, 0.626401, 0.185867, 0.496456, 0.6323258658800814, 0.632805, 0.187893, 0.495332, 0.6349523897037772, 0.639216, 0.189921, 0.49415, 0.637578913527473, 0.645633, 0.191952, 0.49291, 0.6402047676612597, 0.652056, 0.193986, 0.491611, 0.6428312914849554, 0.658483, 0.196027, 0.490253, 0.6454571456187421, 0.664915, 0.198075, 0.488836, 0.6480836694424379, 0.671349, 0.200133, 0.487358, 0.6507095235762246, 0.677786, 0.202203, 0.485819, 0.6533360473999203, 0.684224, 0.204286, 0.484219, 0.6559625712236161, 0.690661, 0.206384, 0.482558, 0.6585884253574028, 0.697098, 0.208501, 0.480835, 0.6612149491810986, 0.703532, 0.210638, 0.479049, 0.663840803314885, 0.709962, 0.212797, 0.477201, 0.6664673271385809, 0.716387, 0.214982, 0.47529, 0.6690931812723676, 0.722805, 0.217194, 0.473316, 0.6717197050960633, 0.729216, 0.219437, 0.471279, 0.67434555922985, 0.735616, 0.221713, 0.46918, 0.6769720830535457, 0.742004, 0.224025, 0.467018, 0.6795986068772415, 0.748378, 0.226377, 0.464794, 0.6822244610110281, 0.754737, 0.228772, 0.462509, 0.6848509848347238, 0.761077, 0.231214, 0.460162, 0.6874768389685104, 0.767398, 0.233705, 0.457755, 0.6901033627922063, 0.773695, 0.236249, 0.455289, 0.6927292169259929, 0.779968, 0.238851, 0.452765, 0.6953557407496885, 0.786212, 0.241514, 0.450184, 0.6979822645733844, 0.792427, 0.244242, 0.447543, 0.7006081187071711, 0.798608, 0.24704, 0.444848, 0.7032346425308668, 0.804752, 0.249911, 0.442102, 0.7058604966646533, 0.810855, 0.252861, 0.439305, 0.7084870204883493, 0.816914, 0.255895, 0.436461, 0.7111128746221358, 0.822926, 0.259016, 0.433573, 0.7137393984458316, 0.828886, 0.262229, 0.430644, 0.7163659222695273, 0.834791, 0.26554, 0.427671, 0.718991776403314, 0.840636, 0.268953, 0.424666, 0.7216183002270098, 0.846416, 0.272473, 0.421631, 0.7242441543607965, 0.852126, 0.276106, 0.418573, 0.7268706781844922, 0.857763, 0.279857, 0.415496, 0.7294965323182787, 0.86332, 0.283729, 0.412403, 0.7321230561419747, 0.868793, 0.287728, 0.409303, 0.7347495799656703, 0.874176, 0.291859, 0.406205, 0.7373754340994569, 0.879464, 0.296125, 0.403118, 0.7400019579231529, 0.884651, 0.30053, 0.400047, 0.7426278120569394, 0.889731, 0.305079, 0.397002, 0.7452543358806352, 0.8947, 0.309773, 0.393995, 0.7478801900144219, 0.899552, 0.314616, 0.391037, 0.7505067138381176, 0.904281, 0.31961, 0.388137, 0.7531332376618134, 0.908884, 0.324755, 0.385308, 0.7557590917956001, 0.913354, 0.330052, 0.382563, 0.7583856156192957, 0.917689, 0.3355, 0.379915, 0.7610114697530823, 0.921884, 0.341098, 0.377376, 0.7636379935767782, 0.925937, 0.346844, 0.374959, 0.7662638477105649, 0.929845, 0.352734, 0.372677, 0.7688903715342605, 0.933606, 0.358764, 0.370541, 0.7715168953579563, 0.937221, 0.364929, 0.368567, 0.774142749491743, 0.940687, 0.371224, 0.366762, 0.7767692733154387, 0.944006, 0.377643, 0.365136, 0.7793951274492253, 0.94718, 0.384178, 0.363701, 0.7820216512729212, 0.95021, 0.39082, 0.362468, 0.7846475054067077, 0.953099, 0.397563, 0.361438, 0.7872740292304035, 0.955849, 0.4044, 0.360619, 0.7899005530540992, 0.958464, 0.411324, 0.360014, 0.7925264071878859, 0.960949, 0.418323, 0.35963, 0.7951529310115817, 0.96331, 0.42539, 0.359469, 0.7977787851453684, 0.965549, 0.432519, 0.359529, 0.8004053089690639, 0.967671, 0.439703, 0.35981, 0.8030311631028506, 0.96968, 0.446936, 0.360311, 0.8056576869265466, 0.971582, 0.45421, 0.36103, 0.8082835410603333, 0.973381, 0.46152, 0.361965, 0.8109100648840288, 0.975082, 0.468861, 0.363111, 0.8135365887077248, 0.97669, 0.476226, 0.364466, 0.8161624428415113, 0.97821, 0.483612, 0.366025, 0.8187889666652071, 0.979645, 0.491014, 0.367783, 0.8214148207989938, 0.981, 0.498428, 0.369734, 0.8240413446226895, 0.982279, 0.505851, 0.371874, 0.826667198756476, 0.983485, 0.51328, 0.374198, 0.829293722580172, 0.984622, 0.520713, 0.376698, 0.8319202464038677, 0.985693, 0.528148, 0.379371, 0.8345461005376542, 0.9867, 0.535582, 0.38221, 0.8371726243613502, 0.987646, 0.543015, 0.38521, 0.8397984784951367, 0.988533, 0.550446, 0.388365, 0.8424250023188324, 0.989363, 0.557873, 0.391671, 0.8450508564526191, 0.990138, 0.565296, 0.395122, 0.8476773802763149, 0.990871, 0.572706, 0.398714, 0.8503039041000107, 0.991558, 0.580107, 0.402441, 0.8529297582337974, 0.992196, 0.587502, 0.406299, 0.8555562820574931, 0.992785, 0.594891, 0.410283, 0.8581821361912796, 0.993326, 0.602275, 0.41439, 0.8608086600149754, 0.993834, 0.609644, 0.418613, 0.863434514148762, 0.994309, 0.616999, 0.42295, 0.8660610379724578, 0.994738, 0.62435, 0.427397, 0.8686875617961536, 0.995122, 0.631696, 0.431951, 0.8713134159299403, 0.99548, 0.639027, 0.436607, 0.8739399397536358, 0.99581, 0.646344, 0.441361, 0.8765657938874225, 0.996096, 0.653659, 0.446213, 0.8791923177111185, 0.996341, 0.660969, 0.45116, 0.881818171844905, 0.99658, 0.668256, 0.456192, 0.8844446956686007, 0.996775, 0.675541, 0.461314, 0.8870712194922967, 0.996925, 0.682828, 0.466526, 0.8896970736260832, 0.997077, 0.690088, 0.471811, 0.892323597449779, 0.997186, 0.697349, 0.477182, 0.8949494515835656, 0.997254, 0.704611, 0.482635, 0.8975759754072614, 0.997325, 0.711848, 0.488154, 0.9002018295410479, 0.997351, 0.719089, 0.493755, 0.9028283533647439, 0.997351, 0.726324, 0.499428, 0.9054548771884396, 0.997341, 0.733545, 0.505167, 0.9080807313222261, 0.997285, 0.740772, 0.510983, 0.9107072551459221, 0.997228, 0.747981, 0.516859, 0.9133331092797088, 0.997138, 0.75519, 0.522806, 0.9159596331034043, 0.997019, 0.762398, 0.528821, 0.918585487237191, 0.996898, 0.769591, 0.534892, 0.9212120110608868, 0.996727, 0.776795, 0.541039, 0.9238385348845826, 0.996571, 0.783977, 0.547233, 0.9264643890183692, 0.996369, 0.791167, 0.553499, 0.929090912842065, 0.996162, 0.798348, 0.55982, 0.9317167669758517, 0.995932, 0.805527, 0.566202, 0.9343432907995475, 0.99568, 0.812706, 0.572645, 0.9369691449333339, 0.995424, 0.819875, 0.57914, 0.9395956687570297, 0.995131, 0.827052, 0.585701, 0.9422215228908164, 0.994851, 0.834213, 0.592307, 0.9448480467145122, 0.994524, 0.841387, 0.598983, 0.9474745705382079, 0.994222, 0.84854, 0.605696, 0.9501004246719944, 0.993866, 0.855711, 0.612482, 0.9527269484956904, 0.993545, 0.862859, 0.619299, 0.9553528026294769, 0.99317, 0.870024, 0.626189, 0.9579793264531726, 0.992831, 0.877168, 0.633109, 0.9606051805869593, 0.99244, 0.88433, 0.640099, 0.9632317044106551, 0.992089, 0.89147, 0.647116, 0.9658582282343509, 0.991688, 0.898627, 0.654202, 0.9684840823681375, 0.991332, 0.905763, 0.661309, 0.9711106061918333, 0.99093, 0.912915, 0.668481, 0.9737364603256198, 0.99057, 0.920049, 0.675675, 0.9763629841493158, 0.990175, 0.927196, 0.682926, 0.9789888382831025, 0.989815, 0.934329, 0.690198, 0.981615362106798, 0.989434, 0.94147, 0.697519, 0.984241885930494, 0.989077, 0.948604, 0.704863, 0.9868677400642807, 0.988717, 0.955742, 0.712242, 0.9894942638879762, 0.988367, 0.962878, 0.719649, 0.9921201180217629, 0.988033, 0.970012, 0.727077, 0.9947466418454587, 0.987691, 0.977154, 0.734536, 0.9973724959792454, 0.987387, 0.984288, 0.742002, 0.9999990198029411, 0.987053, 0.991438, 0.749504]
elasticRatioLUT.ColorSpace = 'RGB'
elasticRatioLUT.NanColor = [0.0, 1.0, 0.0]
elasticRatioLUT.ScalarRangeInitialized = 1.0
# get opacity transfer function/opacity map for 'elasticRatio'
elasticRatioPWF = GetOpacityTransferFunction('elasticRatio')
elasticRatioPWF.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0]
elasticRatioPWF.ScalarRangeInitialized = 1
# trace defaults for the display properties.
elasticRatiovtsDisplay.Representation = 'Surface'
elasticRatiovtsDisplay.ColorArrayName = ['POINTS', 'elasticRatio']
elasticRatiovtsDisplay.LookupTable = elasticRatioLUT
elasticRatiovtsDisplay.OSPRayScaleArray = 'elasticRatio'
elasticRatiovtsDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
elasticRatiovtsDisplay.SelectOrientationVectors = 'None'
elasticRatiovtsDisplay.ScaleFactor = 0.9
elasticRatiovtsDisplay.SelectScaleArray = 'elasticRatio'
elasticRatiovtsDisplay.GlyphType = 'Arrow'
elasticRatiovtsDisplay.GlyphTableIndexArray = 'elasticRatio'
elasticRatiovtsDisplay.GaussianRadius = 0.045
elasticRatiovtsDisplay.SetScaleArray = ['POINTS', 'elasticRatio']
elasticRatiovtsDisplay.ScaleTransferFunction = 'PiecewiseFunction'
elasticRatiovtsDisplay.OpacityArray = ['POINTS', 'elasticRatio']
elasticRatiovtsDisplay.OpacityTransferFunction = 'PiecewiseFunction'
elasticRatiovtsDisplay.DataAxesGrid = 'GridAxesRepresentation'
elasticRatiovtsDisplay.PolarAxes = 'PolarAxesRepresentation'
elasticRatiovtsDisplay.ScalarOpacityFunction = elasticRatioPWF
elasticRatiovtsDisplay.ScalarOpacityUnitDistance = 0.24673084980136809
# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
elasticRatiovtsDisplay.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
elasticRatiovtsDisplay.ScaleTransferFunction.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
elasticRatiovtsDisplay.OpacityTransferFunction.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0]
# reset view to fit data
renderView1.ResetCamera()
#changing interaction mode based on data extents
renderView1.InteractionMode = '2D'
renderView1.CameraPosition = [9999.5, 5.51, 0.5]
renderView1.CameraFocalPoint = [-0.5, 5.51, 0.5]
renderView1.CameraViewUp = [0.0, 0.0, 1.0]
# show color bar/color legend
elasticRatiovtsDisplay.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
renderView1.Update()
# create a new 'Transform'
transform1 = Transform(Input=elasticRatiovts)
transform1.Transform = 'Transform'
# Properties modified on transform1.Transform
transform1.Transform.Scale = [1.0, 0.1, 1.0]
# show data in view
transform1Display = Show(transform1, renderView1)
# trace defaults for the display properties.
transform1Display.Representation = 'Surface'
transform1Display.ColorArrayName = ['POINTS', 'elasticRatio']
transform1Display.LookupTable = elasticRatioLUT
transform1Display.OSPRayScaleArray = 'elasticRatio'
transform1Display.OSPRayScaleFunction = 'PiecewiseFunction'
transform1Display.SelectOrientationVectors = 'None'
transform1Display.ScaleFactor = 0.098
transform1Display.SelectScaleArray = 'elasticRatio'
transform1Display.GlyphType = 'Arrow'
transform1Display.GlyphTableIndexArray = 'elasticRatio'
transform1Display.GaussianRadius = 0.0049
transform1Display.SetScaleArray = ['POINTS', 'elasticRatio']
transform1Display.ScaleTransferFunction = 'PiecewiseFunction'
transform1Display.OpacityArray = ['POINTS', 'elasticRatio']
transform1Display.OpacityTransferFunction = 'PiecewiseFunction'
transform1Display.DataAxesGrid = 'GridAxesRepresentation'
transform1Display.PolarAxes = 'PolarAxesRepresentation'
transform1Display.ScalarOpacityFunction = elasticRatioPWF
transform1Display.ScalarOpacityUnitDistance = 0.03626244811262771
# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
transform1Display.OSPRayScaleFunction.Points = [1.0, 0.8602941036224365, 0.5, 0.0, 1.213836476688135, 0.625, 0.5, 0.0, 1.3616352081298828, 0.6691176295280457, 0.5, 0.0, 1.6666333299996667, 0.8676470518112183, 0.5, 0.0, 1.7358490228652954, 0.6911764740943909, 0.5, 0.0, 2.0, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
transform1Display.ScaleTransferFunction.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0]
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
transform1Display.OpacityTransferFunction.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0]
# hide data in view
Hide(elasticRatiovts, renderView1)
# show color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, True)
# update the view to ensure updated data information
renderView1.Update()
# reset view to fit data
renderView1.ResetCamera()
# reset view to fit data
renderView1.ResetCamera()
# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=transform1.Transform)
# Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
elasticRatioLUT.ApplyPreset('Warm to Cool (Extended)', True)
# change representation type
transform1Display.SetRepresentationType('Point Gaussian')
# Properties modified on transform1Display
transform1Display.ShaderPreset = 'Plain circle'
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.Visibility = 1
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.XTitle = ''
renderView1.AxesGrid.ZTitle = ' $\\theta$ '
renderView1.AxesGrid.YTitle = ' $\\theta_\\mu$ '
renderView1.AxesGrid.ZTitleFontSize = 20
renderView1.AxesGrid.YTitleFontSize = 20
renderView1.AxesGrid.FacesToRender = 0
renderView1.AxesGrid.CullFrontface = 0
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.FacesToRender = 32
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.FacesToRender = 16
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.FacesToRender = 4
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.FacesToRender = 1
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.ShowEdges = 0
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.ShowTicks = 0
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.ShowGrid = 1
renderView1.AxesGrid.GridColor = [0.1803921568627451, 0.20392156862745098, 0.21176470588235294]
# Properties modified on renderView1.AxesGrid
# renderView1.AxesGrid.ShowGrid = 0
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.AxesToLabel = 7
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.DataScale = [1.0, 0.1, 1.0]
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.YAxisUseCustomLabels = 1
renderView1.AxesGrid.YAxisLabels = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.ZAxisUseCustomLabels = 1
renderView1.AxesGrid.ZAxisLabels = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.ZAxisLabels = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.ZAxisLabels = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
#### saving camera placements for all active views
# current camera placement for renderView1
renderView1.InteractionMode = '2D'
renderView1.CameraPosition = [2.0704518571099406, 0.551, 0.5]
renderView1.CameraFocalPoint = [-0.5, 0.551, 0.5]
renderView1.CameraViewUp = [0.0, 0.0, 1.0]
renderView1.CameraParallelScale = 0.6652818951391959
renderView1.AxesGrid.YTitleFontSize = 65 #24
renderView1.AxesGrid.ZTitleFontSize = 65
renderView1.AxesGrid.YLabelFontSize = 45 #default:12
renderView1.AxesGrid.ZLabelFontSize = 45
#### uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).
# --------------------------------------------------------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------------------------------------------------------
if prestrain:
# set scalar coloring
ColorBy(transform1Display, ('POINTS', 'prestrainRatio'))
# get color transfer function/color map for 'prestrainRatio'
prestrainRatioLUT = GetColorTransferFunction('prestrainRatio')
prestrainRatioLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
prestrainRatioLUT.InterpretValuesAsCategories = 0
prestrainRatioLUT.AnnotationsInitialized = 0
prestrainRatioLUT.ShowCategoricalColorsinDataRangeOnly = 0
prestrainRatioLUT.RescaleOnVisibilityChange = 0
prestrainRatioLUT.EnableOpacityMapping = 0
prestrainRatioLUT.RGBPoints = [1.0000497462439073, 0.001462, 0.000466, 0.013866, 1.0017355871052882, 0.002258, 0.001295, 0.018331, 1.0034209981245321, 0.003279, 0.002305, 0.023708, 1.005106838985913, 0.004512, 0.00349, 0.029965, 1.006792250005157, 0.00595, 0.004843, 0.03713, 1.008478090866538, 0.007588, 0.006356, 0.044973, 1.0101635018857817, 0.009426, 0.008022, 0.052844, 1.0118493427471627, 0.011465, 0.009828, 0.06075, 1.0135351836085438, 0.013708, 0.011771, 0.068667, 1.0152205946277877, 0.016156, 0.01384, 0.076603, 1.0169064354891686, 0.018815, 0.016026, 0.084584, 1.0185918465084125, 0.021692, 0.01832, 0.09261, 1.0202776873697934, 0.024792, 0.020715, 0.100676, 1.0219630983890373, 0.028123, 0.023201, 0.108787, 1.0236489392504182, 0.031696, 0.025765, 0.116965, 1.0253347801117991, 0.03552, 0.028397, 0.125209, 1.027020191131043, 0.039608, 0.03109, 0.133515, 1.028706031992424, 0.04383, 0.03383, 0.141886, 1.030391443011668, 0.048062, 0.036607, 0.150327, 1.032077283873049, 0.05232, 0.039407, 0.158841, 1.0337626948922927, 0.056615, 0.04216, 0.167446, 1.0354485357536738, 0.060949, 0.044794, 0.176129, 1.0371343766150547, 0.06533, 0.047318, 0.184892, 1.0388197876342986, 0.069764, 0.049726, 0.193735, 1.0405056284956795, 0.074257, 0.052017, 0.20266, 1.0421910395149234, 0.078815, 0.054184, 0.211667, 1.0438768803763043, 0.083446, 0.056225, 0.220755, 1.0455622913955482, 0.088155, 0.058133, 0.229922, 1.0472481322569291, 0.092949, 0.059904, 0.239164, 1.0489335432761733, 0.097833, 0.061531, 0.248477, 1.0506193841375542, 0.102815, 0.06301, 0.257854, 1.052305224998935, 0.107899, 0.064335, 0.267289, 1.053990636018179, 0.113094, 0.065492, 0.276784, 1.05567647687956, 0.118405, 0.066479, 0.286321, 1.0573618878988038, 0.123833, 0.067295, 0.295879, 1.0590477287601847, 0.12938, 0.067935, 0.305443, 1.0607331397794286, 0.135053, 0.068391, 0.315, 1.0624189806408095, 0.140858, 0.068654, 0.324538, 1.0641048215021904, 0.146785, 0.068738, 0.334011, 1.0657902325214343, 0.152839, 0.068637, 0.343404, 1.0674760733828152, 0.159018, 0.068354, 0.352688, 1.0691614844020592, 0.165308, 0.067911, 0.361816, 1.0708473252634403, 0.171713, 0.067305, 0.370771, 1.0725327362826842, 0.178212, 0.066576, 0.379497, 1.074218577144065, 0.184801, 0.065732, 0.387973, 1.075904418005446, 0.19146, 0.064818, 0.396152, 1.07758982902469, 0.198177, 0.063862, 0.404009, 1.0792756698860708, 0.204935, 0.062907, 0.411514, 1.0809610809053147, 0.211718, 0.061992, 0.418647, 1.0826469217666956, 0.218512, 0.061158, 0.425392, 1.0843323327859395, 0.225302, 0.060445, 0.431742, 1.0860181736473205, 0.232077, 0.059889, 0.437695, 1.0877040145087014, 0.238826, 0.059517, 0.443256, 1.0893894255279453, 0.245543, 0.059352, 0.448436, 1.0910752663893262, 0.25222, 0.059415, 0.453248, 1.0927606774085703, 0.258857, 0.059706, 0.45771, 1.0944465182699512, 0.265447, 0.060237, 0.46184, 1.0961319292891951, 0.271994, 0.060994, 0.46566, 1.097817770150576, 0.278493, 0.061978, 0.46919, 1.099503611011957, 0.284951, 0.063168, 0.472451, 1.1011890220312008, 0.291366, 0.064553, 0.475462, 1.1028748628925817, 0.29774, 0.066117, 0.478243, 1.1045602739118257, 0.304081, 0.067835, 0.480812, 1.1062461147732066, 0.310382, 0.069702, 0.483186, 1.1079315257924505, 0.316654, 0.07169, 0.48538, 1.1096173666538314, 0.322899, 0.073782, 0.487408, 1.1113032075152123, 0.329114, 0.075972, 0.489287, 1.1129886185344562, 0.335308, 0.078236, 0.491024, 1.1146744593958373, 0.341482, 0.080564, 0.492631, 1.1163598704150812, 0.347636, 0.082946, 0.494121, 1.1180457112764621, 0.353773, 0.085373, 0.495501, 1.119731122295706, 0.359898, 0.087831, 0.496778, 1.121416963157087, 0.366012, 0.090314, 0.49796, 1.1231028040184678, 0.372116, 0.092816, 0.499053, 1.1247882150377118, 0.378211, 0.095332, 0.500067, 1.1264740558990927, 0.384299, 0.097855, 0.501002, 1.1281594669183366, 0.390384, 0.100379, 0.501864, 1.1298453077797175, 0.396467, 0.102902, 0.502658, 1.1315307187989614, 0.402548, 0.10542, 0.503386, 1.1332165596603425, 0.408629, 0.10793, 0.504052, 1.1349019706795864, 0.414709, 0.110431, 0.504662, 1.1365878115409673, 0.420791, 0.11292, 0.505215, 1.1382736524023482, 0.426877, 0.115395, 0.505714, 1.1399590634215921, 0.432967, 0.117855, 0.50616, 1.141644904282973, 0.439062, 0.120298, 0.506555, 1.143330315302217, 0.445163, 0.122724, 0.506901, 1.1450161561635979, 0.451271, 0.125132, 0.507198, 1.1467015671828418, 0.457386, 0.127522, 0.507448, 1.148387408044223, 0.463508, 0.129893, 0.507652, 1.1500732489056036, 0.46964, 0.132245, 0.507809, 1.1517586599248475, 0.47578, 0.134577, 0.507921, 1.1534445007862284, 0.481929, 0.136891, 0.507989, 1.1551299118054725, 0.488088, 0.139186, 0.508011, 1.1568157526668534, 0.494258, 0.141462, 0.507988, 1.1585011636860973, 0.500438, 0.143719, 0.50792, 1.1601870045474783, 0.506629, 0.145958, 0.507806, 1.1618728454088592, 0.512831, 0.148179, 0.507648, 1.163558256428103, 0.519045, 0.150383, 0.507443, 1.165244097289484, 0.52527, 0.152569, 0.507192, 1.1669295083087279, 0.531507, 0.154739, 0.506895, 1.1686153491701088, 0.537755, 0.156894, 0.506551, 1.1703007601893527, 0.544015, 0.159033, 0.506159, 1.1719866010507336, 0.550287, 0.161158, 0.505719, 1.1736724419121147, 0.556571, 0.163269, 0.50523, 1.1753578529313584, 0.562866, 0.165368, 0.504692, 1.1770436937927395, 0.569172, 0.167454, 0.504105, 1.1787291048119835, 0.57549, 0.16953, 0.503466, 1.1804149456733644, 0.581819, 0.171596, 0.502777, 1.1821003566926083, 0.588158, 0.173652, 0.502035, 1.1837861975539892, 0.594508, 0.175701, 0.501241, 1.18547203841537, 0.600868, 0.177743, 0.500394, 1.187157449434614, 0.607238, 0.179779, 0.499492, 1.188843290295995, 0.613617, 0.181811, 0.498536, 1.1905287013152388, 0.620005, 0.18384, 0.497524, 1.1922145421766197, 0.626401, 0.185867, 0.496456, 1.1938999531958636, 0.632805, 0.187893, 0.495332, 1.1955857940572445, 0.639216, 0.189921, 0.49415, 1.1972716349186254, 0.645633, 0.191952, 0.49291, 1.1989570459378696, 0.652056, 0.193986, 0.491611, 1.2006428867992505, 0.658483, 0.196027, 0.490253, 1.2023282978184944, 0.664915, 0.198075, 0.488836, 1.2040141386798753, 0.671349, 0.200133, 0.487358, 1.2056995496991192, 0.677786, 0.202203, 0.485819, 1.2073853905605, 0.684224, 0.204286, 0.484219, 1.209071231421881, 0.690661, 0.206384, 0.482558, 1.210756642441125, 0.697098, 0.208501, 0.480835, 1.2124424833025058, 0.703532, 0.210638, 0.479049, 1.2141278943217497, 0.709962, 0.212797, 0.477201, 1.2158137351831309, 0.716387, 0.214982, 0.47529, 1.2174991462023748, 0.722805, 0.217194, 0.473316, 1.2191849870637557, 0.729216, 0.219437, 0.471279, 1.2208703980829996, 0.735616, 0.221713, 0.46918, 1.2225562389443805, 0.742004, 0.224025, 0.467018, 1.2242420798057614, 0.748378, 0.226377, 0.464794, 1.2259274908250053, 0.754737, 0.228772, 0.462509, 1.2276133316863862, 0.761077, 0.231214, 0.460162, 1.22929874270563, 0.767398, 0.233705, 0.457755, 1.230984583567011, 0.773695, 0.236249, 0.455289, 1.2326699945862551, 0.779968, 0.238851, 0.452765, 1.2343558354476358, 0.786212, 0.241514, 0.450184, 1.236041676309017, 0.792427, 0.244242, 0.447543, 1.2377270873282609, 0.798608, 0.24704, 0.444848, 1.2394129281896418, 0.804752, 0.249911, 0.442102, 1.2410983392088857, 0.810855, 0.252861, 0.439305, 1.2427841800702666, 0.816914, 0.255895, 0.436461, 1.2444695910895105, 0.822926, 0.259016, 0.433573, 1.2461554319508914, 0.828886, 0.262229, 0.430644, 1.2478412728122723, 0.834791, 0.26554, 0.427671, 1.2495266838315162, 0.840636, 0.268953, 0.424666, 1.2512125246928971, 0.846416, 0.272473, 0.421631, 1.252897935712141, 0.852126, 0.276106, 0.418573, 1.2545837765735222, 0.857763, 0.279857, 0.415496, 1.2562691875927658, 0.86332, 0.283729, 0.412403, 1.257955028454147, 0.868793, 0.287728, 0.409303, 1.2596408693155277, 0.874176, 0.291859, 0.406205, 1.2613262803347718, 0.879464, 0.296125, 0.403118, 1.2630121211961527, 0.884651, 0.30053, 0.400047, 1.2646975322153966, 0.889731, 0.305079, 0.397002, 1.2663833730767775, 0.8947, 0.309773, 0.393995, 1.2680687840960214, 0.899552, 0.314616, 0.391037, 1.2697546249574023, 0.904281, 0.31961, 0.388137, 1.2714404658187832, 0.908884, 0.324755, 0.385308, 1.2731258768380274, 0.913354, 0.330052, 0.382563, 1.274811717699408, 0.917689, 0.3355, 0.379915, 1.276497128718652, 0.921884, 0.341098, 0.377376, 1.278182969580033, 0.925937, 0.346844, 0.374959, 1.279868380599277, 0.929845, 0.352734, 0.372677, 1.2815542214606577, 0.933606, 0.358764, 0.370541, 1.2832400623220388, 0.937221, 0.364929, 0.368567, 1.2849254733412827, 0.940687, 0.371224, 0.366762, 1.2866113142026636, 0.944006, 0.377643, 0.365136, 1.2882967252219075, 0.94718, 0.384178, 0.363701, 1.2899825660832884, 0.95021, 0.39082, 0.362468, 1.2916679771025323, 0.953099, 0.397563, 0.361438, 1.2933538179639132, 0.955849, 0.4044, 0.360619, 1.2950396588252944, 0.958464, 0.411324, 0.360014, 1.296725069844538, 0.960949, 0.418323, 0.35963, 1.2984109107059192, 0.96331, 0.42539, 0.359469, 1.300096321725163, 0.965549, 0.432519, 0.359529, 1.301782162586544, 0.967671, 0.439703, 0.35981, 1.3034675736057877, 0.96968, 0.446936, 0.360311, 1.3051534144671688, 0.971582, 0.45421, 0.36103, 1.3068388254864127, 0.973381, 0.46152, 0.361965, 1.3085246663477936, 0.975082, 0.468861, 0.363111, 1.3102105072091748, 0.97669, 0.476226, 0.364466, 1.3118959182284184, 0.97821, 0.483612, 0.366025, 1.3135817590897994, 0.979645, 0.491014, 0.367783, 1.3152671701090433, 0.981, 0.498428, 0.369734, 1.3169530109704244, 0.982279, 0.505851, 0.371874, 1.318638421989668, 0.983485, 0.51328, 0.374198, 1.3203242628510492, 0.984622, 0.520713, 0.376698, 1.32201010371243, 0.985693, 0.528148, 0.379371, 1.323695514731674, 0.9867, 0.535582, 0.38221, 1.325381355593055, 0.987646, 0.543015, 0.38521, 1.3270667666122988, 0.988533, 0.550446, 0.388365, 1.3287526074736797, 0.989363, 0.557873, 0.391671, 1.3304380184929236, 0.990138, 0.565296, 0.395122, 1.3321238593543048, 0.990871, 0.572706, 0.398714, 1.3338097002156855, 0.991558, 0.580107, 0.402441, 1.3354951112349294, 0.992196, 0.587502, 0.406299, 1.3371809520963103, 0.992785, 0.594891, 0.410283, 1.3388663631155544, 0.993326, 0.602275, 0.41439, 1.3405522039769353, 0.993834, 0.609644, 0.418613, 1.3422376149961792, 0.994309, 0.616999, 0.42295, 1.3439234558575601, 0.994738, 0.62435, 0.427397, 1.345609296718941, 0.995122, 0.631696, 0.431951, 1.347294707738185, 0.99548, 0.639027, 0.436607, 1.3489805485995658, 0.99581, 0.646344, 0.441361, 1.3506659596188098, 0.996096, 0.653659, 0.446213, 1.3523518004801907, 0.996341, 0.660969, 0.45116, 1.3540372114994346, 0.99658, 0.668256, 0.456192, 1.3557230523608155, 0.996775, 0.675541, 0.461314, 1.3574088932221966, 0.996925, 0.682828, 0.466526, 1.3590943042414403, 0.997077, 0.690088, 0.471811, 1.3607801451028214, 0.997186, 0.697349, 0.477182, 1.3624655561220653, 0.997254, 0.704611, 0.482635, 1.3641513969834462, 0.997325, 0.711848, 0.488154, 1.36583680800269, 0.997351, 0.719089, 0.493755, 1.367522648864071, 0.997351, 0.726324, 0.499428, 1.369208489725452, 0.997341, 0.733545, 0.505167, 1.3708939007446959, 0.997285, 0.740772, 0.510983, 1.372579741606077, 0.997228, 0.747981, 0.516859, 1.3742651526253207, 0.997138, 0.75519, 0.522806, 1.3759509934867016, 0.997019, 0.762398, 0.528821, 1.3776364045059455, 0.996898, 0.769591, 0.534892, 1.3793222453673266, 0.996727, 0.776795, 0.541039, 1.3810080862287073, 0.996571, 0.783977, 0.547233, 1.3826934972479514, 0.996369, 0.791167, 0.553499, 1.3843793381093323, 0.996162, 0.798348, 0.55982, 1.3860647491285762, 0.995932, 0.805527, 0.566202, 1.3877505899899572, 0.99568, 0.812706, 0.572645, 1.389436001009201, 0.995424, 0.819875, 0.57914, 1.391121841870582, 0.995131, 0.827052, 0.585701, 1.3928072528898259, 0.994851, 0.834213, 0.592307, 1.394493093751207, 0.994524, 0.841387, 0.598983, 1.3961789346125877, 0.994222, 0.84854, 0.605696, 1.3978643456318316, 0.993866, 0.855711, 0.612482, 1.3995501864932127, 0.993545, 0.862859, 0.619299, 1.4012355975124566, 0.99317, 0.870024, 0.626189, 1.4029214383738373, 0.992831, 0.877168, 0.633109, 1.4046068493930814, 0.99244, 0.88433, 0.640099, 1.4062926902544624, 0.992089, 0.89147, 0.647116, 1.4079785311158433, 0.991688, 0.898627, 0.654202, 1.4096639421350872, 0.991332, 0.905763, 0.661309, 1.411349782996468, 0.99093, 0.912915, 0.668481, 1.413035194015712, 0.99057, 0.920049, 0.675675, 1.4147210348770929, 0.990175, 0.927196, 0.682926, 1.416406445896337, 0.989815, 0.934329, 0.690198, 1.4180922867577177, 0.989434, 0.94147, 0.697519, 1.4197781276190988, 0.989077, 0.948604, 0.704863, 1.4214635386383427, 0.988717, 0.955742, 0.712242, 1.4231493794997236, 0.988367, 0.962878, 0.719649, 1.4248347905189676, 0.988033, 0.970012, 0.727077, 1.4265206313803485, 0.987691, 0.977154, 0.734536, 1.4282060423995924, 0.987387, 0.984288, 0.742002, 1.4298918832609733, 0.987053, 0.991438, 0.749504]
prestrainRatioLUT.UseLogScale = 0
prestrainRatioLUT.ColorSpace = 'RGB'
prestrainRatioLUT.UseBelowRangeColor = 0
prestrainRatioLUT.BelowRangeColor = [0.0, 0.0, 0.0]
prestrainRatioLUT.UseAboveRangeColor = 0
prestrainRatioLUT.AboveRangeColor = [0.5, 0.5, 0.5]
prestrainRatioLUT.NanColor = [0.0, 1.0, 0.0]
prestrainRatioLUT.NanOpacity = 1.0
prestrainRatioLUT.Discretize = 1
prestrainRatioLUT.NumberOfTableValues = 256
prestrainRatioLUT.ScalarRangeInitialized = 1.0
prestrainRatioLUT.HSVWrap = 0
prestrainRatioLUT.VectorComponent = 0
prestrainRatioLUT.VectorMode = 'Magnitude'
prestrainRatioLUT.AllowDuplicateScalars = 1
prestrainRatioLUT.Annotations = []
prestrainRatioLUT.ActiveAnnotatedValues = []
prestrainRatioLUT.IndexedColors = []
prestrainRatioLUT.IndexedOpacities = []
# Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
prestrainRatioLUT.ApplyPreset('Warm to Cool (Extended)', True)
# get opacity transfer function/opacity map for 'prestrainRatio'
prestrainRatioPWF = GetOpacityTransferFunction('prestrainRatio')
prestrainRatioPWF.Points = [1.0000497462439073, 0.8602941036224365, 0.5, 0.0, 1.0919656743557353, 0.625, 0.5, 0.0, 1.1554957969270676, 0.6691176295280457, 0.5, 0.0, 1.2865968414177669, 0.8676470518112183, 0.5, 0.0, 1.3163486627542458, 0.6911764740943909, 0.5, 0.0, 1.4298918832609733, 0.8014705777168274, 0.5, 0.0]
prestrainRatioPWF.AllowDuplicateScalars = 1
prestrainRatioPWF.UseLogScale = 0
prestrainRatioPWF.ScalarRangeInitialized = 1
# Apply a preset using its name. Note this may not work as expected when presets have duplicate names.
prestrainRatioLUT.ApplyPreset('Warm to Cool (Extended)', True)
# invert the transfer function
prestrainRatioLUT.InvertTransferFunction()
# get active source.
transform1 = GetActiveSource()
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [1067, 547]
# get display properties
transform1Display = GetDisplayProperties(transform1, view=renderView1)
# show color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, True)
# hide color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, False)
# show color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, True)
# hide color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, False)
# set scalar coloring using an separate color/opacity maps
ColorBy(transform1Display, ('POINTS', 'prestrainRatio'), True)
# get color transfer function/color map for 'prestrainRatio'
prestrainRatioLUT = GetColorTransferFunction('prestrainRatio')
prestrainRatioLUT.RGBPoints = [1.0000497462439073, 0.12549, 0.0, 0.380392, 1.010795799669334, 0.113725, 0.0235294, 0.45098, 1.0215418530947606, 0.105882, 0.0509804, 0.509804, 1.032287906520187, 0.0392157, 0.0392157, 0.560784, 1.043033959945614, 0.0313725, 0.0980392, 0.6, 1.0537800133710404, 0.0431373, 0.164706, 0.639216, 1.0645260667964673, 0.054902, 0.243137, 0.678431, 1.0752721202218938, 0.054902, 0.317647, 0.709804, 1.0860181736473205, 0.0509804, 0.396078, 0.741176, 1.0967642270727471, 0.0392157, 0.466667, 0.768627, 1.1075102804981738, 0.0313725, 0.537255, 0.788235, 1.1234423793067114, 0.0313725, 0.615686, 0.811765, 1.1369149214072372, 0.0235294, 0.709804, 0.831373, 1.1497461390393338, 0.0509804, 0.8, 0.85098, 1.1591553834186372, 0.0705882, 0.854902, 0.870588, 1.1694204434927418, 0.262745, 0.901961, 0.862745, 1.177332977550952, 0.423529, 0.941176, 0.87451, 1.187383976240822, 0.572549, 0.964706, 0.835294, 1.1948688173727002, 0.658824, 0.980392, 0.843137, 1.2014982726519143, 0.764706, 0.980392, 0.866667, 1.2079136665468941, 0.827451, 0.980392, 0.886275, 1.2145409726154233, 0.913725, 0.988235, 0.937255, 1.2149708147524403, 1.0, 1.0, 1.0, 1.2154006568894573, 0.988235, 0.980392, 0.870588, 1.2220279629579864, 0.992157, 0.964706, 0.713725, 1.2278020323845367, 0.988235, 0.956863, 0.643137, 1.2389224783113053, 0.980392, 0.917647, 0.509804, 1.2498288628538392, 0.968627, 0.87451, 0.407843, 1.2598798615437092, 0.94902, 0.823529, 0.321569, 1.2687010818795734, 0.929412, 0.776471, 0.278431, 1.2794471353050003, 0.909804, 0.717647, 0.235294, 1.2901931887304268, 0.890196, 0.658824, 0.196078, 1.3009392421558534, 0.878431, 0.619608, 0.168627, 1.31168529558128, 0.870588, 0.54902, 0.156863, 1.3224313490067068, 0.85098, 0.47451, 0.145098, 1.3331774024321335, 0.831373, 0.411765, 0.133333, 1.3439234558575601, 0.811765, 0.345098, 0.113725, 1.3546695092829868, 0.788235, 0.266667, 0.0941176, 1.3654155627084135, 0.741176, 0.184314, 0.0745098, 1.3761616161338401, 0.690196, 0.12549, 0.0627451, 1.3869076695592666, 0.619608, 0.0627451, 0.0431373, 1.3976537229846933, 0.54902, 0.027451, 0.0705882, 1.40839977641012, 0.470588, 0.0156863, 0.0901961, 1.4191458298355466, 0.4, 0.00392157, 0.101961, 1.4298918832609733, 0.34902, 0.0, 0.129412]
prestrainRatioLUT.ColorSpace = 'Lab'
prestrainRatioLUT.NanColor = [0.250004, 0.0, 0.0]
prestrainRatioLUT.ScalarRangeInitialized = 1.0
# Hide the scalar bar for this color map if no visible data is colored by it.
HideScalarBarIfNotNeeded(prestrainRatioLUT, renderView1)
# rescale color and/or opacity maps used to include current data range
transform1Display.RescaleTransferFunctionToDataRange(True, False)
# show color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, True)
# get separate color transfer function/color map for 'prestrainRatio'
separate_transform1Display_prestrainRatioLUT = GetColorTransferFunction('prestrainRatio', transform1Display, separate=True)
separate_transform1Display_prestrainRatioLUT.RGBPoints = [1.0000497462439073, 0.001462, 0.000466, 0.013866, 1.0017355871052882, 0.002258, 0.001295, 0.018331, 1.0034209981245321, 0.003279, 0.002305, 0.023708, 1.005106838985913, 0.004512, 0.00349, 0.029965, 1.006792250005157, 0.00595, 0.004843, 0.03713, 1.008478090866538, 0.007588, 0.006356, 0.044973, 1.0101635018857817, 0.009426, 0.008022, 0.052844, 1.0118493427471627, 0.011465, 0.009828, 0.06075, 1.0135351836085438, 0.013708, 0.011771, 0.068667, 1.0152205946277877, 0.016156, 0.01384, 0.076603, 1.0169064354891686, 0.018815, 0.016026, 0.084584, 1.0185918465084125, 0.021692, 0.01832, 0.09261, 1.0202776873697934, 0.024792, 0.020715, 0.100676, 1.0219630983890373, 0.028123, 0.023201, 0.108787, 1.0236489392504182, 0.031696, 0.025765, 0.116965, 1.0253347801117991, 0.03552, 0.028397, 0.125209, 1.027020191131043, 0.039608, 0.03109, 0.133515, 1.028706031992424, 0.04383, 0.03383, 0.141886, 1.030391443011668, 0.048062, 0.036607, 0.150327, 1.032077283873049, 0.05232, 0.039407, 0.158841, 1.0337626948922927, 0.056615, 0.04216, 0.167446, 1.0354485357536738, 0.060949, 0.044794, 0.176129, 1.0371343766150547, 0.06533, 0.047318, 0.184892, 1.0388197876342986, 0.069764, 0.049726, 0.193735, 1.0405056284956795, 0.074257, 0.052017, 0.20266, 1.0421910395149234, 0.078815, 0.054184, 0.211667, 1.0438768803763043, 0.083446, 0.056225, 0.220755, 1.0455622913955482, 0.088155, 0.058133, 0.229922, 1.0472481322569291, 0.092949, 0.059904, 0.239164, 1.0489335432761733, 0.097833, 0.061531, 0.248477, 1.0506193841375542, 0.102815, 0.06301, 0.257854, 1.052305224998935, 0.107899, 0.064335, 0.267289, 1.053990636018179, 0.113094, 0.065492, 0.276784, 1.05567647687956, 0.118405, 0.066479, 0.286321, 1.0573618878988038, 0.123833, 0.067295, 0.295879, 1.0590477287601847, 0.12938, 0.067935, 0.305443, 1.0607331397794286, 0.135053, 0.068391, 0.315, 1.0624189806408095, 0.140858, 0.068654, 0.324538, 1.0641048215021904, 0.146785, 0.068738, 0.334011, 1.0657902325214343, 0.152839, 0.068637, 0.343404, 1.0674760733828152, 0.159018, 0.068354, 0.352688, 1.0691614844020592, 0.165308, 0.067911, 0.361816, 1.0708473252634403, 0.171713, 0.067305, 0.370771, 1.0725327362826842, 0.178212, 0.066576, 0.379497, 1.074218577144065, 0.184801, 0.065732, 0.387973, 1.075904418005446, 0.19146, 0.064818, 0.396152, 1.07758982902469, 0.198177, 0.063862, 0.404009, 1.0792756698860708, 0.204935, 0.062907, 0.411514, 1.0809610809053147, 0.211718, 0.061992, 0.418647, 1.0826469217666956, 0.218512, 0.061158, 0.425392, 1.0843323327859395, 0.225302, 0.060445, 0.431742, 1.0860181736473205, 0.232077, 0.059889, 0.437695, 1.0877040145087014, 0.238826, 0.059517, 0.443256, 1.0893894255279453, 0.245543, 0.059352, 0.448436, 1.0910752663893262, 0.25222, 0.059415, 0.453248, 1.0927606774085703, 0.258857, 0.059706, 0.45771, 1.0944465182699512, 0.265447, 0.060237, 0.46184, 1.0961319292891951, 0.271994, 0.060994, 0.46566, 1.097817770150576, 0.278493, 0.061978, 0.46919, 1.099503611011957, 0.284951, 0.063168, 0.472451, 1.1011890220312008, 0.291366, 0.064553, 0.475462, 1.1028748628925817, 0.29774, 0.066117, 0.478243, 1.1045602739118257, 0.304081, 0.067835, 0.480812, 1.1062461147732066, 0.310382, 0.069702, 0.483186, 1.1079315257924505, 0.316654, 0.07169, 0.48538, 1.1096173666538314, 0.322899, 0.073782, 0.487408, 1.1113032075152123, 0.329114, 0.075972, 0.489287, 1.1129886185344562, 0.335308, 0.078236, 0.491024, 1.1146744593958373, 0.341482, 0.080564, 0.492631, 1.1163598704150812, 0.347636, 0.082946, 0.494121, 1.1180457112764621, 0.353773, 0.085373, 0.495501, 1.119731122295706, 0.359898, 0.087831, 0.496778, 1.121416963157087, 0.366012, 0.090314, 0.49796, 1.1231028040184678, 0.372116, 0.092816, 0.499053, 1.1247882150377118, 0.378211, 0.095332, 0.500067, 1.1264740558990927, 0.384299, 0.097855, 0.501002, 1.1281594669183366, 0.390384, 0.100379, 0.501864, 1.1298453077797175, 0.396467, 0.102902, 0.502658, 1.1315307187989614, 0.402548, 0.10542, 0.503386, 1.1332165596603425, 0.408629, 0.10793, 0.504052, 1.1349019706795864, 0.414709, 0.110431, 0.504662, 1.1365878115409673, 0.420791, 0.11292, 0.505215, 1.1382736524023482, 0.426877, 0.115395, 0.505714, 1.1399590634215921, 0.432967, 0.117855, 0.50616, 1.141644904282973, 0.439062, 0.120298, 0.506555, 1.143330315302217, 0.445163, 0.122724, 0.506901, 1.1450161561635979, 0.451271, 0.125132, 0.507198, 1.1467015671828418, 0.457386, 0.127522, 0.507448, 1.148387408044223, 0.463508, 0.129893, 0.507652, 1.1500732489056036, 0.46964, 0.132245, 0.507809, 1.1517586599248475, 0.47578, 0.134577, 0.507921, 1.1534445007862284, 0.481929, 0.136891, 0.507989, 1.1551299118054725, 0.488088, 0.139186, 0.508011, 1.1568157526668534, 0.494258, 0.141462, 0.507988, 1.1585011636860973, 0.500438, 0.143719, 0.50792, 1.1601870045474783, 0.506629, 0.145958, 0.507806, 1.1618728454088592, 0.512831, 0.148179, 0.507648, 1.163558256428103, 0.519045, 0.150383, 0.507443, 1.165244097289484, 0.52527, 0.152569, 0.507192, 1.1669295083087279, 0.531507, 0.154739, 0.506895, 1.1686153491701088, 0.537755, 0.156894, 0.506551, 1.1703007601893527, 0.544015, 0.159033, 0.506159, 1.1719866010507336, 0.550287, 0.161158, 0.505719, 1.1736724419121147, 0.556571, 0.163269, 0.50523, 1.1753578529313584, 0.562866, 0.165368, 0.504692, 1.1770436937927395, 0.569172, 0.167454, 0.504105, 1.1787291048119835, 0.57549, 0.16953, 0.503466, 1.1804149456733644, 0.581819, 0.171596, 0.502777, 1.1821003566926083, 0.588158, 0.173652, 0.502035, 1.1837861975539892, 0.594508, 0.175701, 0.501241, 1.18547203841537, 0.600868, 0.177743, 0.500394, 1.187157449434614, 0.607238, 0.179779, 0.499492, 1.188843290295995, 0.613617, 0.181811, 0.498536, 1.1905287013152388, 0.620005, 0.18384, 0.497524, 1.1922145421766197, 0.626401, 0.185867, 0.496456, 1.1938999531958636, 0.632805, 0.187893, 0.495332, 1.1955857940572445, 0.639216, 0.189921, 0.49415, 1.1972716349186254, 0.645633, 0.191952, 0.49291, 1.1989570459378696, 0.652056, 0.193986, 0.491611, 1.2006428867992505, 0.658483, 0.196027, 0.490253, 1.2023282978184944, 0.664915, 0.198075, 0.488836, 1.2040141386798753, 0.671349, 0.200133, 0.487358, 1.2056995496991192, 0.677786, 0.202203, 0.485819, 1.2073853905605, 0.684224, 0.204286, 0.484219, 1.209071231421881, 0.690661, 0.206384, 0.482558, 1.210756642441125, 0.697098, 0.208501, 0.480835, 1.2124424833025058, 0.703532, 0.210638, 0.479049, 1.2141278943217497, 0.709962, 0.212797, 0.477201, 1.2158137351831309, 0.716387, 0.214982, 0.47529, 1.2174991462023748, 0.722805, 0.217194, 0.473316, 1.2191849870637557, 0.729216, 0.219437, 0.471279, 1.2208703980829996, 0.735616, 0.221713, 0.46918, 1.2225562389443805, 0.742004, 0.224025, 0.467018, 1.2242420798057614, 0.748378, 0.226377, 0.464794, 1.2259274908250053, 0.754737, 0.228772, 0.462509, 1.2276133316863862, 0.761077, 0.231214, 0.460162, 1.22929874270563, 0.767398, 0.233705, 0.457755, 1.230984583567011, 0.773695, 0.236249, 0.455289, 1.2326699945862551, 0.779968, 0.238851, 0.452765, 1.2343558354476358, 0.786212, 0.241514, 0.450184, 1.236041676309017, 0.792427, 0.244242, 0.447543, 1.2377270873282609, 0.798608, 0.24704, 0.444848, 1.2394129281896418, 0.804752, 0.249911, 0.442102, 1.2410983392088857, 0.810855, 0.252861, 0.439305, 1.2427841800702666, 0.816914, 0.255895, 0.436461, 1.2444695910895105, 0.822926, 0.259016, 0.433573, 1.2461554319508914, 0.828886, 0.262229, 0.430644, 1.2478412728122723, 0.834791, 0.26554, 0.427671, 1.2495266838315162, 0.840636, 0.268953, 0.424666, 1.2512125246928971, 0.846416, 0.272473, 0.421631, 1.252897935712141, 0.852126, 0.276106, 0.418573, 1.2545837765735222, 0.857763, 0.279857, 0.415496, 1.2562691875927658, 0.86332, 0.283729, 0.412403, 1.257955028454147, 0.868793, 0.287728, 0.409303, 1.2596408693155277, 0.874176, 0.291859, 0.406205, 1.2613262803347718, 0.879464, 0.296125, 0.403118, 1.2630121211961527, 0.884651, 0.30053, 0.400047, 1.2646975322153966, 0.889731, 0.305079, 0.397002, 1.2663833730767775, 0.8947, 0.309773, 0.393995, 1.2680687840960214, 0.899552, 0.314616, 0.391037, 1.2697546249574023, 0.904281, 0.31961, 0.388137, 1.2714404658187832, 0.908884, 0.324755, 0.385308, 1.2731258768380274, 0.913354, 0.330052, 0.382563, 1.274811717699408, 0.917689, 0.3355, 0.379915, 1.276497128718652, 0.921884, 0.341098, 0.377376, 1.278182969580033, 0.925937, 0.346844, 0.374959, 1.279868380599277, 0.929845, 0.352734, 0.372677, 1.2815542214606577, 0.933606, 0.358764, 0.370541, 1.2832400623220388, 0.937221, 0.364929, 0.368567, 1.2849254733412827, 0.940687, 0.371224, 0.366762, 1.2866113142026636, 0.944006, 0.377643, 0.365136, 1.2882967252219075, 0.94718, 0.384178, 0.363701, 1.2899825660832884, 0.95021, 0.39082, 0.362468, 1.2916679771025323, 0.953099, 0.397563, 0.361438, 1.2933538179639132, 0.955849, 0.4044, 0.360619, 1.2950396588252944, 0.958464, 0.411324, 0.360014, 1.296725069844538, 0.960949, 0.418323, 0.35963, 1.2984109107059192, 0.96331, 0.42539, 0.359469, 1.300096321725163, 0.965549, 0.432519, 0.359529, 1.301782162586544, 0.967671, 0.439703, 0.35981, 1.3034675736057877, 0.96968, 0.446936, 0.360311, 1.3051534144671688, 0.971582, 0.45421, 0.36103, 1.3068388254864127, 0.973381, 0.46152, 0.361965, 1.3085246663477936, 0.975082, 0.468861, 0.363111, 1.3102105072091748, 0.97669, 0.476226, 0.364466, 1.3118959182284184, 0.97821, 0.483612, 0.366025, 1.3135817590897994, 0.979645, 0.491014, 0.367783, 1.3152671701090433, 0.981, 0.498428, 0.369734, 1.3169530109704244, 0.982279, 0.505851, 0.371874, 1.318638421989668, 0.983485, 0.51328, 0.374198, 1.3203242628510492, 0.984622, 0.520713, 0.376698, 1.32201010371243, 0.985693, 0.528148, 0.379371, 1.323695514731674, 0.9867, 0.535582, 0.38221, 1.325381355593055, 0.987646, 0.543015, 0.38521, 1.3270667666122988, 0.988533, 0.550446, 0.388365, 1.3287526074736797, 0.989363, 0.557873, 0.391671, 1.3304380184929236, 0.990138, 0.565296, 0.395122, 1.3321238593543048, 0.990871, 0.572706, 0.398714, 1.3338097002156855, 0.991558, 0.580107, 0.402441, 1.3354951112349294, 0.992196, 0.587502, 0.406299, 1.3371809520963103, 0.992785, 0.594891, 0.410283, 1.3388663631155544, 0.993326, 0.602275, 0.41439, 1.3405522039769353, 0.993834, 0.609644, 0.418613, 1.3422376149961792, 0.994309, 0.616999, 0.42295, 1.3439234558575601, 0.994738, 0.62435, 0.427397, 1.345609296718941, 0.995122, 0.631696, 0.431951, 1.347294707738185, 0.99548, 0.639027, 0.436607, 1.3489805485995658, 0.99581, 0.646344, 0.441361, 1.3506659596188098, 0.996096, 0.653659, 0.446213, 1.3523518004801907, 0.996341, 0.660969, 0.45116, 1.3540372114994346, 0.99658, 0.668256, 0.456192, 1.3557230523608155, 0.996775, 0.675541, 0.461314, 1.3574088932221966, 0.996925, 0.682828, 0.466526, 1.3590943042414403, 0.997077, 0.690088, 0.471811, 1.3607801451028214, 0.997186, 0.697349, 0.477182, 1.3624655561220653, 0.997254, 0.704611, 0.482635, 1.3641513969834462, 0.997325, 0.711848, 0.488154, 1.36583680800269, 0.997351, 0.719089, 0.493755, 1.367522648864071, 0.997351, 0.726324, 0.499428, 1.369208489725452, 0.997341, 0.733545, 0.505167, 1.3708939007446959, 0.997285, 0.740772, 0.510983, 1.372579741606077, 0.997228, 0.747981, 0.516859, 1.3742651526253207, 0.997138, 0.75519, 0.522806, 1.3759509934867016, 0.997019, 0.762398, 0.528821, 1.3776364045059455, 0.996898, 0.769591, 0.534892, 1.3793222453673266, 0.996727, 0.776795, 0.541039, 1.3810080862287073, 0.996571, 0.783977, 0.547233, 1.3826934972479514, 0.996369, 0.791167, 0.553499, 1.3843793381093323, 0.996162, 0.798348, 0.55982, 1.3860647491285762, 0.995932, 0.805527, 0.566202, 1.3877505899899572, 0.99568, 0.812706, 0.572645, 1.389436001009201, 0.995424, 0.819875, 0.57914, 1.391121841870582, 0.995131, 0.827052, 0.585701, 1.3928072528898259, 0.994851, 0.834213, 0.592307, 1.394493093751207, 0.994524, 0.841387, 0.598983, 1.3961789346125877, 0.994222, 0.84854, 0.605696, 1.3978643456318316, 0.993866, 0.855711, 0.612482, 1.3995501864932127, 0.993545, 0.862859, 0.619299, 1.4012355975124566, 0.99317, 0.870024, 0.626189, 1.4029214383738373, 0.992831, 0.877168, 0.633109, 1.4046068493930814, 0.99244, 0.88433, 0.640099, 1.4062926902544624, 0.992089, 0.89147, 0.647116, 1.4079785311158433, 0.991688, 0.898627, 0.654202, 1.4096639421350872, 0.991332, 0.905763, 0.661309, 1.411349782996468, 0.99093, 0.912915, 0.668481, 1.413035194015712, 0.99057, 0.920049, 0.675675, 1.4147210348770929, 0.990175, 0.927196, 0.682926, 1.416406445896337, 0.989815, 0.934329, 0.690198, 1.4180922867577177, 0.989434, 0.94147, 0.697519, 1.4197781276190988, 0.989077, 0.948604, 0.704863, 1.4214635386383427, 0.988717, 0.955742, 0.712242, 1.4231493794997236, 0.988367, 0.962878, 0.719649, 1.4248347905189676, 0.988033, 0.970012, 0.727077, 1.4265206313803485, 0.987691, 0.977154, 0.734536, 1.4282060423995924, 0.987387, 0.984288, 0.742002, 1.4298918832609733, 0.987053, 0.991438, 0.749504]
separate_transform1Display_prestrainRatioLUT.ColorSpace = 'RGB'
separate_transform1Display_prestrainRatioLUT.NanColor = [0.0, 1.0, 0.0]
separate_transform1Display_prestrainRatioLUT.ScalarRangeInitialized = 1.0
# get separate opacity transfer function/opacity map for 'prestrainRatio'
separate_transform1Display_prestrainRatioPWF = GetOpacityTransferFunction('prestrainRatio', transform1Display, separate=True)
separate_transform1Display_prestrainRatioPWF.Points = [1.0000497462439073, 0.8602941036224365, 0.5, 0.0, 1.0919656743557353, 0.625, 0.5, 0.0, 1.1554957969270676, 0.6691176295280457, 0.5, 0.0, 1.2865968414177669, 0.8676470518112183, 0.5, 0.0, 1.3163486627542458, 0.6911764740943909, 0.5, 0.0, 1.4298918832609733, 0.8014705777168274, 0.5, 0.0]
separate_transform1Display_prestrainRatioPWF.ScalarRangeInitialized = 1
# set scalar coloring
ColorBy(transform1Display, ('POINTS', 'prestrainRatio'))
# Hide the scalar bar for this color map if no visible data is colored by it.
HideScalarBarIfNotNeeded(separate_transform1Display_prestrainRatioLUT, renderView1)
# rescale color and/or opacity maps used to include current data range
transform1Display.RescaleTransferFunctionToDataRange(True, False)
# show color bar/color legend
transform1Display.SetScalarBarVisibility(renderView1, True)
# get opacity transfer function/opacity map for 'prestrainRatio'
prestrainRatioPWF = GetOpacityTransferFunction('prestrainRatio')
prestrainRatioPWF.Points = [1.0000497462439073, 0.8602941036224365, 0.5, 0.0, 1.0919656743557353, 0.625, 0.5, 0.0, 1.1554957969270676, 0.6691176295280457, 0.5, 0.0, 1.2865968414177669, 0.8676470518112183, 0.5, 0.0, 1.3163486627542458, 0.6911764740943909, 0.5, 0.0, 1.4298918832609733, 0.8014705777168274, 0.5, 0.0]
prestrainRatioPWF.ScalarRangeInitialized = 1
# get color legend/bar for prestrainRatioLUT in view renderView1
prestrainRatioLUTColorBar = GetScalarBar(prestrainRatioLUT, renderView1)
prestrainRatioLUTColorBar.WindowLocation = 'UpperRightCorner'
prestrainRatioLUTColorBar.Position = [0.8912839737582006, 0.6471663619744058]
prestrainRatioLUTColorBar.Title = 'prestrainRatio'
prestrainRatioLUTColorBar.ComponentTitle = ''
# find source
xMLStructuredGridReader1 = FindSource('XMLStructuredGridReader1')
# set active source
SetActiveSource(xMLStructuredGridReader1)
# get color transfer function/color map for 'elasticRatio'
elasticRatioLUT = GetColorTransferFunction('elasticRatio')
elasticRatioLUT.RGBPoints = [0.3303091106505249, 0.34902, 0.0, 0.129412, 0.34705135837933526, 0.4, 0.00392157, 0.101961, 0.3637936061081457, 0.470588, 0.0156863, 0.0901961, 0.3805358538369561, 0.54902, 0.027451, 0.0705882, 0.3972781015657665, 0.619608, 0.0627451, 0.0431373, 0.4140203492945769, 0.690196, 0.12549, 0.0627451, 0.4307625970233873, 0.741176, 0.184314, 0.0745098, 0.4475048447521977, 0.788235, 0.266667, 0.0941176, 0.46424709248100815, 0.811765, 0.345098, 0.113725, 0.48098934020981854, 0.831373, 0.411765, 0.133333, 0.4977315879386289, 0.85098, 0.47451, 0.145098, 0.5144738356674393, 0.870588, 0.54902, 0.156863, 0.5312160833962497, 0.878431, 0.619608, 0.168627, 0.5479583311250602, 0.890196, 0.658824, 0.196078, 0.5647005788538706, 0.909804, 0.717647, 0.235294, 0.581442826582681, 0.929412, 0.776471, 0.278431, 0.5951862028983068, 0.94902, 0.823529, 0.321569, 0.6108455620440179, 0.968627, 0.87451, 0.407843, 0.6278376041089421, 0.980392, 0.917647, 0.509804, 0.6451631517486243, 0.988235, 0.956863, 0.643137, 0.6541590962982686, 0.992157, 0.964706, 0.713725, 0.6644843753175806, 0.988235, 0.980392, 0.870588, 0.6651540652267329, 1.0, 1.0, 1.0, 0.6658237551358854, 0.913725, 0.988235, 0.937255, 0.6761490341551974, 0.827451, 0.980392, 0.886275, 0.6861441560492971, 0.764706, 0.980392, 0.866667, 0.6964727835181548, 0.658824, 0.980392, 0.843137, 0.708134093906226, 0.572549, 0.964706, 0.835294, 0.7237934530519369, 0.423529, 0.941176, 0.87451, 0.7361211048996146, 0.262745, 0.901961, 0.862745, 0.7521139696200834, 0.0705882, 0.854902, 0.870588, 0.7667734817314298, 0.0509804, 0.8, 0.85098, 0.7867643952095386, 0.0235294, 0.709804, 0.831373, 0.8077544860321026, 0.0313725, 0.615686, 0.811765, 0.832576542514837, 0.0313725, 0.537255, 0.788235, 0.8493187902436474, 0.0392157, 0.466667, 0.768627, 0.8660610379724578, 0.0509804, 0.396078, 0.741176, 0.8828032857012682, 0.054902, 0.317647, 0.709804, 0.8995455334300786, 0.054902, 0.243137, 0.678431, 0.916287781158889, 0.0431373, 0.164706, 0.639216, 0.9330300288876996, 0.0313725, 0.0980392, 0.6, 0.94977227661651, 0.0392157, 0.0392157, 0.560784, 0.9665145243453201, 0.105882, 0.0509804, 0.509804, 0.9832567720741308, 0.113725, 0.0235294, 0.45098, 0.9999990198029411, 0.12549, 0.0, 0.380392]
elasticRatioLUT.ColorSpace = 'Lab'
elasticRatioLUT.NanColor = [0.250004, 0.0, 0.0]
elasticRatioLUT.ScalarRangeInitialized = 1.0
# get opacity transfer function/opacity map for 'elasticRatio'
elasticRatioPWF = GetOpacityTransferFunction('elasticRatio')
elasticRatioPWF.Points = [0.3303091106505249, 0.8602941036224365, 0.5, 0.0, 0.47351324129727485, 0.625, 0.5, 0.0, 0.5724925603293413, 0.6691176295280457, 0.5, 0.0, 0.7767467248559744, 0.8676470518112183, 0.5, 0.0, 0.8230997759230788, 0.6911764740943909, 0.5, 0.0, 0.9999990198029411, 0.8014705777168274, 0.5, 0.0]
elasticRatioPWF.ScalarRangeInitialized = 1
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.Visibility = 0
# Properties modified on renderView1.AxesGrid
renderView1.AxesGrid.Visibility = 1
# get display properties
xMLStructuredGridReader1Display = GetDisplayProperties(xMLStructuredGridReader1, view=renderView1)
# hide color bar/color legend
xMLStructuredGridReader1Display.SetScalarBarVisibility(renderView1, False)
# set active source
SetActiveSource(transform1)
# Properties modified on prestrainRatioLUTColorBar
prestrainRatioLUTColorBar.WindowLocation = 'LowerRightCorner'
# Properties modified on prestrainRatioLUTColorBar
prestrainRatioLUTColorBar.HorizontalTitle = 1
else:
# get color transfer function/color map for 'elasticRatio'
elasticRatioLUT = GetColorTransferFunction('elasticRatio')
elasticRatioLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
elasticRatioLUT.InterpretValuesAsCategories = 0
elasticRatioLUT.AnnotationsInitialized = 0
elasticRatioLUT.ShowCategoricalColorsinDataRangeOnly = 0
elasticRatioLUT.RescaleOnVisibilityChange = 0
elasticRatioLUT.EnableOpacityMapping = 0
elasticRatioLUT.RGBPoints = [0.3303091106505249, 0.34902, 0.0, 0.129412, 0.34705135837933526, 0.4, 0.00392157, 0.101961, 0.3637936061081457, 0.470588, 0.0156863, 0.0901961, 0.3805358538369561, 0.54902, 0.027451, 0.0705882, 0.3972781015657665, 0.619608, 0.0627451, 0.0431373, 0.4140203492945769, 0.690196, 0.12549, 0.0627451, 0.4307625970233873, 0.741176, 0.184314, 0.0745098, 0.4475048447521977, 0.788235, 0.266667, 0.0941176, 0.46424709248100815, 0.811765, 0.345098, 0.113725, 0.48098934020981854, 0.831373, 0.411765, 0.133333, 0.4977315879386289, 0.85098, 0.47451, 0.145098, 0.5144738356674393, 0.870588, 0.54902, 0.156863, 0.5312160833962497, 0.878431, 0.619608, 0.168627, 0.5479583311250602, 0.890196, 0.658824, 0.196078, 0.5647005788538706, 0.909804, 0.717647, 0.235294, 0.581442826582681, 0.929412, 0.776471, 0.278431, 0.5951862028983068, 0.94902, 0.823529, 0.321569, 0.6108455620440179, 0.968627, 0.87451, 0.407843, 0.6278376041089421, 0.980392, 0.917647, 0.509804, 0.6451631517486243, 0.988235, 0.956863, 0.643137, 0.6541590962982686, 0.992157, 0.964706, 0.713725, 0.6644843753175806, 0.988235, 0.980392, 0.870588, 0.6651540652267329, 1.0, 1.0, 1.0, 0.6658237551358854, 0.913725, 0.988235, 0.937255, 0.6761490341551974, 0.827451, 0.980392, 0.886275, 0.6861441560492971, 0.764706, 0.980392, 0.866667, 0.6964727835181548, 0.658824, 0.980392, 0.843137, 0.708134093906226, 0.572549, 0.964706, 0.835294, 0.7237934530519369, 0.423529, 0.941176, 0.87451, 0.7361211048996146, 0.262745, 0.901961, 0.862745, 0.7521139696200834, 0.0705882, 0.854902, 0.870588, 0.7667734817314298, 0.0509804, 0.8, 0.85098, 0.7867643952095386, 0.0235294, 0.709804, 0.831373, 0.8077544860321026, 0.0313725, 0.615686, 0.811765, 0.832576542514837, 0.0313725, 0.537255, 0.788235, 0.8493187902436474, 0.0392157, 0.466667, 0.768627, 0.8660610379724578, 0.0509804, 0.396078, 0.741176, 0.8828032857012682, 0.054902, 0.317647, 0.709804, 0.8995455334300786, 0.054902, 0.243137, 0.678431, 0.916287781158889, 0.0431373, 0.164706, 0.639216, 0.9330300288876996, 0.0313725, 0.0980392, 0.6, 0.94977227661651, 0.0392157, 0.0392157, 0.560784, 0.9665145243453201, 0.105882, 0.0509804, 0.509804, 0.9832567720741308, 0.113725, 0.0235294, 0.45098, 0.9999990198029411, 0.12549, 0.0, 0.380392]
elasticRatioLUT.UseLogScale = 0
elasticRatioLUT.ColorSpace = 'Lab'
elasticRatioLUT.UseBelowRangeColor = 0
elasticRatioLUT.BelowRangeColor = [0.0, 0.0, 0.0]
elasticRatioLUT.UseAboveRangeColor = 0
elasticRatioLUT.AboveRangeColor = [0.5, 0.5, 0.5]
elasticRatioLUT.NanColor = [0.250004, 0.0, 0.0]
elasticRatioLUT.NanOpacity = 1.0
elasticRatioLUT.Discretize = 1
elasticRatioLUT.NumberOfTableValues = 256
elasticRatioLUT.ScalarRangeInitialized = 1.0
elasticRatioLUT.HSVWrap = 0
elasticRatioLUT.VectorComponent = 0
elasticRatioLUT.VectorMode = 'Magnitude'
elasticRatioLUT.AllowDuplicateScalars = 1
elasticRatioLUT.Annotations = []
elasticRatioLUT.ActiveAnnotatedValues = []
elasticRatioLUT.IndexedColors = []
elasticRatioLUT.IndexedOpacities = []
# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [1067, 547]
# get color legend/bar for elasticRatioLUT in view renderView1
elasticRatioLUTColorBar = GetScalarBar(elasticRatioLUT, renderView1)
elasticRatioLUTColorBar.AutoOrient = 1
elasticRatioLUTColorBar.Orientation = 'Vertical'
elasticRatioLUTColorBar.WindowLocation = 'LowerRightCorner'
elasticRatioLUTColorBar.Position = [0.89, 0.02]
elasticRatioLUTColorBar.Title = 'elasticRatio'
elasticRatioLUTColorBar.ComponentTitle = ''
elasticRatioLUTColorBar.TitleJustification = 'Centered'
elasticRatioLUTColorBar.HorizontalTitle = 0
elasticRatioLUTColorBar.TitleColor = [1.0, 1.0, 1.0]
elasticRatioLUTColorBar.TitleOpacity = 1.0
elasticRatioLUTColorBar.TitleFontFamily = 'Arial'
elasticRatioLUTColorBar.TitleFontFile = ''
elasticRatioLUTColorBar.TitleBold = 0
elasticRatioLUTColorBar.TitleItalic = 0
elasticRatioLUTColorBar.TitleShadow = 0
elasticRatioLUTColorBar.TitleFontSize = 16
elasticRatioLUTColorBar.LabelColor = [1.0, 1.0, 1.0]
elasticRatioLUTColorBar.LabelOpacity = 1.0
elasticRatioLUTColorBar.LabelFontFamily = 'Arial'
elasticRatioLUTColorBar.LabelFontFile = ''
elasticRatioLUTColorBar.LabelBold = 0
elasticRatioLUTColorBar.LabelItalic = 0
elasticRatioLUTColorBar.LabelShadow = 0
elasticRatioLUTColorBar.LabelFontSize = 16
elasticRatioLUTColorBar.AutomaticLabelFormat = 1
elasticRatioLUTColorBar.LabelFormat = '%-#6.3g'
elasticRatioLUTColorBar.DrawTickMarks = 1
elasticRatioLUTColorBar.DrawTickLabels = 1
elasticRatioLUTColorBar.UseCustomLabels = 0
elasticRatioLUTColorBar.CustomLabels = []
elasticRatioLUTColorBar.AddRangeLabels = 1
elasticRatioLUTColorBar.RangeLabelFormat = '%-#6.1e'
elasticRatioLUTColorBar.DrawAnnotations = 1
elasticRatioLUTColorBar.AddRangeAnnotations = 0
elasticRatioLUTColorBar.AutomaticAnnotations = 0
elasticRatioLUTColorBar.DrawNanAnnotation = 0
elasticRatioLUTColorBar.NanAnnotation = 'NaN'
elasticRatioLUTColorBar.TextPosition = 'Ticks right/top, annotations left/bottom'
elasticRatioLUTColorBar.ReverseLegend = 0
elasticRatioLUTColorBar.ScalarBarThickness = 16
elasticRatioLUTColorBar.ScalarBarLength = 0.33
# Properties modified on elasticRatioLUTColorBar
elasticRatioLUTColorBar.HorizontalTitle = 1
renderView1.OrientationAxesVisibility = 0
#### uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).
# ----------------- EXPORT -----------------
# save screenshot
# SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[1257, 934])
# SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[2514, 1868])
# SaveScreenshot('/home/klaus/Desktop/PhaseDiagramPlot.png', renderView1, ImageResolution=[1063, 657])
#
if prestrain:
outputName = '/home/klaus/Desktop/PrestrainRatio' + ".png"
else:
outputName = '/home/klaus/Desktop/ElasticRatio' + ".png"
# SaveScreenshot('/home/klaus/Desktop/2DPhaseDiagram.png', renderView1, ImageResolution=[2126, 1314])
SaveScreenshot(outputName , renderView1, ImageResolution=[2126, 1314])
# export view
# ExportView('/home/klaus/Desktop/PhaseDiagramPlot.pdf', view=renderView1)