-
Notifications
You must be signed in to change notification settings - Fork 0
/
simulation_configuration.py
2985 lines (2399 loc) · 98.9 KB
/
simulation_configuration.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
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
671
672
673
674
675
676
677
678
679
680
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
797
798
799
800
801
802
803
804
805
806
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
883
884
885
886
887
888
889
890
891
892
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
# Copyright (C) 2023 - 2024 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
from collections import OrderedDict
import json
import os
from pyedb.dotnet.clr_module import Dictionary
from pyedb.dotnet.edb_core.edb_data.hfss_simulation_setup_data import AdaptiveType
from pyedb.dotnet.edb_core.edb_data.sources import Source, SourceType
from pyedb.generic.constants import (
BasisOrder,
CutoutSubdesignType,
RadiationBoxType,
SolverType,
SweepType,
validate_enum_class_value,
)
from pyedb.generic.general_methods import generate_unique_name, pyedb_function_handler
class SimulationConfigurationBatch(object):
"""Contains all Cutout and Batch analysis settings.
The class is part of `SimulationConfiguration` class as a property.
"""
def __init__(self):
self._signal_nets = []
self._power_nets = []
self._components = []
self._cutout_subdesign_type = CutoutSubdesignType.Conformal # Conformal
self._cutout_subdesign_expansion = 0.001
self._cutout_subdesign_round_corner = True
self._use_default_cutout = False
self._generate_excitations = True
self._add_frequency_sweep = True
self._include_only_selected_nets = False
self._generate_solder_balls = True
self._coax_solder_ball_diameter = []
self._use_default_coax_port_radial_extension = True
self._trim_reference_size = False
self._output_aedb = None
self._signal_layers_properties = {}
self._coplanar_instances = []
self._signal_layer_etching_instances = []
self._etching_factor_instances = []
self._use_dielectric_extent_multiple = True
self._dielectric_extent = 0.001
self._use_airbox_horizontal_multiple = True
self._airbox_horizontal_extent = 0.1
self._use_airbox_negative_vertical_extent_multiple = True
self._airbox_negative_vertical_extent = 0.1
self._use_airbox_positive_vertical_extent_multiple = True
self._airbox_positive_vertical_extent = 0.1
self._honor_user_dielectric = False
self._truncate_airbox_at_ground = False
self._use_radiation_boundary = True
self._do_cutout_subdesign = True
self._do_pin_group = True
self._sources = []
@property
def coplanar_instances(self): # pragma: no cover
"""Retrieve the list of component to be replaced by circuit ports (obsolete).
Returns
-------
list[str]
List of component name.
"""
return self._coplanar_instances
@coplanar_instances.setter
def coplanar_instances(self, value): # pragma: no cover
if isinstance(value, list):
self._coplanar_instances = value
@property
def signal_layer_etching_instances(self): # pragma: no cover
"""Retrieve the list of layers which has layer etching activated.
Returns
-------
list[str]
List of layer name.
"""
return self._signal_layer_etching_instances
@signal_layer_etching_instances.setter
def signal_layer_etching_instances(self, value): # pragma: no cover
if isinstance(value, list):
self._signal_layer_etching_instances = value
@property
def etching_factor_instances(self): # pragma: no cover
"""Retrieve the list of etching factor with associated layers.
Returns
-------
list[str]
list etching parameters with layer name.
"""
return self._etching_factor_instances
@etching_factor_instances.setter
def etching_factor_instances(self, value): # pragma: no cover
if isinstance(value, list):
self._etching_factor_instances = value
@property
def dielectric_extent(self): # pragma: no cover
"""Retrieve the value of dielectric extent.
Returns
-------
float
Value of the dielectric extent. When absolute dimensions are used,
the values are in meters.
"""
return self._dielectric_extent
@dielectric_extent.setter
def dielectric_extent(self, value): # pragma: no cover
if isinstance(value, (int, float)):
self._dielectric_extent = value
@property
def use_dielectric_extent_multiple(self):
"""Whether the multiple value of the dielectric extent is used.
Returns
-------
bool
``True`` when the multiple value (extent factor) is used. ``False`` when
absolute dimensions are used.
"""
return self._use_dielectric_extent_multiple
@use_dielectric_extent_multiple.setter
def use_dielectric_extent_multiple(self, value):
if isinstance(value, bool):
self._use_dielectric_extent_multiple = value
@property
def airbox_horizontal_extent(self): # pragma: no cover
"""Horizontal extent of the airbox for HFSS. When absolute dimensions are used,
the values are in meters.
Returns
-------
float
Value of the air box horizontal extent.
"""
return self._airbox_horizontal_extent
@airbox_horizontal_extent.setter
def airbox_horizontal_extent(self, value): # pragma: no cover
if isinstance(value, (int, float)):
self._airbox_horizontal_extent = value
@property
def use_airbox_horizontal_extent_multiple(self):
"""Whether the multiple value is used for the horizontal extent of the air box.
Returns
-------
bool
``True`` when the multiple value (extent factor) is used. ``False`` when
absolute dimensions are used.
"""
return self._use_airbox_horizontal_multiple
@use_airbox_horizontal_extent_multiple.setter
def use_airbox_horizontal_extent_multiple(self, value):
if isinstance(value, bool):
self._use_airbox_horizontal_multiple = value
@property
def airbox_negative_vertical_extent(self): # pragma: no cover
"""Negative vertical extent of the airbox for HFSS. When absolute dimensions
are used, the values are in meters.
Returns
-------
float
Value of the air box negative vertical extent.
"""
return self._airbox_negative_vertical_extent
@airbox_negative_vertical_extent.setter
def airbox_negative_vertical_extent(self, value): # pragma: no cover
if isinstance(value, (int, float)):
self._airbox_negative_vertical_extent = value
@property
def use_airbox_negative_vertical_extent_multiple(self):
"""Multiple value for the negative extent of the airbox.
Returns
-------
bool
``True`` when the multiple value (extent factor) is used. ``False`` when
absolute dimensions are used.
"""
return self._use_airbox_negative_vertical_extent_multiple
@use_airbox_negative_vertical_extent_multiple.setter
def use_airbox_negative_vertical_extent_multiple(self, value):
if isinstance(value, bool):
self._use_airbox_negative_vertical_extent_multiple = value
@property
def airbox_positive_vertical_extent(self): # pragma: no cover
"""Positive vertical extent of the airbox for HFSS. When absolute dimensions are
used, the values are in meters.
Returns
-------
float
Value of the air box positive vertical extent.
"""
return self._airbox_positive_vertical_extent
@airbox_positive_vertical_extent.setter
def airbox_positive_vertical_extent(self, value): # pragma: no cover
if isinstance(value, (int, float)):
self._airbox_positive_vertical_extent = value
@property
def use_airbox_positive_vertical_extent_multiple(self):
"""Whether the multiple value for the positive extent of the airbox is used.
Returns
-------
bool
``True`` when the multiple value (extent factor) is used. ``False`` when
absolute dimensions are used.
"""
return self._use_airbox_positive_vertical_extent_multiple
@use_airbox_positive_vertical_extent_multiple.setter
def use_airbox_positive_vertical_extent_multiple(self, value):
if isinstance(value, bool):
self._use_airbox_positive_vertical_extent_multiple = value
@property
def use_pyaedt_cutout(self):
"""Whether the default EDB cutout or a new PyAEDT cutout is used.
Returns
-------
bool
"""
return not self._use_default_cutout
@use_pyaedt_cutout.setter
def use_pyaedt_cutout(self, value):
self._use_default_cutout = not value
@property
def use_default_cutout(self): # pragma: no cover
"""Whether to use the default EDB cutout. The default is ``False``, in which case
a new PyAEDT cutout is used.
Returns
-------
bool
"""
return self._use_default_cutout
@use_default_cutout.setter
def use_default_cutout(self, value): # pragma: no cover
self._use_default_cutout = value
@property
def do_pingroup(self): # pragma: no cover
"""Do pingroup on multi-pin component. ``True`` all pins from the same net are grouped, ``False`` one port
is created for each pin.
Returns
-------
bool
"""
return self._do_pin_group
@do_pingroup.setter
def do_pingroup(self, value): # pragma: no cover
self._do_pin_group = value
@property
def generate_solder_balls(self): # pragma: no cover
"""Retrieve the boolean for applying solder balls.
Returns
-------
bool
``True`` when applied ``False`` if not.
"""
return self._generate_solder_balls
@generate_solder_balls.setter
def generate_solder_balls(self, value):
if isinstance(value, bool): # pragma: no cover
self._generate_solder_balls = value
@property
def signal_nets(self):
"""Retrieve the list of signal net names.
Returns
-------
List[str]
List of signal net names.
"""
return self._signal_nets
@signal_nets.setter
def signal_nets(self, value):
if isinstance(value, list): # pragma: no cover
self._signal_nets = value
@property
def power_nets(self):
"""Retrieve the list of power and reference net names.
Returns
-------
list[str]
List of the net name.
"""
return self._power_nets
@power_nets.setter
def power_nets(self, value):
if isinstance(value, list):
self._power_nets = value
@property
def components(self):
"""Retrieve the list component name to be included in the simulation.
Returns
-------
list[str]
List of the component name.
"""
return self._components
@components.setter
def components(self, value):
if isinstance(value, list):
self._components = value
@property
def coax_solder_ball_diameter(self): # pragma: no cover
"""Retrieve the list of solder balls diameter values when the auto evaluated one is overwritten.
Returns
-------
list[float]
List of the solder balls diameter.
"""
return self._coax_solder_ball_diameter
@coax_solder_ball_diameter.setter
def coax_solder_ball_diameter(self, value): # pragma: no cover
if isinstance(value, list):
self._coax_solder_ball_diameter = value
@property
def use_default_coax_port_radial_extension(self):
"""Retrieve the boolean for using the default coaxial port extension value.
Returns
-------
bool
``True`` when the default value is used ``False`` if not.
"""
return self._use_default_coax_port_radial_extension
@use_default_coax_port_radial_extension.setter
def use_default_coax_port_radial_extension(self, value): # pragma: no cover
if isinstance(value, bool):
self._use_default_coax_port_radial_extension = value
@property
def trim_reference_size(self):
"""Retrieve the trim reference size when used.
Returns
-------
float
The size value.
"""
return self._trim_reference_size
@trim_reference_size.setter
def trim_reference_size(self, value): # pragma: no cover
if isinstance(value, bool):
self._trim_reference_size = value
@property
def do_cutout_subdesign(self):
"""Retrieve boolean to perform the cutout during the project build.
Returns
-------
bool
``True`` when clipping the design is applied ``False`` is not.
"""
return self._do_cutout_subdesign
@do_cutout_subdesign.setter
def do_cutout_subdesign(self, value): # pragma: no cover
if isinstance(value, bool):
self._do_cutout_subdesign = value
@property
def cutout_subdesign_type(self):
"""Retrieve the CutoutSubdesignType selection for clipping the design.
Returns
-------
CutoutSubdesignType object
"""
return self._cutout_subdesign_type
@cutout_subdesign_type.setter
def cutout_subdesign_type(self, value): # pragma: no cover
if validate_enum_class_value(CutoutSubdesignType, value):
self._cutout_subdesign_type = value
@property
def cutout_subdesign_expansion(self):
"""Retrieve expansion factor used for clipping the design.
Returns
-------
float
The value used as a ratio.
"""
return self._cutout_subdesign_expansion
@cutout_subdesign_expansion.setter
def cutout_subdesign_expansion(self, value): # pragma: no cover
self._cutout_subdesign_expansion = value
@property
def cutout_subdesign_round_corner(self):
"""Retrieve boolean to perform the design clipping using round corner for the extent generation.
Returns
-------
bool
``True`` when using round corner, ``False`` if not.
"""
return self._cutout_subdesign_round_corner
@cutout_subdesign_round_corner.setter
def cutout_subdesign_round_corner(self, value): # pragma: no cover
if isinstance(value, bool):
self._cutout_subdesign_round_corner = value
@property
def output_aedb(self): # pragma: no cover
"""Retrieve the path for the output aedb folder. When provided will copy the initial aedb to the specified
path. This is used especially to preserve the initial project when several files have to be build based on
the last one. When the path is None, the initial project will be overwritten. So when cutout is applied mand
you want to preserve the project make sure you provide the full path for the new aedb folder.
Returns
-------
str
Absolute path for the created aedb folder.
"""
return self._output_aedb
@output_aedb.setter
def output_aedb(self, value): # pragma: no cover
if isinstance(value, str):
self._output_aedb = value
@property
def sources(self): # pragma: no cover
"""Retrieve the source list.
Returns
-------
:class:`dotnet.edb_core.edb_data.sources.Source`
"""
return self._sources
@sources.setter
def sources(self, value): # pragma: no cover
if isinstance(value, Source):
value = [value]
if isinstance(value, list):
if len([src for src in value if isinstance(src, Source)]) == len(value):
self._sources = value
@pyedb_function_handler()
def add_source(self, source=None): # pragma: no cover
"""Add a new source to configuration.
Parameters
----------
source : :class:`pyedb.dotnet.edb_core.edb_data.sources.Source`
"""
if isinstance(source, Source):
self._sources.append(source)
@property
def honor_user_dielectric(self): # pragma: no cover
"""Retrieve the boolean to activate the feature "'Honor user dielectric'".
Returns
-------
bool
``True`` activated, ``False`` deactivated.
"""
return self._honor_user_dielectric
@honor_user_dielectric.setter
def honor_user_dielectric(self, value): # pragma: no cover
if isinstance(value, bool):
self._honor_user_dielectric = value
@property
def truncate_airbox_at_ground(self): # pragma: no cover
"""Retrieve the boolean to truncate hfss air box at ground.
Returns
-------
bool
``True`` activated, ``False`` deactivated.
"""
return self._truncate_airbox_at_ground
@truncate_airbox_at_ground.setter
def truncate_airbox_at_ground(self, value): # pragma: no cover
if isinstance(value, bool):
self._truncate_airbox_at_ground = value
@property
def use_radiation_boundary(self): # pragma: no cover
"""Retrieve the boolean to use radiation boundary with HFSS.
Returns
-------
bool
``True`` activated, ``False`` deactivated.
"""
return self._use_radiation_boundary
@use_radiation_boundary.setter
def use_radiation_boundary(self, value): # pragma: no cover
if isinstance(value, bool):
self._use_radiation_boundary = value
@property
def signal_layers_properties(self): # pragma: no cover
"""Retrieve the list of layers to have properties changes.
Returns
-------
list[str]
List of layer name.
"""
return self._signal_layers_properties
@signal_layers_properties.setter
def signal_layers_properties(self, value): # pragma: no cover
if isinstance(value, dict):
self._signal_layers_properties = value
@property
def generate_excitations(self):
"""Activate ports and sources for DC generation when build project with the class.
Returns
-------
bool
``True`` ports are created, ``False`` skip port generation. Default value is ``True``.
"""
return self._generate_excitations
@generate_excitations.setter
def generate_excitations(self, value):
if isinstance(value, bool):
self._generate_excitations = value
@property
def add_frequency_sweep(self):
"""Activate the frequency sweep creation when build project with the class.
Returns
-------
bool
``True`` frequency sweep is created, ``False`` skip sweep adding. Default value is ``True``.
"""
return self._add_frequency_sweep
@add_frequency_sweep.setter
def add_frequency_sweep(self, value):
if isinstance(value, bool):
self._add_frequency_sweep = value
@property
def include_only_selected_nets(self):
"""Include only net selection in the project. It is only used when ``do_cutout`` is set to ``False``.
Will also be ignored if signal_nets and power_nets are ``None``, resulting project will have all nets included.
Returns
-------
bool
``True`` or ``False``. Default value is ``False``.
"""
return self._include_only_selected_nets
@include_only_selected_nets.setter
def include_only_selected_nets(self, value):
if isinstance(value, bool):
self._include_only_selected_nets = value
class SimulationConfigurationDc(object):
"""Contains all DC analysis settings.
The class is part of `SimulationConfiguration` class as a property.
"""
def __init__(self):
self._dc_compute_inductance = False
self._dc_contact_radius = "100um"
self._dc_slide_position = 1
self._dc_use_dc_custom_settings = False
self._dc_plot_jv = True
self._dc_min_plane_area_to_mesh = "8mil2"
self._dc_min_void_area_to_mesh = "0.734mil2"
self._dc_error_energy = 0.02
self._dc_max_init_mesh_edge_length = "5.0mm"
self._dc_max_num_pass = 5
self._dc_min_num_pass = 1
self._dc_mesh_bondwires = True
self._dc_num_bondwire_sides = 8
self._dc_mesh_vias = True
self._dc_num_via_sides = 8
self._dc_percent_local_refinement = 0.2
self._dc_perform_adaptive_refinement = True
self._dc_refine_bondwires = True
self._dc_refine_vias = True
self._dc_report_config_file = ""
self._dc_report_show_Active_devices = True
self._dc_export_thermal_data = True
self._dc_full_report_path = ""
self._dc_icepak_temp_file = ""
self._dc_import_thermal_data = False
self._dc_per_pin_res_path = ""
self._dc_per_pin_use_pin_format = True
self._dc_use_loop_res_for_per_pin = True
self._dc_via_report_path = ""
self._dc_source_terms_to_ground = Dictionary[str, int]()
@property
def dc_min_plane_area_to_mesh(self): # pragma: no cover
"""Retrieve the value of the minimum plane area to be meshed by Siwave for DC solution.
Returns
-------
float
The value of the minimum plane area.
"""
return self._dc_min_plane_area_to_mesh
@dc_min_plane_area_to_mesh.setter
def dc_min_plane_area_to_mesh(self, value): # pragma: no cover
if isinstance(value, str):
self._dc_min_plane_area_to_mesh = value
@property
def dc_compute_inductance(self):
"""Return the boolean for computing the inductance with SIwave DC solver.
Returns
-------
bool
``True`` activate ``False`` deactivated.
"""
return self._dc_compute_inductance
@dc_compute_inductance.setter
def dc_compute_inductance(self, value):
if isinstance(value, bool):
self._dc_compute_inductance = value
@property
def dc_contact_radius(self):
"""Retrieve the value for SIwave DC contact radius.
Returns
-------
str
The contact radius value.
"""
return self._dc_contact_radius
@dc_contact_radius.setter
def dc_contact_radius(self, value):
if isinstance(value, str):
self._dc_contact_radius = value
@dc_compute_inductance.setter
def dc_compute_inductance(self, value):
if isinstance(value, str):
self._dc_contact_radius = value
@property
def dc_slide_position(self):
"""Retrieve the SIwave DC slide position value.
Returns
-------
int
The position value, 0 Optimum speed, 1 balanced, 2 optimum accuracy.
"""
return self._dc_slide_position
@dc_slide_position.setter
def dc_slide_position(self, value):
if isinstance(value, int):
self._dc_slide_position = value
@property
def dc_use_dc_custom_settings(self):
"""Retrieve the value for using DC custom settings.
Returns
-------
bool
``True`` when activated, ``False`` deactivated.
"""
return self._dc_use_dc_custom_settings
@dc_use_dc_custom_settings.setter
def dc_use_dc_custom_settings(self, value):
if isinstance(value, bool):
self._dc_use_dc_custom_settings = value
@property
def dc_plot_jv(self):
"""Retrieve the value for computing current density and voltage distribution.
Returns
-------
bool
``True`` when activated, ``False`` deactivated. Default value True
"""
return self._dc_plot_jv
@dc_plot_jv.setter
def dc_plot_jv(self, value):
if isinstance(value, bool):
self._dc_plot_jv = value
@property
def dc_min_void_area_to_mesh(self):
"""Retrieve the value for the minimum void surface to mesh.
Returns
-------
str
The area value.
"""
return self._dc_min_void_area_to_mesh
@dc_min_void_area_to_mesh.setter
def dc_min_void_area_to_mesh(self, value):
if isinstance(value, str):
self._dc_min_void_area_to_mesh = value
@property
def dc_error_energy(self):
"""Retrieve the value for the DC error energy.
Returns
-------
float
The error energy value, 0.2 as default.
"""
return self._dc_error_energy
@dc_error_energy.setter
def dc_error_energy(self, value):
if isinstance(value, (int, float)):
self._dc_error_energy = value
@property
def dc_max_init_mesh_edge_length(self):
"""Retrieve the maximum initial mesh edge value.
Returns
-------
str
maximum mesh length.
"""
return self._dc_max_init_mesh_edge_length
@dc_max_init_mesh_edge_length.setter
def dc_max_init_mesh_edge_length(self, value):
if isinstance(value, str):
self._dc_max_init_mesh_edge_length = value
@property
def dc_max_num_pass(self):
"""Retrieve the maximum number of adaptive passes.
Returns
-------
int
number of passes.
"""
return self._dc_max_num_pass
@dc_max_num_pass.setter
def dc_max_num_pass(self, value):
if isinstance(value, int):
self._dc_max_num_pass = value
@property
def dc_min_num_pass(self):
"""Retrieve the minimum number of adaptive passes.
Returns
-------
int
number of passes.
"""
return self._dc_min_num_pass
@dc_min_num_pass.setter
def dc_min_num_pass(self, value):
if isinstance(value, int):
self._dc_min_num_pass = value
@property
def dc_mesh_bondwires(self):
"""Retrieve the value for meshing bondwires.
Returns
-------
bool
``True`` when activated, ``False`` deactivated.
"""
return self._dc_mesh_bondwires
@dc_mesh_bondwires.setter
def dc_mesh_bondwires(self, value):
if isinstance(value, bool):
self._dc_mesh_bondwires = value
@property
def dc_num_bondwire_sides(self):
"""Retrieve the number of sides used for cylinder discretization.
Returns
-------
int
Number of sides.
"""
return self._dc_num_bondwire_sides
@dc_num_bondwire_sides.setter
def dc_num_bondwire_sides(self, value):
if isinstance(value, int):
self._dc_num_bondwire_sides = value
@property
def dc_mesh_vias(self):
"""Retrieve the value for meshing vias.
Returns
-------
bool
``True`` when activated, ``False`` deactivated.
"""
return self._dc_mesh_vias
@dc_mesh_vias.setter
def dc_mesh_vias(self, value):
if isinstance(value, bool):
self._dc_mesh_vias = value
@property
def dc_num_via_sides(self):
"""Retrieve the number of sides used for cylinder discretization.
Returns
-------
int
Number of sides.
"""
return self._dc_num_via_sides
@dc_num_via_sides.setter
def dc_num_via_sides(self, value):
if isinstance(value, int):
self._dc_num_via_sides = value
@property
def dc_percent_local_refinement(self):
"""Retrieve the value for local mesh refinement.
Returns
-------
float
The refinement value, 0.2 (20%) as default.
"""
return self._dc_percent_local_refinement
@dc_percent_local_refinement.setter
def dc_percent_local_refinement(self, value):
if isinstance(value, (int, float)):
self._dc_percent_local_refinement = value
@property
def dc_perform_adaptive_refinement(self):
"""Retrieve the value for performing adaptive meshing.
Returns
-------
bool
``True`` when activated, ``False`` deactivated.
"""
return self._dc_perform_adaptive_refinement
@dc_perform_adaptive_refinement.setter
def dc_perform_adaptive_refinement(self, value):
if isinstance(value, bool):
self._dc_perform_adaptive_refinement = value
@property
def dc_refine_bondwires(self):
"""Retrieve the value for performing bond wire refinement.
Returns
-------
bool
``True`` when activated, ``False`` deactivated.
"""
return self._dc_refine_bondwires
@dc_refine_bondwires.setter
def dc_refine_bondwires(self, value):
if isinstance(value, bool):
self._dc_refine_bondwires = value
@property