This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
ContactProperty.py
868 lines (775 loc) · 34.4 KB
/
ContactProperty.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
import typing
from abaqusConstants import *
from .CohesiveBehavior import CohesiveBehavior
from .ContactDamage import ContactDamage
from .ContactDamping import ContactDamping
from .ContactTangentialBehavior import ContactTangentialBehavior
from .FractureCriterion import FractureCriterion
from .GapElectricalConductance import GapElectricalConductance
from .GapHeatGeneration import GapHeatGeneration
from .GeometricProperties import GeometricProperties
from .InteractionProperty import InteractionProperty
from .NormalBehavior import NormalBehavior
from .Radiation import Radiation
from .ThermalConductance import ThermalConductance
class ContactProperty(InteractionProperty):
"""The ContactProperty object defines a contact interaction property.
The ContactProperty object is derived from the InteractionProperty object.
Attributes
----------
tangentialBehavior: ContactTangentialBehavior
A :py:class:`~abaqus.Interaction.ContactTangentialBehavior.ContactTangentialBehavior` object.
normalBehavior: NormalBehavior
A :py:class:`~abaqus.Interaction.NormalBehavior.NormalBehavior` object.
damping: ContactDamping
A :py:class:`~abaqus.Interaction.ContactDamping.ContactDamping` object.
damage: ContactDamage
A :py:class:`~abaqus.Interaction.ContactDamage.ContactDamage` object.
fractureCriterion: FractureCriterion
A :py:class:`~abaqus.Interaction.FractureCriterion.FractureCriterion` object.
cohesiveBehavior: CohesiveBehavior
A :py:class:`~abaqus.Interaction.CohesiveBehavior.CohesiveBehavior` object.
thermalConductance: ThermalConductance
A :py:class:`~abaqus.Interaction.ThermalConductance.ThermalConductance` object.
heatGeneration: GapHeatGeneration
A :py:class:`~abaqus.Interaction.GapHeatGeneration.GapHeatGeneration` object.
radiation: Radiation
A :py:class:`~abaqus.Interaction.Radiation.Radiation` object.
geometricProperties: GeometricProperties
A :py:class:`~abaqus.Interaction.GeometricProperties.GeometricProperties` object.
electricalConductance: GapElectricalConductance
A :py:class:`~abaqus.Interaction.GapElectricalConductance.GapElectricalConductance` object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import interaction
mdb.models[name].interactionProperties[name]
The corresponding analysis keywords are:
- SURFACE INTERACTION
"""
# A ContactTangentialBehavior object.
tangentialBehavior: ContactTangentialBehavior = ContactTangentialBehavior()
# A NormalBehavior object.
normalBehavior: NormalBehavior = NormalBehavior()
# A ContactDamping object.
damping: ContactDamping = ContactDamping()
# A ContactDamage object.
damage: ContactDamage = ContactDamage(((),))
# A FractureCriterion object.
fractureCriterion: FractureCriterion = FractureCriterion(((),))
# A CohesiveBehavior object.
cohesiveBehavior: CohesiveBehavior = CohesiveBehavior()
# A ThermalConductance object.
thermalConductance: ThermalConductance = ThermalConductance()
# A GapHeatGeneration object.
heatGeneration: GapHeatGeneration = GapHeatGeneration()
# A Radiation object.
radiation: Radiation = None
# A GeometricProperties object.
geometricProperties: GeometricProperties = GeometricProperties()
# A GapElectricalConductance object.
electricalConductance: GapElectricalConductance = GapElectricalConductance()
def __init__(self, name: str):
"""This method creates a ContactProperty object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
name
A String specifying the interaction property repository key.
Returns
-------
A ContactProperty object.
"""
super().__init__()
pass
def TangentialBehavior(
self,
formulation: SymbolicConstant = FRICTIONLESS,
directionality: SymbolicConstant = ISOTROPIC,
slipRateDependency: Boolean = OFF,
pressureDependency: Boolean = OFF,
temperatureDependency: Boolean = OFF,
dependencies: int = 0,
exponentialDecayDefinition: SymbolicConstant = COEFFICIENTS,
table: tuple = (),
shearStressLimit: float = None,
maximumElasticSlip: SymbolicConstant = FRACTION,
fraction: float = 0,
absoluteDistance: float = 0,
elasticSlipStiffness: float = None,
nStateDependentVars: int = 0,
useProperties: Boolean = OFF,
):
"""This method creates a ContactTangentialBehavior object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
formulation
A SymbolicConstant specifying the friction formulation. Possible values are
FRICTIONLESS, PENALTY, EXPONENTIAL_DECAY, ROUGH, LAGRANGE, and USER_DEFINED. The default
value is FRICTIONLESS.
directionality
A SymbolicConstant specifying the directionality of the friction. Possible values are
ISOTROPIC and ANISOTROPIC. The default value is ISOTROPIC.
slipRateDependency
A Boolean specifying whether the data depend on slip rate. The default value is OFF.
pressureDependency
A Boolean specifying whether the data depend on contact pressure. The default value is
OFF.
temperatureDependency
A Boolean specifying whether the data depend on temperature. The default value is OFF.
dependencies
An Int specifying the number of field variables. The default value is 0.
exponentialDecayDefinition
A SymbolicConstant specifying the exponential decay definition. Possible values are
COEFFICIENTS and TEST_DATA. The default value is COEFFICIENTS.
table
A sequence of sequences of Floats specifying tangential behavior. The items in the table
data are described below.
shearStressLimit
None or a Float specifying the shear stress limit. If *shearStressLimit*=None, there is
no upper limit. The default value is None.
maximumElasticSlip
A SymbolicConstant specifying what the maximum elastic slip will be. Possible values are
FRACTION and ABSOLUTE_DISTANCE. The default value is FRACTION.
fraction
A Float specifying the fraction of a characteristic surface dimension. The default value
is 0.0.
absoluteDistance
A Float specifying the absolute distance. The default value is 0.0.
elasticSlipStiffness
None or a Float specifying the elastic slip stiffness. If *elasticSlipStiffness*=None,
there is no upper limit. The default value is None.
nStateDependentVars
An Int specifying the number of state-dependent variables. The default value is 0.
useProperties
A Boolean specifying whether property values will be used. The default value is OFF.
Returns
-------
A ContactTangentialBehavior object.
"""
self.tangentialBehavior = ContactTangentialBehavior(
formulation,
directionality,
slipRateDependency,
pressureDependency,
temperatureDependency,
dependencies,
exponentialDecayDefinition,
table,
shearStressLimit,
maximumElasticSlip,
fraction,
absoluteDistance,
elasticSlipStiffness,
nStateDependentVars,
useProperties,
)
return self.tangentialBehavior
def NormalBehavior(
self,
contactStiffness: typing.Union[SymbolicConstant, float] = DEFAULT,
pressureOverclosure: SymbolicConstant = HARD,
allowSeparation: Boolean = ON,
maxStiffness: float = None,
table: tuple = (),
constraintEnforcementMethod: SymbolicConstant = DEFAULT,
overclosureFactor: float = 0,
overclosureMeasure: float = 0,
contactStiffnessScaleFactor: float = 1,
initialStiffnessScaleFactor: float = 1,
clearanceAtZeroContactPressure: float = 0,
stiffnessBehavior: SymbolicConstant = LINEAR,
stiffnessRatio: float = 0,
upperQuadraticFactor: float = 0,
lowerQuadraticRatio: float = 0,
):
"""This method creates a NormalBehavior object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
contactStiffness
The SymbolicConstant DEFAULT or a Float specifying the contact stiffness. This argument
is valid for *pressureOverclosure*=LINEAR. This argument is also valid for
*pressureOverclosure*=HARD when *constraintEnforcementMethod*=AUGMENTED_LAGRANGE or
PENALTY. A value of DEFAULT is valid only when the later conditions are met. A value of
zero is equivalent to specifying DEFAULT. The default value is DEFAULT.
pressureOverclosure
A SymbolicConstant specifying the pressure-overclosure relationship to be used. Possible
values are HARD, EXPONENTIAL, LINEAR, TABULAR, and SCALE_FACTOR. The default value is
HARD.
allowSeparation
A Boolean specifying whether to allow separation after contact. The default value is ON.
maxStiffness
None or a Float specifying the maximum stiffness. If *maxStiffness*=None, there is no
upper limit. The default value is None.
table
A sequence of sequences of Floats specifying the normal behavior properties. This
argument is valid only for *pressureOverclosure*=EXPONENTIAL or TABULAR. The items in
the table data are described below.
constraintEnforcementMethod
A SymbolicConstant specifying the method for enforcement of the contact constraint.
Possible values are DEFAULT, AUGMENTED_LAGRANGE, PENALTY, and DIRECT. The default value
is DEFAULT.
overclosureFactor
A Float specifying the overclosure measure (used to delineate the segments of the
pressure-overclosure curve) as a percentage of the minimum element size in the contact
region. The default value is 0.0.
overclosureMeasure
A Float specifying the overclosure measure (used to delineate the segments of the
pressure-overclosure curve) directly. The default value is 0.0.
contactStiffnessScaleFactor
A Float specifying scale factor for the penalty stiffness or the geometric scaling of
the "base" stiffness. The default value is 1.0.
initialStiffnessScaleFactor
A Float specifying an additional scale factor for the "base" default contact stiffness.
The default value is 1.0.
clearanceAtZeroContactPressure
A Float specifying the clearance at which the contact pressure is zero. The default
value is 0.0.
stiffnessBehavior
A SymbolicConstant specifying the type of penalty stiffness to be defined. This argument
is valid only when *constraintEnforcementMethod*=PENALTY. Possible values are LINEAR and
NONLINEAR. The default value is LINEAR.
stiffnessRatio
A Float specifying the ratio of the initial stiffness divided by the final stiffness.
This argument is valid only when *stiffnessBehavior*=NONLINEAR. Possible values are 0 ≤≤
*stiffnessRatio* << 1. The default value is 0.01.
upperQuadraticFactor
A Float specifying the ratio of the overclosure at the maximum stiffness divided by the
characteristic facet length. This argument is valid only when
*stiffnessBehavior*=NONLINEAR. The default value is 0.03.
lowerQuadraticRatio
A Float specifying the ratio of the overclosure at the initial stiffness divided by the
overclosure at the maximum stiffness, both relative to the clearance at which the
contact pressure is zero. This argument is valid only when
*stiffnessBehavior*=NONLINEAR. Possible values are 0 ≤≤ *stiffnessRatio* << 1. The
default value is 0.33333.
Returns
-------
A NormalBehavior object.
"""
self.normalBehavior = NormalBehavior(
contactStiffness,
pressureOverclosure,
allowSeparation,
maxStiffness,
table,
constraintEnforcementMethod,
overclosureFactor,
overclosureMeasure,
contactStiffnessScaleFactor,
initialStiffnessScaleFactor,
clearanceAtZeroContactPressure,
stiffnessBehavior,
stiffnessRatio,
upperQuadraticFactor,
lowerQuadraticRatio,
)
return self.normalBehavior
def Damping(
self,
definition: SymbolicConstant = DAMPING_COEFFICIENT,
tangentFraction: typing.Union[SymbolicConstant, float] = DEFAULT,
clearanceDependence: SymbolicConstant = STEP,
table: tuple = (),
):
"""This method creates a ContactDamping object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
definition
A SymbolicConstant specifying the method used to define the damping. Possible values are
DAMPING_COEFFICIENT and CRITICAL_DAMPING_FRACTION. The default value is
DAMPING_COEFFICIENT.
tangentFraction
The SymbolicConstant DEFAULT or a Float specifying the tangential damping coefficient
divided by the normal damping coefficient. The default value is DEFAULT.
clearanceDependence
A SymbolicConstant specifying the variation of the damping coefficient or fraction with
respect to clearance. Possible values are STEP, LINEAR, and BILINEAR. The default value
is STEP.If *definition*=CRITICAL_DAMPING_FRACTION, the only possible value is STEP.
table
A sequence of pairs of Floats specifying the damping properties. The items in the table
data are described below.
Returns
-------
A ContactDamping object.
"""
self.damping = ContactDamping(
definition, tangentFraction, clearanceDependence, table
)
return self.damping
def Damage(
self,
initTable: tuple,
criterion: SymbolicConstant = MAX_STRESS,
initTempDep: Boolean = OFF,
initDependencies: int = 0,
useEvolution: Boolean = OFF,
evolutionType: SymbolicConstant = DISPLACEMENT,
softening: SymbolicConstant = LINEAR,
useMixedMode: Boolean = OFF,
mixedModeType: SymbolicConstant = TABULAR,
modeMixRatio: SymbolicConstant = ENERGY,
exponent: float = None,
evolTempDep: Boolean = OFF,
evolDependencies: int = 0,
evolTable: tuple = (),
useStabilization: Boolean = OFF,
viscosityCoef: float = None,
):
"""This method creates a ContactDamage object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
initTable
A sequence of sequences of Floats specifying the values defining the damage initiation.
The items in the table data are described below.
criterion
A SymbolicConstant specifying the type of data used to define the initiation of damage.
Possible values are MAX_STRESS, MAX_SEPARATION, QUAD_TRACTION, and QUAD_SEPARATION. The
default value is MAX_STRESS.
initTempDep
A Boolean specifying whether the initiation data depend on temperature. The default
value is OFF.
initDependencies
An Int specifying the number of initiation data field variables. The default value is 0.
useEvolution
A Boolean specifying whether evolution data will be defined. The default value is OFF.
evolutionType
A SymbolicConstant specifying the type of data used to define the evolution of damage.
This argument is valid only when *useEvolution*=ON. Possible values are DISPLACEMENT and
ENERGY. The default value is DISPLACEMENT.
softening
A SymbolicConstant specifying the type of data used to define the evolution softening
response. This argument is valid only when *useEvolution*=ON. The TABULAR value can be
used only when *evolutionType*=DISPLACEMENT. Possible values are LINEAR, EXPONENTIAL,
and TABULAR. The default value is LINEAR.
useMixedMode
A Boolean specifying whether evolution data be defined using dependent behavior modes.
This argument is valid only when *useEvolution*=ON. The default value is OFF.
mixedModeType
A SymbolicConstant specifying the mode mix fracture criterion. This argument is valid
only when *useEvolution*=ON and when *useMixedMode*=ON. The POWER_LAW and BK values can
be used only when *evolutionType*=ENERGY. Possible values are TABULAR, POWER_LAW, and
BK. The default value is TABULAR.
modeMixRatio
A SymbolicConstant specifying the mode mix ratio type. This argument is valid only when
*useEvolution*=ON and when *useMixedMode*=ON. The TRACTION value can be used only when
*mixedModeType*=TABULAR. Possible values are ENERGY and TRACTION. The default value is
ENERGY.
exponent
None or a Float specifying the exponent in the power-law or BK criterion that defines
the variation of fracture energy with mode mix. This argument is valid only when
*useEvolution*=ON and when *mixedModeType*=POWER_LAW or BK. The default value is None.
evolTempDep
A Boolean specifying whether the evolution data depend on temperature. This argument is
valid only when *useEvolution*=ON. The default value is OFF.
evolDependencies
An Int specifying the number of evolution data field variables. This argument is valid
only when *useEvolution*=ON. The default value is 0.
evolTable
A sequence of sequences of Floats specifying the values defining the damage evolution.
The items in the table data are described below. This argument is valid only when
*useEvolution*=ON.
useStabilization
A Boolean specifying whether stabilization data will be defined. This argument is valid
only when *useEvolution*=ON. The default value is OFF.
viscosityCoef
None or a Float specifying the viscosity coefficient. This argument is valid only when
*useStabilization*=ON. The default value is None.
Returns
-------
A ContactDamage object.
"""
self.damage = ContactDamage(
initTable,
criterion,
initTempDep,
initDependencies,
useEvolution,
evolutionType,
softening,
useMixedMode,
mixedModeType,
modeMixRatio,
exponent,
evolTempDep,
evolDependencies,
evolTable,
useStabilization,
viscosityCoef,
)
return self.damage
def FractureCriterion(
self,
initTable: tuple,
type: SymbolicConstant = VCCT,
mixedModeBehavior: SymbolicConstant = BK,
temperatureDependency: Boolean = OFF,
dependencies: int = 0,
tolerance: float = 0,
specifyUnstableCrackProp: SymbolicConstant = OFF,
unstableTolerance: typing.Union[SymbolicConstant, float] = DEFAULT,
):
"""This method creates a FractureCriterion object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
initTable
A sequence of sequences of Floats specifying the value defining the fracture criterion.
The items in the table data are described below.
type
A SymbolicConstant specifying the type of data used to define the fracture criterion.
Possible values are VCCT and ENHANCED VCCT. The default value is VCCT.
mixedModeBehavior
A SymbolicConstant specifying the mixed mode behavior type used to define fracture
criterion. Possible values are BK, POWER, and REEDER. The default value is BK.
temperatureDependency
A Boolean specifying whether the fracture criterion data depend on temperature. The
default value is OFF.
dependencies
An Int specifying the number of fracture criterion data field variables. The default
value is 0.
tolerance
A Float specifying the tolerance for VCCT\Enhanced VCCT type. The default value is 0.2.
specifyUnstableCrackProp
A SymbolicConstant specifying whether to include unstable crack growth tolerance in
fracture criterion. Possible values are ON and OFF. The default value is OFF.
unstableTolerance
The SymbolicConstant DEFAULT or a Float specifying the tolerance for unstable crack
propagation. This parameter specified only if *specifyUnstableCrackProp*=ON. The default
value is DEFAULT.
Returns
-------
A FractureCriterion object.
"""
self.fractureCriterion = FractureCriterion(
initTable,
type,
mixedModeBehavior,
temperatureDependency,
dependencies,
tolerance,
specifyUnstableCrackProp,
unstableTolerance,
)
return self.fractureCriterion
def CohesiveBehavior(
self,
repeatedContacts: Boolean = OFF,
eligibility: SymbolicConstant = ALL_NODES,
defaultPenalties: Boolean = ON,
coupling: SymbolicConstant = UNCOUPLED,
temperatureDependency: Boolean = OFF,
dependencies: int = 0,
table: tuple = (),
):
"""This method creates a CohesiveBehavior object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
repeatedContacts
A Boolean specifying whether to enforce cohesive behavior for recurrent contacts at
nodes on the slave surface subsequent to ultimate failure. The default value is OFF.
eligibility
A SymbolicConstant specifying the eligible slave nodes. Possible values are
ALL_NODES, INITIAL_NODES, and SPECIFIED. The default value is ALL_NODES.
defaultPenalties
A Boolean specifying whether to use the default contact penalties. The default value is
ON.
coupling
A SymbolicConstant specifying whether the traction-separation coefficients are coupled
or uncoupled. This argument is valid only for *defaultPenalties*=OFF. Possible values
are UNCOUPLED and COUPLED. The default value is UNCOUPLED.
temperatureDependency
A Boolean specifying whether the coefficient data depend on temperature. This argument
is valid only for *defaultPenalties*=OFF. The default value is OFF.
dependencies
An Int specifying the number of field variables. This argument is valid only for
*defaultPenalties*=OFF. The default value is 0.
table
A sequence of sequences of Floats specifying the traction-separation coefficients. The
items in the table data are described below. This argument is valid only for
*defaultPenalties*=OFF.
Returns
-------
A CohesiveBehavior object.
"""
self.cohesiveBehavior = CohesiveBehavior(
repeatedContacts,
eligibility,
defaultPenalties,
coupling,
temperatureDependency,
dependencies,
table,
)
return self.cohesiveBehavior
def ThermalConductance(
self,
definition: SymbolicConstant = TABULAR,
clearanceDependency: Boolean = ON,
pressureDependency: Boolean = OFF,
temperatureDependencyC: Boolean = OFF,
massFlowRateDependencyC: Boolean = OFF,
dependenciesC: int = 0,
clearanceDepTable: tuple = (),
temperatureDependencyP: Boolean = OFF,
massFlowRateDependencyP: Boolean = OFF,
dependenciesP: int = 0,
pressureDepTable: tuple = (),
):
"""This method creates a ThermalConductance object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
definition
A SymbolicConstant specifying how the thermal conductance is defined. Possible values
are TABULAR and USER_DEFINED. The default value is TABULAR.
clearanceDependency
A Boolean specifying whether to use clearance-dependent data. The default value is ON.
pressureDependency
A Boolean specifying whether to use pressure-dependent data. The default value is OFF.
temperatureDependencyC
A Boolean specifying whether to use temperature-dependent data with clearance
dependency. The default value is OFF.
massFlowRateDependencyC
A Boolean specifying whether to use mass-flow-rate-dependent data with clearance
dependency. The default value is OFF.
dependenciesC
An Int specifying the number of field variables to use with clearance dependency. The
default value is 0.
clearanceDepTable
A sequence of sequences of Floats specifying clearance dependency data. The items in the
table data are described below.
temperatureDependencyP
A Boolean specifying whether to use temperature-dependent data with pressure dependency.
The default value is OFF.
massFlowRateDependencyP
A Boolean specifying whether to use mass-flow-rate-dependent data with pressure
dependency. The default value is OFF.
dependenciesP
An Int specifying the number of field variables to use with pressure dependency. The
default value is 0.
pressureDepTable
A sequence of sequences of Floats specifying pressure dependency data. The items in the
table data are described below.
Returns
-------
A ThermalConductance object.
"""
self.thermalConductance = ThermalConductance(
definition,
clearanceDependency,
pressureDependency,
temperatureDependencyC,
massFlowRateDependencyC,
dependenciesC,
clearanceDepTable,
temperatureDependencyP,
massFlowRateDependencyP,
dependenciesP,
pressureDepTable,
)
return self.thermalConductance
def HeatGeneration(
self, conversionFraction: float = 1, secondaryFraction: float = 0
):
"""This method creates a GapHeatGeneration object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
conversionFraction
A Float specifying the fraction of dissipated energy caused by friction or electric
currents that is converted to heat. The default value is 1.0.
slaveFraction
A Float specifying the fraction of converted heat distributed to the slave surface.
The default value is 0.5.
Returns
-------
A GapHeatGeneration object.
"""
self.heatGeneration = GapHeatGeneration(conversionFraction, secondaryFraction)
return self.heatGeneration
def Radiation(
self, mainEmissivity: float, secondaryEmissivity: float, table: tuple
):
"""This method creates a Radiation object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
masterEmissivity
A Float specifying the emissivity of the master surface.
slaveEmissivity
A Float specifying the emissivity of the slave surface.
table
A sequence of sequences of Floats specifying the following:Effective viewfactor, FF.Gap
clearance, dd.
Returns
-------
A Radiation object.
"""
self.radiation = Radiation(mainEmissivity, secondaryEmissivity, table)
return self.radiation
def GeometricProperties(
self,
contactArea: float = 1,
padThickness: float = None,
trackingThickness: float = None,
dependentVariables: int = 0,
numProperties: int = 0,
useUnsymmetricEqunProcedure: Boolean = OFF,
modelType: SymbolicConstant = None,
):
"""This method creates a GeometricProperties object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
contactArea
A Float specifying the out-of-plane thickness of the surface for a two-dimensional model
or cross-sectional area for every node in the node-based surface. The default value is
1.0.
padThickness
None or a Float specifying the thickness of an interfacial layer between the contacting
surfaces. If *padThickness*=None, there is no interfacial layer. The default value is
None.
trackingThickness
None or a Float specifying the thickness that determines the contacting surfaces to be
tracked. The input value for this parameter cannot be negative. An internal default
value is used if a zero value is input or if the parameter is omitted.
dependentVariables
An Int specifying the number of state-dependent variables. The default value is 0. This
argument is applicable only if *modelType*=MODELTYPE_USER or
*modelType*=MODELTYPE_USER_INTERACTION.
numProperties
An Int specifying the number of property values required. The default value is 0. This
argument is applicable only if *modelType*=MODELTYPE_USER or
*modelType*=MODELTYPE_USER_INTERACTION.
useUnsymmetricEqunProcedure
A Boolean specifying whether to use unsymmetric equation solution procedures. This
argument is applicable only if *modelType*=MODELTYPE_USER or
*modelType*=MODELTYPE_USER_INTERACTION.
modelType
A SymbolicConstant specifying the surface interaction model type.
Returns
-------
A GeometricProperties object.
"""
self.geometricProperties = GeometricProperties(
contactArea,
padThickness,
trackingThickness,
dependentVariables,
numProperties,
useUnsymmetricEqunProcedure,
modelType,
)
return self.geometricProperties
def ElectricalConductance(
self,
definition: SymbolicConstant = TABULAR,
clearanceDependency: Boolean = ON,
pressureDependency: Boolean = OFF,
temperatureDependencyC: Boolean = OFF,
dependenciesC: int = 0,
clearanceDepTable: tuple = (),
temperatureDependencyP: Boolean = OFF,
dependenciesP: int = 0,
pressureDepTable: tuple = (),
):
"""This method creates a GapElectricalConductance object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ContactProperty
Parameters
----------
definition
A SymbolicConstant specifying how the electrical conductance is defined. Possible values
are TABULAR and USER_DEFINED. The default value is TABULAR.
clearanceDependency
A Boolean specifying whether to use clearance-dependent data. The default value is ON.
pressureDependency
A Boolean specifying whether to use pressure-dependent data. The default value is OFF.
temperatureDependencyC
A Boolean specifying whether to use temperature-dependent data with clearance
dependency. The default value is OFF.
dependenciesC
An Int specifying the number of field variables to use with clearance dependency. The
default value is 0.
clearanceDepTable
A sequence of sequences of Floats specifying clearance dependency data. The items in the
table data are described below.
temperatureDependencyP
A Boolean specifying whether to use temperature-dependent data with pressure dependency.
The default value is OFF.
dependenciesP
An Int specifying the number of field variables to use with pressure dependency. The
default value is 0.
pressureDepTable
A sequence of sequences of Floats specifying pressure dependency data. The items in the
table data are described below.
Returns
-------
A GapElectricalConductance object.
"""
self.electricalConductance = GapElectricalConductance(
definition,
clearanceDependency,
pressureDependency,
temperatureDependencyC,
dependenciesC,
clearanceDepTable,
temperatureDependencyP,
dependenciesP,
pressureDepTable,
)
return self.electricalConductance