• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

haiiliin / abqpy / 5910646359

19 Aug 2023 09:25AM UTC coverage: 83.152% (-0.1%) from 83.3%
5910646359

push

github

web-flow
[typing] Fix wrong mypy typing annotations (backport #4879) (#4880)

* [typing] Fix wrong mypy typing annotations (#4879)

* Fix mypy abqpy issues

* Mypy typings

* Update typing annotations for SymbolicConstants

* Fixing typings

* Add future annotations

* Use list/dict/tuple instead of List/Dict/Tuple

* Fix Optional typings

* Add future annotations

* Update xyPlot.py

* Update .pre-commit-config.yaml

* Fix list typings for Python 3.7/3.8

* Fixing more typings

* Fix more typings

* Update conf.py

* Update .pre-commit-config.yaml

* Revert "Update conf.py"

This reverts commit e8449ae0c.

* Update conf.py

* Revert "Update conf.py"

This reverts commit 3be44d0a5.

* Docs Not -W

(cherry picked from commit d7be4b472)

# Conflicts:
#	src/abaqus/BasicGeometry/Cell.py
#	src/abaqus/BasicGeometry/CellArray.py
#	src/abaqus/BasicGeometry/Face.py
#	src/abaqus/BasicGeometry/FaceArray.py
#	src/abaqus/BoundaryCondition/BoundaryConditionModel.py
#	src/abaqus/BoundaryCondition/SubmodelBC.py
#	src/abaqus/Datum/DatumCsys.py
#	src/abaqus/DisplayGroup/LeafFromConstraintNames.py
#	src/abaqus/EngineeringFeature/DataImperfection.py
#	src/abaqus/EngineeringFeature/EngineeringFeature.py
#	src/abaqus/EngineeringFeature/EngineeringFeatureBase.py
#	src/abaqus/EngineeringFeature/FileImperfection.py
#	src/abaqus/EngineeringFeature/InputImperfection.py
#	src/abaqus/FieldReport/FieldReportSession.py
#	src/abaqus/FieldReport/writeFieldReport.py
#	src/abaqus/Interaction/ContactExp.py
#	src/abaqus/Interaction/ContactStd.py
#	src/abaqus/Interaction/ExpInitialization.py
#	src/abaqus/Interaction/FluidInflatorProperty.py
#	src/abaqus/Interaction/FluidInflatorState.py
#	src/abaqus/Interaction/InteractionContactInitializationModel.py
#	src/abaqus/Interaction/InteractionModel.py
#	src/abaqus/Interaction/InteractionPropertyModel.py
#	src/abaqus/Interaction/SurfaceCrushTriggerAssignment.py
#... (continued)

3258 of 3258 new or added lines in 713 files covered. (100.0%)

24089 of 28970 relevant lines covered (83.15%)

0.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/abaqus/Section/SectionOdb.py
1
from __future__ import annotations
×
2

3
from typing import Sequence, Union
×
4

5
from typing_extensions import Literal
×
6

7
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
×
8

9
from ..Connector.ConnectorBehaviorOptionArray import ConnectorBehaviorOptionArray
×
10
from ..Odb.OdbBase import OdbBase
×
11
from ..UtilityAndView.abaqusConstants import (
×
12
    CONSTANT,
13
    DEFAULT,
14
    DOF_MODE,
15
    FULLY,
16
    GRADIENT,
17
    LINEAR,
18
    NO_IDEALIZATION,
19
    NONE,
20
    OFF,
21
    ON,
22
    SIMPSON,
23
    SOLVER_DEFAULT,
24
    UNIFORM,
25
    UNSPECIFIED,
26
    Boolean,
27
)
28
from ..UtilityAndView.abaqusConstants import abaqusConstants as C
×
29
from .AcousticInfiniteSection import AcousticInfiniteSection
×
30
from .AcousticInterfaceSection import AcousticInterfaceSection
×
31
from .BeamSection import BeamSection
×
32
from .CohesiveSection import CohesiveSection
×
33
from .CompositeShellSection import CompositeShellSection
×
34
from .CompositeSolidSection import CompositeSolidSection
×
35
from .ConnectorSection import ConnectorSection
×
36
from .EulerianSection import EulerianSection
×
37
from .GasketSection import GasketSection
×
38
from .GeneralStiffnessSection import GeneralStiffnessSection
×
39
from .HomogeneousShellSection import HomogeneousShellSection
×
40
from .HomogeneousSolidSection import HomogeneousSolidSection
×
41
from .MembraneSection import MembraneSection
×
42
from .MPCSection import MPCSection
×
43
from .PEGSection import PEGSection
×
44
from .SectionLayerArray import SectionLayerArray
×
45
from .SurfaceSection import SurfaceSection
×
46
from .TrussSection import TrussSection
×
47

48

49
@abaqus_class_doc
×
50
class SectionOdb(OdbBase):
×
51
    @abaqus_method_doc
×
52
    def AcousticInfiniteSection(
×
53
        self, name: str, material: str, thickness: float = 1, order: int = 10
54
    ) -> AcousticInfiniteSection:
55
        """This method creates an AcousticInfiniteSection object.
56

57
        .. note::
58
            This function can be accessed by::
59

60
                mdb.models[name].AcousticInfiniteSection
61
                session.odbs[name].AcousticInfiniteSection
62

63
        Parameters
64
        ----------
65
        name
66
            A String specifying the repository key.
67
        material
68
            A String specifying the name of the material.
69
        thickness
70
            A Float specifying the thickness of the section. Possible values are **thickness** > 0.0.
71
            The default value is 1.0.
72
        order
73
            An Int specifying the number of ninth-order polynomials that will be used to resolve the
74
            variation of the acoustic field in the infinite direction. Possible values are 0 <
75
            **order** ≤ 10. The default value is 10.
76

77
        Returns
78
        -------
79
        AcousticInfiniteSection
80
            An AcousticInfiniteSection object.
81

82
        Raises
83
        ------
84
        InvalidNameError
85
        RangeError
86
        """
87
        self.sections[name] = section = AcousticInfiniteSection(name, material, thickness, order)
×
88
        return section
×
89

90
    @abaqus_method_doc
×
91
    def AcousticInterfaceSection(self, name: str, thickness: float = 1) -> AcousticInterfaceSection:
×
92
        """This method creates an AcousticInterfaceSection object.
93

94
        .. note::
95
            This function can be accessed by::
96

97
                mdb.models[name].AcousticInterfaceSection
98
                session.odbs[name].AcousticInterfaceSection
99

100
        Parameters
101
        ----------
102
        name
103
            A String specifying the repository key.
104
        thickness
105
            A Float specifying the thickness of the section. Possible values are **thickness** > 0.0.
106
            The default value is 1.0.
107

108
        Returns
109
        -------
110
        AcousticInterfaceSection
111
            An AcousticInterfaceSection object.
112

113
        Raises
114
        ------
115
        InvalidNameError
116
        RangeError
117
        """
118
        self.sections[name] = section = AcousticInterfaceSection(name, thickness)
×
119
        return section
×
120

121
    @abaqus_method_doc
×
122
    def BeamSection(
×
123
        self,
124
        name: str,
125
        integration: Literal[C.DURING_ANALYSIS, C.BEFORE_ANALYSIS],
126
        profile: str,
127
        poissonRatio: float = 0,
128
        thermalExpansion: Boolean = OFF,
129
        temperatureDependency: Boolean = OFF,
130
        dependencies: int = 0,
131
        density: float | None = None,
132
        referenceTemperature: float | None = None,
133
        temperatureVar: Literal[C.INTERPOLATED, C.LINEAR] = LINEAR,
134
        alphaDamping: float = 0,
135
        betaDamping: float = 0,
136
        compositeDamping: float = 0,
137
        useFluidInertia: Boolean = OFF,
138
        submerged: Literal[C.FULLY, C.HALF] = FULLY,
139
        fluidMassDensity: float | None = None,
140
        crossSectionRadius: float | None = None,
141
        lateralMassCoef: float = 1,
142
        axialMassCoef: float = 0,
143
        massOffsetX: float = 0,
144
        massOffsetY: float = 0,
145
        beamShape: Literal[C.CONSTANT, C.TAPERED, C.ODB, C.API] = CONSTANT,
146
        material: str = "",
147
        table: tuple = (),
148
        outputPts: tuple = (),
149
        centroid: Sequence[float] = (),
150
        shearCenter: Sequence[float] = (),
151
        profileEnd: str = "",
152
    ) -> BeamSection:
153
        """This method creates a BeamSection object.
154

155
        .. note::
156
            This function can be accessed by::
157

158
                mdb.models[name].BeamSection
159
                session.odbs[name].BeamSection
160

161
        Parameters
162
        ----------
163
        name
164
            A String specifying the repository key.
165
        integration
166
            A SymbolicConstant specifying the integration method for the section. Possible values
167
            are BEFORE_ANALYSIS and DURING_ANALYSIS.
168
        profile
169
            A String specifying the name of the profile. This argument represents the start profile
170
            in case of **beamShape** = TAPERED.
171
        poissonRatio
172
            A Float specifying the Poisson's ratio of the section. The default value is 0.0.
173
        thermalExpansion
174
            A Boolean specifying whether to use thermal expansion data. The default value is OFF.
175
        temperatureDependency
176
            A Boolean specifying whether the data depend on temperature. The default value is OFF.
177
        dependencies
178
            An Int specifying the number of field variable dependencies. The default value is 0.
179
        density
180
            None or a Float specifying the density of the section. The default value is None.
181
        referenceTemperature
182
            None or a Float specifying the reference temperature of the section. The default value
183
            is None.
184
        temperatureVar
185
            A SymbolicConstant specifying the temperature variation for the section. Possible values
186
            are LINEAR and INTERPOLATED. The default value is LINEAR.
187
        alphaDamping
188
            A Float specifying the αRαR factor to create mass proportional damping in
189
            direct-integration dynamics. The default value is 0.0.
190
        betaDamping
191
            A Float specifying the βRβR factor to create stiffness proportional damping in
192
            direct-integration dynamics. The default value is 0.0.
193
        compositeDamping
194
            A Float specifying the fraction of critical damping to be used in calculating composite
195
            damping factors for the modes (for use in modal dynamics). The default value is 0.0.
196
        useFluidInertia
197
            A Boolean specifying whether added mass effects will be simulated. The default value is
198
            OFF.
199
        submerged
200
            A SymbolicConstant specifying whether the section is either full submerged or half
201
            submerged. This argument applies only when **useFluidInertia** = True. Possible values are
202
            FULLY and HALF. The default value is FULLY.
203
        fluidMassDensity
204
            None or a Float specifying the mass density of the fluid. This argument applies only
205
            when **useFluidInertia** = True and must be specified in that case. The default value is
206
            None.
207
        crossSectionRadius
208
            None or a Float specifying the radius of the cylindrical cross-section. This argument
209
            applies only when **useFluidInertia** = True and must be specified in that case. The
210
            default value is None.
211
        lateralMassCoef
212
            A Float specifying the added mass coefficient, CACA, for lateral motions of the beam.
213
            This argument applies only when*useFluidInertia* = True. The default value is 1.0.
214
        axialMassCoef
215
            A Float specifying the added mass coefficient, C(A−E)C(A-E), for motions along the axis
216
            of the beam. This argument affects only the term added to the free end(s) of the beam,
217
            and applies only when **useFluidInertia** = True. The default value is 0.0.
218
        massOffsetX
219
            A Float specifying the local 1-coordinate of the center of the cylindrical cross-section
220
            with respect to the beam cross-section. This argument applies only when
221
            **useFluidInertia** = True. The default value is 0.0.
222
        massOffsetY
223
            A Float specifying the local 2-coordinate of the center of the cylindrical cross-section
224
            with respect to the beam cross-section. This argument applies only when
225
            **useFluidInertia** = True. The default value is 0.0.
226
        beamShape
227
            A SymbolicConstant specifying the change in cross-section of the beam along length.
228
            Possible values are CONSTANT and TAPERED. The default value is CONSTANT. This parameter
229
            is available for manipulating the model database but not for the ODB API.
230
        material
231
            A String specifying the name of the material. The default value is an empty string. The
232
            material is required when **integration** is "DURING_ANALYSIS".
233
        table
234
            A sequence of sequences of Floats specifying the items described below. The default
235
            value is an empty sequence.
236
        outputPts
237
            A sequence of pairs of Floats specifying the positions at which output is requested. The
238
            default value is an empty sequence.
239
        centroid
240
            A pair of Floats specifying the **X - Y** coordinates of the centroid. The default value is
241
            (0.0, 0.0).
242
        shearCenter
243
            A pair of Floats specifying the **X - Y** coordinates of the shear center. The default value
244
            is (0.0, 0.0).
245
        profileEnd
246
            A String specifying the name of the end profile. The type of the end profile must be
247
            same as that of the start profile. This argument is valid only when **beamShape** = TAPERED.
248
            The default value is an empty string. This parameter is available for manipulating the
249
            model database but not for the ODB API.
250

251
        Returns
252
        -------
253
        BeamSection
254
            A BeamSection object.
255
        """
256
        self.sections[name] = section = BeamSection(
×
257
            name,
258
            integration,
259
            profile,
260
            poissonRatio,
261
            thermalExpansion,
262
            temperatureDependency,
263
            dependencies,
264
            density,
265
            referenceTemperature,
266
            temperatureVar,
267
            alphaDamping,
268
            betaDamping,
269
            compositeDamping,
270
            useFluidInertia,
271
            submerged,
272
            fluidMassDensity,
273
            crossSectionRadius,
274
            lateralMassCoef,
275
            axialMassCoef,
276
            massOffsetX,
277
            massOffsetY,
278
            beamShape,
279
            material,
280
            table,
281
            outputPts,
282
            centroid,
283
            shearCenter,
284
            profileEnd,
285
        )
286
        return section
×
287

288
    @abaqus_method_doc
×
289
    def CohesiveSection(
×
290
        self,
291
        name: str,
292
        response: Literal[C.TRACTION_SEPARATION, C.GASKET, C.CONTINUUM],
293
        material: str,
294
        initialThicknessType: Literal[C.SOLVER_DEFAULT] = SOLVER_DEFAULT,
295
        initialThickness: float = 1,
296
        outOfPlaneThickness: float | None = None,
297
    ) -> CohesiveSection:
298
        """This method creates a CohesiveSection object.
299

300
        .. note::
301
            This function can be accessed by::
302

303
                mdb.models[name].CohesiveSection
304
                session.odbs[name].CohesiveSection
305

306
        Parameters
307
        ----------
308
        name
309
            A String specifying the repository key.
310
        response
311
            A SymbolicConstant specifying the geometric assumption that defines the constitutive
312
            behavior of the cohesive elements. Possible values are TRACTION_SEPARATION, CONTINUUM,
313
            and GASKET.
314
        material
315
            A String specifying the name of the material.
316
        initialThicknessType
317
            A SymbolicConstant specifying the method used to compute the initial thickness. Possible
318
            values are:SOLVER_DEFAULT, specifying that Abaqus will use the analysis product
319
            defaultGEOMETRY, specifying that Abaqus will compute the thickness from the nodal
320
            coordinates of the elements.SPECIFY, specifying that Abaqus will use the value given for
321
            **initialThickness** The default value is SOLVER_DEFAULT.
322
        initialThickness
323
            A Float specifying the initial thickness for the section. The **initialThickness**
324
            argument applies only when **initialThicknessType** = SPECIFY. The default value is 1.0.
325
        outOfPlaneThickness
326
            None or a Float specifying the out-of-plane thickness for the section. The default value
327
            is None.
328

329
        Returns
330
        -------
331
        CohesiveSection
332
            A CohesiveSection object.
333

334
        Raises
335
        ------
336
        RangeError and InvalidNameError
337
        """
338
        self.sections[name] = section = CohesiveSection(
×
339
            name,
340
            response,
341
            material,
342
            initialThicknessType,
343
            initialThickness,
344
            outOfPlaneThickness,
345
        )
346
        return section
×
347

348
    @abaqus_method_doc
×
349
    def CompositeShellSection(
×
350
        self,
351
        name: str,
352
        layup: SectionLayerArray,
353
        symmetric: Boolean = OFF,
354
        thicknessType: Literal[
355
            C.DISCRETE_FIELD, C.NODAL_ANALYTICAL_FIELD, C.ANALYTICAL_FIELD, C.UNIFORM, C.NODAL_DISCRETE_FIELD
356
        ] = UNIFORM,
357
        preIntegrate: Boolean = OFF,
358
        poissonDefinition: Literal[C.DEFAULT] = DEFAULT,
359
        poisson: float = 0,
360
        integrationRule: Literal[C.GAUSS, C.SIMPSON] = SIMPSON,
361
        temperature: Literal[C.GRADIENT, C.POINTWISE] = GRADIENT,
362
        idealization: Literal[C.SMEAR_ALL_LAYERS, C.BENDING, C.MEMBRANE, C.NO_IDEALIZATION] = NO_IDEALIZATION,
363
        nTemp: int | None = None,
364
        thicknessModulus: float | None = None,
365
        useDensity: Boolean = OFF,
366
        density: float = 0,
367
        layupName: str = "",
368
        thicknessField: str = "",
369
        nodalThicknessField: str = "",
370
    ) -> CompositeShellSection:
371
        """This method creates a CompositeShellSection object.
372

373
        .. note::
374
            This function can be accessed by::
375

376
                mdb.models[name].parts[name].compositeLayups[i].CompositeShellSection
377
                mdb.models[name].CompositeShellSection
378
                session.odbs[name].CompositeShellSection
379

380
        Parameters
381
        ----------
382
        name
383
            A String specifying the repository key.
384
        layup
385
            A SectionLayerArray object specifying the shell cross-section.
386
        symmetric
387
            A Boolean specifying whether or not the layup should be made symmetric by the analysis.
388
            The default value is OFF.
389
        thicknessType
390
            A SymbolicConstant specifying the distribution used for defining the thickness of the
391
            elements. Possible values are UNIFORM, ANALYTICAL_FIELD, DISCRETE_FIELD,
392
            NODAL_ANALYTICAL_FIELD, and NODAL_DISCRETE_FIELD. The default value is UNIFORM.
393
        preIntegrate
394
            A Boolean specifying whether the shell section properties are specified by the user
395
            prior to the analysis (ON) or integrated during the analysis (OFF). The default value is
396
            OFF.
397
        poissonDefinition
398
            A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
399
            Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
400
            is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
401
            Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
402
            is the value provided in **poisson**.The default value is DEFAULT.
403
        poisson
404
            A Float specifying the Poisson's ratio. Possible values are −1.0 ≤ **poisson** ≤ 0.5.
405
            This argument is valid only when **poissonDefinition** = VALUE. The default value is 0.5.
406
        integrationRule
407
            A SymbolicConstant specifying the shell section integration rule. Possible values are
408
            SIMPSON and GAUSS. The default value is SIMPSON.
409
        temperature
410
            A SymbolicConstant specifying the mode used for temperature and field variable input
411
            across the section thickness. Possible values are GRADIENT and POINTWISE. The default
412
            value is GRADIENT.
413
        idealization
414
            A SymbolicConstant specifying the mechanical idealization used for the section
415
            calculations. This member is only applicable when **preIntegrate** is set to ON. Possible
416
            values are NO_IDEALIZATION, SMEAR_ALL_LAYERS, MEMBRANE, and BENDING. The default value
417
            is NO_IDEALIZATION.
418
        nTemp
419
            None or an Int specifying the number of temperature points to be input. This argument is
420
            valid only when **temperature** = POINTWISE. The default value is None.
421
        thicknessModulus
422
            None or a Float specifying the effective thickness modulus. This argument is relevant
423
            only for continuum shells and must be used in conjunction with the argument **poisson**.
424
            The default value is None.
425
        useDensity
426
            A Boolean specifying whether or not to use the value of **density**. The default value is
427
            OFF.
428
        density
429
            A Float specifying the value of density to apply to this section. The default value is
430
            0.0.
431
        layupName
432
            A String specifying the layup name for this section. The default value is an empty
433
            string.
434
        thicknessField
435
            A String specifying the name of the AnalyticalField or DiscreteField object used to
436
            define the thickness of the shell elements. The **thicknessField** argument applies only
437
            when **thicknessType** = ANALYTICAL_FIELD or **thicknessType** = DISCRETE_FIELD. The default
438
            value is an empty string.
439
        nodalThicknessField
440
            A String specifying the name of the AnalyticalField or DiscreteField object used to
441
            define the thickness of the shell elements at each node. The **nodalThicknessField**
442
            argument applies only when **thicknessType** = NODAL_ANALYTICAL_FIELD or
443
            **thicknessType** = NODAL_DISCRETE_FIELD. The default value is an empty string.
444

445
        Returns
446
        -------
447
        CompositeShellSection
448
            A CompositeShellSection object.
449
        """
450
        self.sections[name] = section = CompositeShellSection(
×
451
            name,
452
            layup,
453
            symmetric,
454
            thicknessType,
455
            preIntegrate,
456
            poissonDefinition,
457
            poisson,
458
            integrationRule,
459
            temperature,
460
            idealization,
461
            nTemp,
462
            thicknessModulus,
463
            useDensity,
464
            density,
465
            layupName,
466
            thicknessField,
467
            nodalThicknessField,
468
        )
469
        return section
×
470

471
    @abaqus_method_doc
×
472
    def CompositeSolidSection(
×
473
        self,
474
        name: str,
475
        layup: SectionLayerArray,
476
        symmetric: Boolean = OFF,
477
        layupName: str = "",
478
    ) -> CompositeSolidSection:
479
        """This method creates a CompositeSolidSection object.
480

481
        .. note::
482
            This function can be accessed by::
483

484
                mdb.models[name].CompositeSolidSection
485
                session.odbs[name].CompositeSolidSection
486

487
        Parameters
488
        ----------
489
        name
490
            A String specifying the repository key.
491
        layup
492
            A SectionLayerArray object specifying the solid cross-section.
493
        symmetric
494
            A Boolean specifying whether or not the layup should be made symmetric by the analysis.
495
            The default value is OFF.
496
        layupName
497
            A String specifying the layup name for this section. The default value is an empty
498
            string.
499

500
        Returns
501
        -------
502
        CompositeSolidSection
503
            A CompositeSolidSection object.
504
        """
505
        self.sections[name] = section = CompositeSolidSection(name, layup, symmetric, layupName)
×
506
        return section
×
507

508
    @abaqus_method_doc
×
509
    def ConnectorSection(
×
510
        self,
511
        name: str,
512
        assembledType: Literal[C.NONE] = NONE,
513
        rotationalType: Literal[C.NONE] = NONE,
514
        translationalType: Literal[C.NONE] = NONE,
515
        integration: Literal[C.EXPLICIT, C.IMPLICIT, C.UNSPECIFIED] = UNSPECIFIED,
516
        u1ReferenceLength: float | None = None,
517
        u2ReferenceLength: float | None = None,
518
        u3ReferenceLength: float | None = None,
519
        ur1ReferenceAngle: float | None = None,
520
        ur2ReferenceAngle: float | None = None,
521
        ur3ReferenceAngle: float | None = None,
522
        massPerLength: float | None = None,
523
        contactAngle: float | None = None,
524
        materialFlowFactor: float = 1,
525
        regularize: Boolean = ON,
526
        defaultTolerance: Boolean = ON,
527
        regularization: float = 0,
528
        extrapolation: Literal[C.CONSTANT, C.LINEAR] = CONSTANT,
529
        behaviorOptions: ConnectorBehaviorOptionArray | None = None,
530
    ) -> ConnectorSection:
531
        """This method creates a ConnectorSection object.
532

533
        .. note::
534
            This function can be accessed by::
535

536
                mdb.models[name].ConnectorSection
537
                session.odbs[name].ConnectorSection
538

539
        Parameters
540
        ----------
541
        name
542
            A String specifying the repository key.
543
        assembledType
544
            A SymbolicConstant specifying the assembled connection type. Possible values
545
            are:NONEBEAMBUSHINGCVJOINTCYLINDRICALHINGEPLANARRETRACTORSLIPRINGTRANSLATORUJOINTWELDThe
546
            default value is NONE.You cannot include the **assembledType** argument if
547
            **translationalType** or **rotationalType** are given a value other than NONE. At least one
548
            of the arguments **assembledType**, **translationalType**, or **rotationalType** must be given
549
            a value other than NONE.
550
        rotationalType
551
            A SymbolicConstant specifying the basic rotational connection type. Possible values
552
            are:NONEALIGNCARDANCONSTANT_VELOCITYEULERFLEXION_TORSIONFLOW_CONVERTERPROJECTION_FLEXION_TORSIONREVOLUTEROTATIONROTATION_ACCELEROMETERUNIVERSALThe
553
            default value is NONE.You cannot include the **rotationalType** argument if
554
            **assembledType** is given a value other than NONE. At least one of the arguments
555
            **assembledType**, **translationalType**, or **rotationalType** must be given an value other
556
            than NONE.
557
        translationalType
558
            A SymbolicConstant specifying the basic translational connection type. Possible values
559
            are:NONEACCELEROMETERAXIALCARTESIANJOINLINKPROJECTION_CARTESIANRADIAL_THRUSTSLIDE_PLANESLOTThe
560
            default value is NONE.You cannot include the **translationalType** argument if
561
            **assembledType** is given a value other than NONE. At least one of the arguments
562
            **assembledType**, **translationalType**, or **rotationalType** must be given an value other
563
            than NONE.
564
        integration
565
            A SymbolicConstant specifying the time integration scheme to use for analysis. This
566
            argument is applicable only to an Abaqus/Explicit analysis. Possible values are
567
            UNSPECIFIED, IMPLICIT, and EXPLICIT. The default value is UNSPECIFIED.
568
        u1ReferenceLength
569
            None or a Float specifying the reference length associated with constitutive response
570
            for the first component of relative motion. The default value is None.
571
        u2ReferenceLength
572
            None or a Float specifying the reference length associated with constitutive response
573
            for the second component of relative motion. The default value is None.
574
        u3ReferenceLength
575
            None or a Float specifying the reference length associated with constitutive response
576
            for the third component of relative motion. The default value is None.
577
        ur1ReferenceAngle
578
            None or a Float specifying the reference angle in degrees associated with constitutive
579
            response for the fourth component of relative motion. The default value is None.
580
        ur2ReferenceAngle
581
            None or a Float specifying the reference angle in degrees associated with constitutive
582
            response for the fifth component of relative motion. The default value is None.
583
        ur3ReferenceAngle
584
            None or a Float specifying the reference angle in degrees associated with constitutive
585
            response for the sixth component of relative motion. The default value is None.
586
        massPerLength
587
            None or a Float specifying the mass per unit reference length of belt material. This
588
            argument is applicable only when **assembledType** = SLIPRING, and must be specified in that
589
            case. The default value is None.
590
        contactAngle
591
            None or a Float specifying the contact angle made by the belt wrapping around node b.
592
            This argument is applicable only to an Abaqus/Explicit analysis, and only when
593
            **assembledType** = SLIPRING. The default value is None.
594
        materialFlowFactor
595
            A Float specifying the scaling factor for material flow at node b. This argument is
596
            applicable only when **assembledType** = RETRACTOR or **rotationalType** = FLOW_CONVERTER. The
597
            default value is 1.0.
598
        regularize
599
            A Boolean specifying whether or not all tabular data associated with the
600
            **behaviorOptions** will be regularized. This argument is applicable only for an
601
            Abaqus/Explicit analysis. The default value is ON.
602
        defaultTolerance
603
            A Boolean specifying whether or not the default regularization tolerance will be used
604
            for all tabular data associated with the **behaviorOptions**. This argument is applicable
605
            only for an Abaqus/Explicit analysis and only if **regularize** = ON. The default value is
606
            ON.
607
        regularization
608
            A Float specifying the regularization increment to be used for all tabular data
609
            associated with the **behaviorOptions**. This argument is applicable only for an
610
            Abaqus/Explicit analysis and only if **regularize** = ON and **defaultTolerance** = OFF. The
611
            default value is 0.03.
612
        extrapolation
613
            A SymbolicConstant specifying the extrapolation technique to be used for all tabular
614
            data associated with the **behaviorOptions**. Possible values are CONSTANT and LINEAR. The
615
            default value is CONSTANT.
616
        behaviorOptions
617
            A ConnectorBehaviorOptionArray object.
618

619
        Returns
620
        -------
621
        ConnectorSection
622
            A ConnectorSection object.
623

624
        Raises
625
        ------
626
        InvalidNameError
627
        RangeError
628
        """
629
        self.sections[name] = section = ConnectorSection(
×
630
            name,
631
            assembledType,
632
            rotationalType,
633
            translationalType,
634
            integration,
635
            u1ReferenceLength,
636
            u2ReferenceLength,
637
            u3ReferenceLength,
638
            ur1ReferenceAngle,
639
            ur2ReferenceAngle,
640
            ur3ReferenceAngle,
641
            massPerLength,
642
            contactAngle,
643
            materialFlowFactor,
644
            regularize,
645
            defaultTolerance,
646
            regularization,
647
            extrapolation,
648
            behaviorOptions,
649
        )
650
        return section
×
651

652
    @abaqus_method_doc
×
653
    def EulerianSection(self, name: str, data: str) -> EulerianSection:
×
654
        """This method creates a EulerianSection object.
655

656
        .. note::
657
            This function can be accessed by::
658

659
                mdb.models[name].EulerianSection
660
                session.odbs[name].EulerianSection
661

662
        Parameters
663
        ----------
664
        name
665
            A String specifying the repository key.
666
        data
667
            A String-to-String Dictionary specifying a dictionary mapping Material instance names to
668
            Material names. Internally the specified mapping gets sorted on Material instance name.
669

670
        Returns
671
        -------
672
        EulerianSection
673
            An EulerianSection object.
674
        """
675
        self.sections[name] = section = EulerianSection(name, data)
×
676
        return section
×
677

678
    @abaqus_method_doc
×
679
    def GasketSection(
×
680
        self,
681
        name: str,
682
        material: str,
683
        crossSection: float = 1,
684
        initialGap: float = 0,
685
        initialThickness: Union[Literal[C.DEFAULT], float] = DEFAULT,
686
        initialVoid: float = 0,
687
        stabilizationStiffness: Union[Literal[C.DEFAULT], float] = DEFAULT,
688
    ) -> GasketSection:
689
        """This method creates a GasketSection object.
690

691
        .. note::
692
            This function can be accessed by::
693

694
                mdb.models[name].GasketSection
695
                session.odbs[name].GasketSection
696

697
        Parameters
698
        ----------
699
        name
700
            A String specifying the repository key.
701
        material
702
            A String specifying the name of the material of which the gasket is made or material
703
            that defines gasket behavior.
704
        crossSection
705
            A Float specifying the cross-sectional area, width, or out-of-plane thickness, if
706
            applicable, depending on the gasket element type. The default value is 1.0.
707
        initialGap
708
            A Float specifying the initial gap. The default value is 0.0.
709
        initialThickness
710
            The SymbolicConstant DEFAULT or a Float specifying the initial gasket thickness. If
711
            DEFAULT is specified, the initial thickness is determined using nodal coordinates. The
712
            default value is DEFAULT.
713
        initialVoid
714
            A Float specifying the initial void. The default value is 0.0.
715
        stabilizationStiffness
716
            The SymbolicConstant DEFAULT or a Float specifying the default stabilization stiffness
717
            used in all but link elements to stabilize gasket elements that are not supported at all
718
            nodes, such as those that extend outside neighboring components. If DEFAULT is
719
            specified, a value is used equal to 10⁻⁹ times the initial compressive stiffness in the
720
            thickness direction. The default value is DEFAULT.
721

722
        Returns
723
        -------
724
        GasketSection
725
            A GasketSection object. and ValueError.
726
        """
727
        self.sections[name] = section = GasketSection(
×
728
            name,
729
            material,
730
            crossSection,
731
            initialGap,
732
            initialThickness,
733
            initialVoid,
734
            stabilizationStiffness,
735
        )
736
        return section
×
737

738
    @abaqus_method_doc
×
739
    def GeneralStiffnessSection(
×
740
        self,
741
        name: str,
742
        stiffnessMatrix: tuple,
743
        referenceTemperature: float | None = None,
744
        applyThermalStress: Boolean = OFF,
745
        temperatureDependency: Boolean = OFF,
746
        dependencies: int = 0,
747
        poissonDefinition: Literal[C.DEFAULT] = DEFAULT,
748
        poisson: float = 0,
749
        useDensity: Boolean = OFF,
750
        density: float = 0,
751
        thermalStresses: tuple = (),
752
        scalingData: tuple = (),
753
    ) -> GeneralStiffnessSection:
754
        """This method creates a GeneralStiffnessSection object.
755

756
        .. note::
757
            This function can be accessed by::
758

759
                mdb.models[name].GeneralStiffnessSection
760
                session.odbs[name].GeneralStiffnessSection
761

762
        Parameters
763
        ----------
764
        name
765
            A String specifying the repository key.
766
        stiffnessMatrix
767
            A sequence of Floats specifying the stiffness matrix for the section in the order D11,
768
            D12, D22, D13, D23, D33, ...., D66. Twenty-one entries must be given.
769
        referenceTemperature
770
            None or a Float specifying the reference temperature for thermal expansion. The default
771
            value is None.
772
        applyThermalStress
773
            A Boolean specifying whether or not the section stiffness varies with thermal stresses.
774
            The default value is OFF.
775
        temperatureDependency
776
            A Boolean specifying whether the data depend on temperature. The default value is OFF.
777
        dependencies
778
            An Int specifying the number of field variable dependencies. The default value is 0.
779
        poissonDefinition
780
            A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
781
            Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
782
            is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
783
            Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
784
            is the value provided in **poisson**.The default value is DEFAULT.
785
        poisson
786
            A Float specifying the Poisson's ratio. Possible values are −1.0 ≤ **poisson** ≤ 0.5.
787
            This argument is valid only when **poissonDefinition** = VALUE. The default value is 0.5.
788
        useDensity
789
            A Boolean specifying whether or not to use the value of **density**. The default value is
790
            OFF.
791
        density
792
            A Float specifying the value of density to apply to this section. The default value is
793
            0.0.
794
        thermalStresses
795
            A sequence of Floats specifying the generalized stress values caused by a unit
796
            temperature rise. Six entries must be given if the value of **applyThermalStress** is set
797
            to True. The default value is ("").
798
        scalingData
799
            A sequence of sequences of Floats specifying the scaling factors for given temperatures
800
            and/or field data. Each row should contain (Y, alpha, T, F1,...,Fn). The default value
801
            is an empty sequence.
802

803
        Returns
804
        -------
805
        GeneralStiffnessSection
806
            A GeneralStiffnessSection object.
807
        """
808
        self.sections[name] = section = GeneralStiffnessSection(
×
809
            name,
810
            stiffnessMatrix,
811
            referenceTemperature,
812
            applyThermalStress,
813
            temperatureDependency,
814
            dependencies,
815
            poissonDefinition,
816
            poisson,
817
            useDensity,
818
            density,
819
            thermalStresses,
820
            scalingData,
821
        )
822
        return section
×
823

824
    @abaqus_method_doc
×
825
    def HomogeneousShellSection(
×
826
        self,
827
        name: str,
828
        material: str,
829
        thickness: float = 0,
830
        numIntPts: int = 5,
831
        thicknessType: Literal[
832
            C.DISCRETE_FIELD, C.NODAL_ANALYTICAL_FIELD, C.ANALYTICAL_FIELD, C.UNIFORM, C.NODAL_DISCRETE_FIELD
833
        ] = UNIFORM,
834
        preIntegrate: Boolean = OFF,
835
        poissonDefinition: Literal[C.DEFAULT] = DEFAULT,
836
        poisson: float = 0,
837
        integrationRule: Literal[C.GAUSS, C.SIMPSON] = SIMPSON,
838
        temperature: Literal[C.GRADIENT, C.POINTWISE] = GRADIENT,
839
        idealization: Literal[C.SMEAR_ALL_LAYERS, C.BENDING, C.MEMBRANE, C.NO_IDEALIZATION] = NO_IDEALIZATION,
840
        nTemp: int | None = None,
841
        thicknessModulus: float | None = None,
842
        useDensity: Boolean = OFF,
843
        density: float = 0,
844
        thicknessField: str = "",
845
        nodalThicknessField: str = "",
846
    ) -> HomogeneousShellSection:
847
        """This method creates a HomogeneousShellSection object.
848

849
        .. note::
850
            This function can be accessed by::
851

852
                mdb.models[name].parts[name].compositeLayups[i].HomogeneousShellSection
853
                mdb.models[name].HomogeneousShellSection
854
                session.odbs[name].HomogeneousShellSection
855

856
        Parameters
857
        ----------
858
        name
859
            A String specifying the repository key.
860
        material
861
            A String specifying the name of the section material.
862
        thickness
863
            A Float specifying the thickness of the section. The **thickness** argument applies only
864
            when **thicknessType** = UNIFORM. The default value is 0.0.
865
        numIntPts
866
            An Int specifying the number of integration points to be used through the section.
867
            Possible values are **numIntPts** > 0. The default value is 5.To use the default settings
868
            of the analysis products, set **numIntPts** to 5 if **integrationRule** = SIMPSON or set
869
            **numIntPts** to 7 if **integrationRule** = GAUSS.
870
        thicknessType
871
            A SymbolicConstant specifying the distribution used for defining the thickness of the
872
            elements. Possible values are UNIFORM, ANALYTICAL_FIELD, DISCRETE_FIELD,
873
            NODAL_ANALYTICAL_FIELD, and NODAL_DISCRETE_FIELD. The default value is UNIFORM.
874
        preIntegrate
875
            A Boolean specifying whether the shell section properties are specified by the user
876
            prior to the analysis (ON) or integrated during the analysis (OFF). The default value is
877
            OFF.
878
        poissonDefinition
879
            A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
880
            Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
881
            is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
882
            Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
883
            is the value provided in **poisson**.The default value is DEFAULT.
884
        poisson
885
            A Float specifying the Poisson's ratio. Possible values are −1.0 ≤ **poisson** ≤ 0.5.
886
            This argument is valid only when **poissonDefinition** = VALUE. The default value is 0.5.
887
        integrationRule
888
            A SymbolicConstant specifying the shell section integration rule. Possible values are
889
            SIMPSON and GAUSS. The default value is SIMPSON.
890
        temperature
891
            A SymbolicConstant specifying the mode used for temperature and field variable input
892
            across the section thickness. Possible values are GRADIENT and POINTWISE. The default
893
            value is GRADIENT.
894
        idealization
895
            A SymbolicConstant specifying the mechanical idealization used for the section
896
            calculations. This member is only applicable when **preIntegrate** is set to ON. Possible
897
            values are NO_IDEALIZATION, SMEAR_ALL_LAYERS, MEMBRANE, and BENDING. The default value
898
            is NO_IDEALIZATION.
899
        nTemp
900
            None or an Int specifying the number of temperature points to be input. This argument is
901
            valid only when **temperature** = POINTWISE. The default value is None.
902
        thicknessModulus
903
            None or a Float specifying the effective thickness modulus. This argument is relevant
904
            only for continuum shells and must be used in conjunction with the argument **poisson**.
905
            The default value is None.
906
        useDensity
907
            A Boolean specifying whether or not to use the value of **density**. The default value is
908
            OFF.
909
        density
910
            A Float specifying the value of density to apply to this section. The default value is
911
            0.0.
912
        thicknessField
913
            A String specifying the name of the AnalyticalField or DiscreteField object used to
914
            define the thickness of the shell elements. The **thicknessField** argument applies only
915
            when **thicknessType** = ANALYTICAL_FIELD or **thicknessType** = DISCRETE_FIELD. The default
916
            value is an empty string.
917
        nodalThicknessField
918
            A String specifying the name of the AnalyticalField or DiscreteField object used to
919
            define the thickness of the shell elements at each node. The **nodalThicknessField**
920
            argument applies only when **thicknessType** = NODAL_ANALYTICAL_FIELD or
921
            **thicknessType** = NODAL_DISCRETE_FIELD. The default value is an empty string.
922

923
        Returns
924
        -------
925
        HomogeneousShellSection
926
            A HomogeneousShellSection object.
927
        """
928
        self.sections[name] = section = HomogeneousShellSection(
×
929
            name,
930
            material,
931
            thickness,
932
            numIntPts,
933
            thicknessType,
934
            preIntegrate,
935
            poissonDefinition,
936
            poisson,
937
            integrationRule,
938
            temperature,
939
            idealization,
940
            nTemp,
941
            thicknessModulus,
942
            useDensity,
943
            density,
944
            thicknessField,
945
            nodalThicknessField,
946
        )
947
        return section
×
948

949
    @abaqus_method_doc
×
950
    def HomogeneousSolidSection(self, name: str, material: str, thickness: float = 1) -> HomogeneousSolidSection:
×
951
        """This method creates a HomogeneousSolidSection object.
952

953
        .. note::
954
            This function can be accessed by::
955

956
                mdb.models[name].HomogeneousSolidSection
957
                session.odbs[name].HomogeneousSolidSection
958

959
        Parameters
960
        ----------
961
        name
962
            A String specifying the repository key.
963
        material
964
            A String specifying the name of the material.
965
        thickness
966
            None or a Float specifying the thickness of the section. Possible values
967
            are None or a floating point value such that thickness >  0.0. The default value is None.
968

969
        Returns
970
        -------
971
        HomogeneousSolidSection
972
            A HomogeneousSolidSection object.
973

974
        Raises
975
        ------
976
        InvalidNameError
977
        RangeError
978
        """
979
        self.sections[name] = section = HomogeneousSolidSection(name, material, thickness)
×
980
        return section
×
981

982
    @abaqus_method_doc
×
983
    def MembraneSection(
×
984
        self,
985
        name: str,
986
        material: str,
987
        thickness: float = 1,
988
        thicknessType: Literal[C.DISCRETE_FIELD, C.UNIFORM, C.ANALYTICAL_FIELD] = UNIFORM,
989
        poissonDefinition: Literal[C.DEFAULT] = DEFAULT,
990
        poisson: float = 0,
991
        thicknessField: str = "",
992
    ) -> MembraneSection:
993
        """This method creates a MembraneSection object.
994

995
        .. note::
996
            This function can be accessed by::
997

998
                mdb.models[name].MembraneSection
999
                session.odbs[name].MembraneSection
1000

1001
        Parameters
1002
        ----------
1003
        name
1004
            A String specifying the repository key.
1005
        material
1006
            A String specifying the name of the material.
1007
        thickness
1008
            A Float specifying the thickness for the section. Possible values are **thickness** >
1009
            0.0. The default value is 1.0.
1010
        thicknessType
1011
            A SymbolicConstant specifying the distribution used for defining the thickness of the
1012
            elements. Possible values are UNIFORM, ANALYTICAL_FIELD, and DISCRETE_FIELD. The default
1013
            value is UNIFORM.
1014
        poissonDefinition
1015
            A SymbolicConstant specifying whether to use the default value for the Poisson's ratio.
1016
            Possible values are:DEFAULT, specifying that the default value for the Poisson's ratio
1017
            is 0.5 in an Abaqus/Standard analysis and is obtained from the material definition in an
1018
            Abaqus/Explicit analysis.VALUE, specifying that the Poisson's ratio used in the analysis
1019
            is the value provided in **poisson**.The default value is DEFAULT.
1020
        poisson
1021
            A Float specifying the section Poisson's ratio. Possible values are −1.0 ≤ **poisson** ≤
1022
            0.5. This argument is valid only when **poissonDefinition** = VALUE. The default value is
1023
            0.5.
1024
        thicknessField
1025
            A String specifying the name of the AnalyticalField or DiscreteField object used to
1026
            define the thickness of the shell elements. The **thicknessField** argument applies only
1027
            when **thicknessType** = ANALYTICAL_FIELD or **thicknessType** = DISCRETE_FIELD. The default
1028
            value is an empty string.
1029

1030
        Returns
1031
        -------
1032
        MembraneSection
1033
            A MembraneSection object.
1034

1035
        Raises
1036
        ------
1037
        RangeError and InvalidNameError
1038
        """
1039
        self.sections[name] = section = MembraneSection(
×
1040
            name,
1041
            material,
1042
            thickness,
1043
            thicknessType,
1044
            poissonDefinition,
1045
            poisson,
1046
            thicknessField,
1047
        )
1048
        return section
×
1049

1050
    @abaqus_method_doc
×
1051
    def MPCSection(
×
1052
        self,
1053
        name: str,
1054
        mpcType: Literal[C.BEAM_MPC, C.ELBOW_MPC, C.TIE_MPC, C.MPC, C.USER_DEFINED, C.PIN_MPC, C.LINK_MPC],
1055
        userMode: Literal[C.USER_DEFINED, C.MPC, C.NODE_MODE, C.DOF_MODE] = DOF_MODE,
1056
        userType: int = 0,
1057
    ) -> MPCSection:
1058
        """This method creates a MPCSection object.
1059

1060
        .. note::
1061
            This function can be accessed by::
1062

1063
                mdb.models[name].MPCSection
1064
                session.odbs[name].MPCSection
1065

1066
        Parameters
1067
        ----------
1068
        name
1069
            A String specifying the repository key.
1070
        mpcType
1071
            A SymbolicConstant specifying the MPC type of the section. Possible values are BEAM_MPC,
1072
            ELBOW_MPC, PIN_MPC, LINK_MPC, TIE_MPC, and USER_DEFINED.
1073
        userMode
1074
            A SymbolicConstant specifying the mode of the MPC when it is user-defined. Possible
1075
            values are DOF_MODE and NODE_MODE. The default value is DOF_MODE.The **userMode** argument
1076
            applies only when **mpcType** = USER_DEFINED.
1077
        userType
1078
            An Int specifying to differentiate between different constraint types in a user-defined
1079
            MPCSection. The default value is 0.The **userType** argument applies only when
1080
            **mpcType** = USER_DEFINED.
1081

1082
        Returns
1083
        -------
1084
        MPCSection
1085
            A MPCSection object.
1086

1087
        Raises
1088
        ------
1089
        RangeError and InvalidNameError
1090
        """
1091
        self.sections[name] = section = MPCSection(name, mpcType, userMode, userType)
×
1092
        return section
×
1093

1094
    @abaqus_method_doc
×
1095
    def PEGSection(
×
1096
        self,
1097
        name: str,
1098
        material: str,
1099
        thickness: float = 1,
1100
        wedgeAngle1: float = 0,
1101
        wedgeAngle2: float = 0,
1102
    ) -> PEGSection:
1103
        """This method creates a PEGSection object.
1104

1105
        .. note::
1106
            This function can be accessed by::
1107

1108
                mdb.models[name].PEGSection
1109
                session.odbs[name].PEGSection
1110

1111
        Parameters
1112
        ----------
1113
        name
1114
            A String specifying the repository key.
1115
        material
1116
            A String specifying the name of the material.
1117
        thickness
1118
            A Float specifying the thickness of the section. Possible values are **thickness** > 0.0.
1119
            The default value is 1.0.
1120
        wedgeAngle1
1121
            A Float specifying the value of the x component of the angle between the bounding
1122
            planes, ΔϕxΔ⁢ϕx. The default value is 0.0.
1123
        wedgeAngle2
1124
            A Float specifying the value of the y component of the angle between the bounding
1125
            planes, ΔϕyΔ⁢ϕy. The default value is 0.0.
1126

1127
        Returns
1128
        -------
1129
        PEGSection
1130
            A PEGSection object.
1131

1132
        Raises
1133
        ------
1134
        InvalidNameError
1135
        RangeError
1136
        """
1137
        self.sections[name] = section = PEGSection(name, material, thickness, wedgeAngle1, wedgeAngle2)
×
1138
        return section
×
1139

1140
    @abaqus_method_doc
×
1141
    def SurfaceSection(self, name: str, useDensity: Boolean = OFF, density: float = 0) -> SurfaceSection:
×
1142
        """This method creates a SurfaceSection object.
1143

1144
        .. note::
1145
            This function can be accessed by::
1146

1147
                mdb.models[name].SurfaceSection
1148
                session.odbs[name].SurfaceSection
1149

1150
        Parameters
1151
        ----------
1152
        name
1153
            A String specifying the repository key.
1154
        useDensity
1155
            A Boolean specifying whether or not to use the value of **density**. The default value is
1156
            OFF.
1157
        density
1158
            A Float specifying the value of density to apply to this section. The default value is
1159
            0.0.
1160

1161
        Returns
1162
        -------
1163
        SurfaceSection
1164
            A SurfaceSection object.
1165

1166
        Raises
1167
        ------
1168
        RangeError and InvalidNameError
1169
        """
1170
        self.sections[name] = section = SurfaceSection(name, useDensity, density)
×
1171
        return section
×
1172

1173
    @abaqus_method_doc
×
1174
    def TrussSection(self, name: str, material: str, area: float = 1) -> TrussSection:
×
1175
        """This method creates a TrussSection object.
1176

1177
        .. note::
1178
            This function can be accessed by::
1179

1180
                mdb.models[name].TrussSection
1181
                session.odbs[name].TrussSection
1182

1183
        Parameters
1184
        ----------
1185
        name
1186
            A String specifying the repository key.
1187
        material
1188
            A String specifying the name of the material.
1189
        area
1190
            A Float specifying the cross-sectional area for the section. Possible values are **area**
1191
            > 0. The default value is 1.0.
1192

1193
        Returns
1194
        -------
1195
        TrussSection
1196
            A TrussSection object.
1197

1198
        Raises
1199
        ------
1200
        RangeError and InvalidNameError
1201
        """
1202
        self.sections[name] = section = TrussSection(name, material, area)
×
1203
        return section
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc