This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
SectionModel.py
1219 lines (1100 loc) · 48 KB
/
SectionModel.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
import typing
from abaqusConstants import *
from .AcousticInfiniteSection import AcousticInfiniteSection
from .AcousticInterfaceSection import AcousticInterfaceSection
from .BeamSection import BeamSection
from .CohesiveSection import CohesiveSection
from .CompositeShellSection import CompositeShellSection
from .CompositeSolidSection import CompositeSolidSection
from .ConnectorSection import ConnectorSection
from .EulerianSection import EulerianSection
from .GasketSection import GasketSection
from .GeneralStiffnessSection import GeneralStiffnessSection
from .HomogeneousShellSection import HomogeneousShellSection
from .HomogeneousSolidSection import HomogeneousSolidSection
from .MPCSection import MPCSection
from .MembraneSection import MembraneSection
from .PEGSection import PEGSection
from .SectionLayerArray import SectionLayerArray
from .SurfaceSection import SurfaceSection
from .TrussSection import TrussSection
from ..Connector.ConnectorBehaviorOptionArray import ConnectorBehaviorOptionArray
from ..Model.ModelBase import ModelBase
class SectionModel(ModelBase):
"""Abaqus creates a Model object named `Model-1` when a session is started.
Notes
-----
This object can be accessed by:
.. code-block:: python
mdb.models[name]
"""
def AcousticInfiniteSection(
self, name: str, material: str, thickness: float = 1, order: int = 10
) -> AcousticInfiniteSection:
"""This method creates an AcousticInfiniteSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].AcousticInfiniteSection
session.odbs[name].AcousticInfiniteSection
Parameters
----------
name
A String specifying the repository key.
material
A String specifying the name of the material.
thickness
A Float specifying the thickness of the section. Possible values are *thickness* >> 0.0.
The default value is 1.0.
order
An Int specifying the number of ninth-order polynomials that will be used to resolve the
variation of the acoustic field in the infinite direction. Possible values are 0 <<
*order* ≤≤ 10. The default value is 10.
Returns
-------
An AcousticInfiniteSection object.
Raises
------
InvalidNameError
RangeError
"""
self.sections[name] = section = AcousticInfiniteSection(
name, material, thickness, order
)
return section
def AcousticInterfaceSection(
self, name: str, thickness: float = 1
) -> AcousticInterfaceSection:
"""This method creates an AcousticInterfaceSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].AcousticInterfaceSection
session.odbs[name].AcousticInterfaceSection
Parameters
----------
name
A String specifying the repository key.
thickness
A Float specifying the thickness of the section. Possible values are *thickness* >> 0.0.
The default value is 1.0.
Returns
-------
An AcousticInterfaceSection object.
Raises
------
InvalidNameError
RangeError
"""
self.sections[name] = section = AcousticInterfaceSection(name, thickness)
return section
def BeamSection(
self,
name: str,
integration: SymbolicConstant,
profile: str,
poissonRatio: float = 0,
thermalExpansion: Boolean = OFF,
temperatureDependency: Boolean = OFF,
dependencies: int = 0,
density: float = None,
referenceTemperature: float = None,
temperatureVar: SymbolicConstant = LINEAR,
alphaDamping: float = 0,
betaDamping: float = 0,
compositeDamping: float = 0,
useFluidInertia: Boolean = OFF,
submerged: SymbolicConstant = FULLY,
fluidMassDensity: float = None,
crossSectionRadius: float = None,
lateralMassCoef: float = 1,
axialMassCoef: float = 0,
massOffsetX: float = 0,
massOffsetY: float = 0,
beamShape: SymbolicConstant = CONSTANT,
material: str = "",
table: tuple = (),
outputPts: tuple = (),
centroid: tuple[float] = (),
shearCenter: tuple[float] = (),
profileEnd: str = "",
) -> BeamSection:
"""This method creates a BeamSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].BeamSection
session.odbs[name].BeamSection
Parameters
----------
name
A String specifying the repository key.
integration
A SymbolicConstant specifying the integration method for the section. Possible values
are BEFORE_ANALYSIS and DURING_ANALYSIS.
profile
A String specifying the name of the profile. This argument represents the start profile
in case of *beamShape*=TAPERED.
poissonRatio
A Float specifying the Poisson's ratio of the section. The default value is 0.0.
thermalExpansion
A Boolean specifying whether to use thermal expansion data. 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 variable dependencies. The default value is 0.
density
None or a Float specifying the density of the section. The default value is None.
referenceTemperature
None or a Float specifying the reference temperature of the section. The default value
is None.
temperatureVar
A SymbolicConstant specifying the temperature variation for the section. Possible values
are LINEAR and INTERPOLATED. The default value is LINEAR.
alphaDamping
A Float specifying the αRαR factor to create mass proportional damping in
direct-integration dynamics. The default value is 0.0.
betaDamping
A Float specifying the βRβR factor to create stiffness proportional damping in
direct-integration dynamics. The default value is 0.0.
compositeDamping
A Float specifying the fraction of critical damping to be used in calculating composite
damping factors for the modes (for use in modal dynamics). The default value is 0.0.
useFluidInertia
A Boolean specifying whether added mass effects will be simulated. The default value is
OFF.
submerged
A SymbolicConstant specifying whether the section is either full submerged or half
submerged. This argument applies only when *useFluidInertia* = True. Possible values are
FULLY and HALF. The default value is FULLY.
fluidMassDensity
None or a Float specifying the mass density of the fluid. This argument applies only
when *useFluidInertia* = True and must be specified in that case. The default value is
None.
crossSectionRadius
None or a Float specifying the radius of the cylindrical cross-section. This argument
applies only when *useFluidInertia* = True and must be specified in that case. The
default value is None.
lateralMassCoef
A Float specifying the added mass coefficient, CACA, for lateral motions of the beam.
This argument applies only when*useFluidInertia* = True. The default value is 1.0.
axialMassCoef
A Float specifying the added mass coefficient, C(A−E)C(A-E), for motions along the axis
of the beam. This argument affects only the term added to the free end(s) of the beam,
and applies only when *useFluidInertia* = True. The default value is 0.0.
massOffsetX
A Float specifying the local 1-coordinate of the center of the cylindrical cross-section
with respect to the beam cross-section. This argument applies only when
*useFluidInertia* = True. The default value is 0.0.
massOffsetY
A Float specifying the local 2-coordinate of the center of the cylindrical cross-section
with respect to the beam cross-section. This argument applies only when
*useFluidInertia* = True. The default value is 0.0.
beamShape
A SymbolicConstant specifying the change in cross-section of the beam along length.
Possible values are CONSTANT and TAPERED. The default value is CONSTANT. This parameter
is available for manipulating the model database but not for the ODB API.
material
A String specifying the name of the material. The default value is an empty string. The
material is required when *integration* is "DURING_ANALYSIS".
table
A sequence of sequences of Floats specifying the items described below. The default
value is an empty sequence.
outputPts
A sequence of pairs of Floats specifying the positions at which output is requested. The
default value is an empty sequence.
centroid
A pair of Floats specifying the *X–Y* coordinates of the centroid. The default value is
(0.0, 0.0).
shearCenter
A pair of Floats specifying the *X–Y* coordinates of the shear center. The default value
is (0.0, 0.0).
profileEnd
A String specifying the name of the end profile. The type of the end profile must be
same as that of the start profile. This argument is valid only when *beamShape*=TAPERED.
The default value is an empty string. This parameter is available for manipulating the
model database but not for the ODB API.
Returns
-------
A BeamSection object.
"""
self.sections[name] = section = BeamSection(
name,
integration,
profile,
poissonRatio,
thermalExpansion,
temperatureDependency,
dependencies,
density,
referenceTemperature,
temperatureVar,
alphaDamping,
betaDamping,
compositeDamping,
useFluidInertia,
submerged,
fluidMassDensity,
crossSectionRadius,
lateralMassCoef,
axialMassCoef,
massOffsetX,
massOffsetY,
beamShape,
material,
table,
outputPts,
centroid,
shearCenter,
profileEnd,
)
return section
def CohesiveSection(
self,
name: str,
response: SymbolicConstant,
material: str,
initialThicknessType: SymbolicConstant = SOLVER_DEFAULT,
initialThickness: float = 1,
outOfPlaneThickness: float = None,
) -> CohesiveSection:
"""This method creates a CohesiveSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].CohesiveSection
session.odbs[name].CohesiveSection
Parameters
----------
name
A String specifying the repository key.
response
A SymbolicConstant specifying the geometric assumption that defines the constitutive
behavior of the cohesive elements. Possible values are TRACTION_SEPARATION, CONTINUUM,
and GASKET.
material
A String specifying the name of the material.
initialThicknessType
A SymbolicConstant specifying the method used to compute the initial thickness. Possible
values are:SOLVER_DEFAULT, specifying that Abaqus will use the analysis product
defaultGEOMETRY, specifying that Abaqus will compute the thickness from the nodal
coordinates of the elements.SPECIFY, specifying that Abaqus will use the value given for
*initialThickness*The default value is SOLVER_DEFAULT.
initialThickness
A Float specifying the initial thickness for the section. The *initialThickness*
argument applies only when *initialThicknessType*=SPECIFY. The default value is 1.0.
outOfPlaneThickness
None or a Float specifying the out-of-plane thickness for the section. The default value
is None.
Returns
-------
A CohesiveSection object.
Raises
------
RangeError and InvalidNameError.
"""
self.sections[name] = section = CohesiveSection(
name,
response,
material,
initialThicknessType,
initialThickness,
outOfPlaneThickness,
)
return section
def CompositeShellSection(
self,
name: str,
layup: SectionLayerArray,
symmetric: Boolean = OFF,
thicknessType: SymbolicConstant = UNIFORM,
preIntegrate: Boolean = OFF,
poissonDefinition: SymbolicConstant = DEFAULT,
poisson: float = 0,
integrationRule: SymbolicConstant = SIMPSON,
temperature: SymbolicConstant = GRADIENT,
idealization: SymbolicConstant = NO_IDEALIZATION,
nTemp: int = None,
thicknessModulus: float = None,
useDensity: Boolean = OFF,
density: float = 0,
layupName: str = "",
thicknessField: str = "",
nodalThicknessField: str = "",
) -> CompositeShellSection:
"""This method creates a CompositeShellSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[name].compositeLayups[i].CompositeShellSection
mdb.models[name].CompositeShellSection
session.odbs[name].CompositeShellSection
Parameters
----------
name
A String specifying the repository key.
layup
A SectionLayerArray object specifying the shell cross-section.
symmetric
A Boolean specifying whether or not the layup should be made symmetric by the analysis.
The default value is OFF.
thicknessType
A SymbolicConstant specifying the distribution used for defining the thickness of the
elements. Possible values are UNIFORM, ANALYTICAL_FIELD, DISCRETE_FIELD,
NODAL_ANALYTICAL_FIELD, and NODAL_DISCRETE_FIELD. The default value is UNIFORM.
preIntegrate
A Boolean specifying whether the shell section properties are specified by the user
prior to the analysis (ON) or integrated during the analysis (OFF). The default value is
OFF.
poissonDefinition
A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
is the value provided in *poisson*.The default value is DEFAULT.
poisson
A Float specifying the Poisson's ratio. Possible values are −1.0 ≤≤ *poisson* ≤≤ 0.5.
This argument is valid only when *poissonDefinition*=VALUE. The default value is 0.5.
integrationRule
A SymbolicConstant specifying the shell section integration rule. Possible values are
SIMPSON and GAUSS. The default value is SIMPSON.
temperature
A SymbolicConstant specifying the mode used for temperature and field variable input
across the section thickness. Possible values are GRADIENT and POINTWISE. The default
value is GRADIENT.
idealization
A SymbolicConstant specifying the mechanical idealization used for the section
calculations. This member is only applicable when *preIntegrate* is set to ON. Possible
values are NO_IDEALIZATION, SMEAR_ALL_LAYERS, MEMBRANE, and BENDING. The default value
is NO_IDEALIZATION.
nTemp
None or an Int specifying the number of temperature points to be input. This argument is
valid only when *temperature*=POINTWISE. The default value is None.
thicknessModulus
None or a Float specifying the effective thickness modulus. This argument is relevant
only for continuum shells and must be used in conjunction with the argument *poisson*.
The default value is None.
useDensity
A Boolean specifying whether or not to use the value of *density*. The default value is
OFF.
density
A Float specifying the value of density to apply to this section. The default value is
0.0.
layupName
A String specifying the layup name for this section. The default value is an empty
string.
thicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements. The *thicknessField* argument applies only
when *thicknessType*=ANALYTICAL_FIELD or *thicknessType*=DISCRETE_FIELD. The default
value is an empty string.
nodalThicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements at each node. The *nodalThicknessField*
argument applies only when *thicknessType*=NODAL_ANALYTICAL_FIELD or
*thicknessType*=NODAL_DISCRETE_FIELD. The default value is an empty string.
Returns
-------
A CompositeShellSection object.
"""
self.sections[name] = section = CompositeShellSection(
name,
layup,
symmetric,
thicknessType,
preIntegrate,
poissonDefinition,
poisson,
integrationRule,
temperature,
idealization,
nTemp,
thicknessModulus,
useDensity,
density,
layupName,
thicknessField,
nodalThicknessField,
)
return section
def CompositeSolidSection(
self,
name: str,
layup: SectionLayerArray,
symmetric: Boolean = OFF,
layupName: str = "",
) -> CompositeSolidSection:
"""This method creates a CompositeSolidSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].CompositeSolidSection
session.odbs[name].CompositeSolidSection
Parameters
----------
name
A String specifying the repository key.
layup
A SectionLayerArray object specifying the solid cross-section.
symmetric
A Boolean specifying whether or not the layup should be made symmetric by the analysis.
The default value is OFF.
layupName
A String specifying the layup name for this section. The default value is an empty
string.
Returns
-------
A CompositeSolidSection object.
"""
self.sections[name] = section = CompositeSolidSection(
name, layup, symmetric, layupName
)
return section
def ConnectorSection(
self,
name: str,
assembledType: SymbolicConstant = NONE,
rotationalType: SymbolicConstant = NONE,
translationalType: SymbolicConstant = NONE,
integration: SymbolicConstant = UNSPECIFIED,
u1ReferenceLength: float = None,
u2ReferenceLength: float = None,
u3ReferenceLength: float = None,
ur1ReferenceAngle: float = None,
ur2ReferenceAngle: float = None,
ur3ReferenceAngle: float = None,
massPerLength: float = None,
contactAngle: float = None,
materialFlowFactor: float = 1,
regularize: Boolean = ON,
defaultTolerance: Boolean = ON,
regularization: float = 0,
extrapolation: SymbolicConstant = CONSTANT,
behaviorOptions: ConnectorBehaviorOptionArray = None,
) -> ConnectorSection:
"""This method creates a ConnectorSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].ConnectorSection
session.odbs[name].ConnectorSection
Parameters
----------
name
A String specifying the repository key.
assembledType
A SymbolicConstant specifying the assembled connection type. Possible values
are:NONEBEAMBUSHINGCVJOINTCYLINDRICALHINGEPLANARRETRACTORSLIPRINGTRANSLATORUJOINTWELDThe
default value is NONE.You cannot include the *assembledType* argument if
*translationalType* or *rotationalType* are given a value other than NONE. At least one
of the arguments *assembledType*, *translationalType*, or *rotationalType* must be given
a value other than NONE.
rotationalType
A SymbolicConstant specifying the basic rotational connection type. Possible values
are:NONEALIGNCARDANCONSTANT_VELOCITYEULERFLEXION_TORSIONFLOW_CONVERTERPROJECTION_FLEXION_TORSIONREVOLUTEROTATIONROTATION_ACCELEROMETERUNIVERSALThe
default value is NONE.You cannot include the *rotationalType* argument if
*assembledType* is given a value other than NONE. At least one of the arguments
*assembledType*, *translationalType*, or *rotationalType* must be given an value other
than NONE.
translationalType
A SymbolicConstant specifying the basic translational connection type. Possible values
are:NONEACCELEROMETERAXIALCARTESIANJOINLINKPROJECTION_CARTESIANRADIAL_THRUSTSLIDE_PLANESLOTThe
default value is NONE.You cannot include the *translationalType* argument if
*assembledType* is given a value other than NONE. At least one of the arguments
*assembledType*, *translationalType*, or *rotationalType* must be given an value other
than NONE.
integration
A SymbolicConstant specifying the time integration scheme to use for analysis. This
argument is applicable only to an Abaqus/Explicit analysis. Possible values are
UNSPECIFIED, IMPLICIT, and EXPLICIT. The default value is UNSPECIFIED.
u1ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the first component of relative motion. The default value is None.
u2ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the second component of relative motion. The default value is None.
u3ReferenceLength
None or a Float specifying the reference length associated with constitutive response
for the third component of relative motion. The default value is None.
ur1ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the fourth component of relative motion. The default value is None.
ur2ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the fifth component of relative motion. The default value is None.
ur3ReferenceAngle
None or a Float specifying the reference angle in degrees associated with constitutive
response for the sixth component of relative motion. The default value is None.
massPerLength
None or a Float specifying the mass per unit reference length of belt material. This
argument is applicable only when *assembledType*=SLIPRING, and must be specified in that
case. The default value is None.
contactAngle
None or a Float specifying the contact angle made by the belt wrapping around node b.
This argument is applicable only to an Abaqus/Explicit analysis, and only when
*assembledType*=SLIPRING. The default value is None.
materialFlowFactor
A Float specifying the scaling factor for material flow at node b. This argument is
applicable only when *assembledType*=RETRACTOR or *rotationalType*=FLOW_CONVERTER. The
default value is 1.0.
regularize
A Boolean specifying whether or not all tabular data associated with the
*behaviorOptions* will be regularized. This argument is applicable only for an
Abaqus/Explicit analysis. The default value is ON.
defaultTolerance
A Boolean specifying whether or not the default regularization tolerance will be used
for all tabular data associated with the *behaviorOptions*. This argument is applicable
only for an Abaqus/Explicit analysis and only if *regularize*=ON. The default value is
ON.
regularization
A Float specifying the regularization increment to be used for all tabular data
associated with the *behaviorOptions*. This argument is applicable only for an
Abaqus/Explicit analysis and only if *regularize*=ON and *defaultTolerance*=OFF. The
default value is 0.03.
extrapolation
A SymbolicConstant specifying the extrapolation technique to be used for all tabular
data associated with the *behaviorOptions*. Possible values are CONSTANT and LINEAR. The
default value is CONSTANT.
behaviorOptions
A ConnectorBehaviorOptionArray object.
Returns
-------
A ConnectorSection object.
Raises
------
InvalidNameError
RangeError
"""
self.sections[name] = section = ConnectorSection(
name,
assembledType,
rotationalType,
translationalType,
integration,
u1ReferenceLength,
u2ReferenceLength,
u3ReferenceLength,
ur1ReferenceAngle,
ur2ReferenceAngle,
ur3ReferenceAngle,
massPerLength,
contactAngle,
materialFlowFactor,
regularize,
defaultTolerance,
regularization,
extrapolation,
behaviorOptions,
)
return section
def EulerianSection(self, name: str, data: str) -> EulerianSection:
"""This method creates a EulerianSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].EulerianSection
session.odbs[name].EulerianSection
Parameters
----------
name
A String specifying the repository key.
data
A String-to-String Dictionary specifying a dictionary mapping Material instance names to
Material names. Internally the specified mapping gets sorted on Material instance name.
Returns
-------
An EulerianSection object.
"""
self.sections[name] = section = EulerianSection(name, data)
return section
def GasketSection(
self,
name: str,
material: str,
crossSection: float = 1,
initialGap: float = 0,
initialThickness: typing.Union[SymbolicConstant, float] = DEFAULT,
initialVoid: float = 0,
stabilizationStiffness: typing.Union[SymbolicConstant, float] = DEFAULT,
) -> GasketSection:
"""This method creates a GasketSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].GasketSection
session.odbs[name].GasketSection
Parameters
----------
name
A String specifying the repository key.
material
A String specifying the name of the material of which the gasket is made or material
that defines gasket behavior.
crossSection
A Float specifying the cross-sectional area, width, or out-of-plane thickness, if
applicable, depending on the gasket element type. The default value is 1.0.
initialGap
A Float specifying the initial gap. The default value is 0.0.
initialThickness
The SymbolicConstant DEFAULT or a Float specifying the initial gasket thickness. If
DEFAULT is specified, the initial thickness is determined using nodal coordinates. The
default value is DEFAULT.
initialVoid
A Float specifying the initial void. The default value is 0.0.
stabilizationStiffness
The SymbolicConstant DEFAULT or a Float specifying the default stabilization stiffness
used in all but link elements to stabilize gasket elements that are not supported at all
nodes, such as those that extend outside neighboring components. If DEFAULT is
specified, a value is used equal to 10–9 times the initial compressive stiffness in the
thickness direction. The default value is DEFAULT.
Returns
-------
A GasketSection object. and ValueError.
"""
self.sections[name] = section = GasketSection(
name,
material,
crossSection,
initialGap,
initialThickness,
initialVoid,
stabilizationStiffness,
)
return section
def GeneralStiffnessSection(
self,
name: str,
stiffnessMatrix: tuple,
referenceTemperature: float = None,
applyThermalStress: Boolean = OFF,
temperatureDependency: Boolean = OFF,
dependencies: int = 0,
poissonDefinition: SymbolicConstant = DEFAULT,
poisson: float = 0,
useDensity: Boolean = OFF,
density: float = 0,
thermalStresses: tuple = (),
scalingData: tuple = (),
) -> GeneralStiffnessSection:
"""This method creates a GeneralStiffnessSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].GeneralStiffnessSection
session.odbs[name].GeneralStiffnessSection
Parameters
----------
name
A String specifying the repository key.
stiffnessMatrix
A sequence of Floats specifying the stiffness matrix for the section in the order D11,
D12, D22, D13, D23, D33, ...., D66. Twenty-one entries must be given.
referenceTemperature
None or a Float specifying the reference temperature for thermal expansion. The default
value is None.
applyThermalStress
A Boolean specifying whether or not the section stiffness varies with thermal stresses.
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 variable dependencies. The default value is 0.
poissonDefinition
A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
is the value provided in *poisson*.The default value is DEFAULT.
poisson
A Float specifying the Poisson's ratio. Possible values are −1.0 ≤≤ *poisson* ≤≤ 0.5.
This argument is valid only when *poissonDefinition*=VALUE. The default value is 0.5.
useDensity
A Boolean specifying whether or not to use the value of *density*. The default value is
OFF.
density
A Float specifying the value of density to apply to this section. The default value is
0.0.
thermalStresses
A sequence of Floats specifying the generalized stress values caused by a unit
temperature rise. Six entries must be given if the value of *applyThermalStress* is set
to True. The default value is ("").
scalingData
A sequence of sequences of Floats specifying the scaling factors for given temperatures
and/or field data. Each row should contain (Y, alpha, T, F1,...,Fn). The default value
is an empty sequence.
Returns
-------
A GeneralStiffnessSection object.
"""
self.sections[name] = section = GeneralStiffnessSection(
name,
stiffnessMatrix,
referenceTemperature,
applyThermalStress,
temperatureDependency,
dependencies,
poissonDefinition,
poisson,
useDensity,
density,
thermalStresses,
scalingData,
)
return section
def HomogeneousShellSection(
self,
name: str,
material: str,
thickness: float = 0,
numIntPts: int = 5,
thicknessType: SymbolicConstant = UNIFORM,
preIntegrate: Boolean = OFF,
poissonDefinition: SymbolicConstant = DEFAULT,
poisson: float = 0,
integrationRule: SymbolicConstant = SIMPSON,
temperature: SymbolicConstant = GRADIENT,
idealization: SymbolicConstant = NO_IDEALIZATION,
nTemp: int = None,
thicknessModulus: float = None,
useDensity: Boolean = OFF,
density: float = 0,
thicknessField: str = "",
nodalThicknessField: str = "",
) -> HomogeneousShellSection:
"""This method creates a HomogeneousShellSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[name].compositeLayups[i]\
- .HomogeneousShellSection
mdb.models[name].HomogeneousShellSection
session.odbs[name].HomogeneousShellSection
Parameters
----------
name
A String specifying the repository key.
material
A String specifying the name of the section material.
thickness
A Float specifying the thickness of the section. The *thickness* argument applies only
when *thicknessType*=UNIFORM. The default value is 0.0.
numIntPts
An Int specifying the number of integration points to be used through the section.
Possible values are *numIntPts* >> 0. The default value is 5.To use the default settings
of the analysis products, set *numIntPts* to 5 if *integrationRule*=SIMPSON or set
*numIntPts* to 7 if *integrationRule*=GAUSS.
thicknessType
A SymbolicConstant specifying the distribution used for defining the thickness of the
elements. Possible values are UNIFORM, ANALYTICAL_FIELD, DISCRETE_FIELD,
NODAL_ANALYTICAL_FIELD, and NODAL_DISCRETE_FIELD. The default value is UNIFORM.
preIntegrate
A Boolean specifying whether the shell section properties are specified by the user
prior to the analysis (ON) or integrated during the analysis (OFF). The default value is
OFF.
poissonDefinition
A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
is the value provided in *poisson*.The default value is DEFAULT.
poisson
A Float specifying the Poisson's ratio. Possible values are −1.0 ≤≤ *poisson* ≤≤ 0.5.
This argument is valid only when *poissonDefinition*=VALUE. The default value is 0.5.
integrationRule
A SymbolicConstant specifying the shell section integration rule. Possible values are
SIMPSON and GAUSS. The default value is SIMPSON.
temperature
A SymbolicConstant specifying the mode used for temperature and field variable input
across the section thickness. Possible values are GRADIENT and POINTWISE. The default
value is GRADIENT.
idealization
A SymbolicConstant specifying the mechanical idealization used for the section
calculations. This member is only applicable when *preIntegrate* is set to ON. Possible
values are NO_IDEALIZATION, SMEAR_ALL_LAYERS, MEMBRANE, and BENDING. The default value
is NO_IDEALIZATION.
nTemp
None or an Int specifying the number of temperature points to be input. This argument is
valid only when *temperature*=POINTWISE. The default value is None.
thicknessModulus
None or a Float specifying the effective thickness modulus. This argument is relevant
only for continuum shells and must be used in conjunction with the argument *poisson*.
The default value is None.
useDensity
A Boolean specifying whether or not to use the value of *density*. The default value is
OFF.
density
A Float specifying the value of density to apply to this section. The default value is
0.0.
thicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements. The *thicknessField* argument applies only
when *thicknessType*=ANALYTICAL_FIELD or *thicknessType*=DISCRETE_FIELD. The default
value is an empty string.
nodalThicknessField
A String specifying the name of the AnalyticalField or DiscreteField object used to
define the thickness of the shell elements at each node. The *nodalThicknessField*
argument applies only when *thicknessType*=NODAL_ANALYTICAL_FIELD or
*thicknessType*=NODAL_DISCRETE_FIELD. The default value is an empty string.
Returns
-------
A HomogeneousShellSection object.
"""
self.sections[name] = section = HomogeneousShellSection(
name,
material,
thickness,
numIntPts,
thicknessType,
preIntegrate,
poissonDefinition,
poisson,
integrationRule,
temperature,
idealization,
nTemp,
thicknessModulus,
useDensity,
density,
thicknessField,
nodalThicknessField,
)
return section
def HomogeneousSolidSection(
self, name: str, material: str, thickness: float = 1
) -> HomogeneousSolidSection:
"""This method creates a HomogeneousSolidSection object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].HomogeneousSolidSection
session.odbs[name].HomogeneousSolidSection
Parameters
----------
name
A String specifying the repository key.
material
A String specifying the name of the material.
thickness
A Float specifying the thickness of the section. Possible values are None or greater
than zero. The default value is 1.0.
Returns
-------
A HomogeneousSolidSection object.
Raises
------
InvalidNameError
RangeError
"""
self.sections[name] = section = HomogeneousSolidSection(
name, material, thickness
)
return section
def MembraneSection(
self,
name: str,
material: str,
thickness: float = 1,
thicknessType: SymbolicConstant = UNIFORM,
poissonDefinition: SymbolicConstant = DEFAULT,
poisson: float = 0,
thicknessField: str = "",
) -> MembraneSection:
"""This method creates a MembraneSection object.