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

haiiliin / abqpy / 10592831335

28 Aug 2024 08:14AM UTC coverage: 74.12% (+0.2%) from 73.933%
10592831335

push

github

haiiliin
Add future annotations imports for all files

339 of 375 new or added lines in 375 files covered. (90.4%)

34 existing lines in 34 files now uncovered.

24507 of 33064 relevant lines covered (74.12%)

0.74 hits per line

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

0.0
/src/abaqus/Load/LoadStep.py
NEW
1
from __future__ import annotations
×
2

UNCOV
3
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
×
4

5
from ..Step.StepBase import StepBase
×
6
from ..UtilityAndView.abaqusConstants import ON, Boolean
×
7
from .LoadCase import LoadCase
×
8

9

10
@abaqus_class_doc
×
11
class LoadStep(StepBase):
×
12
    @abaqus_method_doc
×
13
    def LoadCase(
×
14
        self,
15
        name: str,
16
        boundaryConditions: tuple = (),
17
        loads: tuple = (),
18
        includeActiveBaseStateBC: Boolean = ON,
19
    ) -> LoadCase:
20
        """This method creates a load case in a step.
21

22
        .. note::
23
            This function can be accessed by::
24

25
                mdb.models[name].steps[name].LoadCase
26

27
        Parameters
28
        ----------
29
        name
30
            A String specifying the name of the object.
31
        boundaryConditions
32
            A sequence of (String, Float) sequences specifying the name of a BoundaryCondition
33
            followed by a nonzero Float scaling factor. The default value is an empty sequence.
34
        loads
35
            A sequence of (String, Float) sequences specifying the name of a Load followed by a
36
            nonzero Float specifying a scale factor. The default value is an empty sequence.
37
        includeActiveBaseStateBC
38
            A Boolean specifying whether to include all active boundary conditions propagated or
39
            modified from the base state. The default value is ON.
40

41
        Returns
42
        -------
43
        LoadCase
44
            A LoadCase object.
45

46
        Raises
47
        ------
48
        RangeError
49
        """
50
        self.loadCases[name] = loadCase = LoadCase(name, boundaryConditions, loads, includeActiveBaseStateBC)
×
51
        return loadCase
×
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

© 2025 Coveralls, Inc