This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
Keyword.py
49 lines (39 loc) · 2.2 KB
/
Keyword.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
class Keyword:
"""The Keyword object is used to store a keyword definition from an Abaqus input file.
Keyword objects are returned via the InputFile.parse() method.
Attributes
----------
name: str
A String specifying the name of the keyword.
parameter: dict
A Dictionary of Strings specifying the keyword parameters.
data: tuple
A sequence of sequences or an :py:class:`~abaqus.InputFileParser.:py:class:`~abaqus.InputFileParser.AbaqusNDarray.AbaqusNDarray`.:py:class:`~abaqus.InputFileParser.AbaqusNDarray.AbaqusNDarray`` object specifying the keyword data. The type
of the :py:class:`~.leaf` objects depends on the keyword. The :py:class:`~abaqus.InputFileParser.:py:class:`~abaqus.InputFileParser.AbaqusNDarray.AbaqusNDarray`.:py:class:`~abaqus.InputFileParser.AbaqusNDarray.AbaqusNDarray`` object is returned only if
the data is suitable and if the InputFile.parse() method was called with the option
usePyArray=True. In cases where large amounts of numerical data (i.e., large node
arrays) are expected, it is recommended that you use the option usePyArray=True.
suboptions: str
A KeywordSequence specifying the suboptions of the keyword.
comments: tuple
A sequence of Strings specifying the comments.
Notes
-----
This object can be accessed by:
.. code-block:: python
import inpParser
"""
# A String specifying the name of the keyword.
name: str = ""
# A Dictionary of Strings specifying the keyword parameters.
parameter: dict = None
# A sequence of sequences or an AbaqusNDarray object specifying the keyword data. The type
# of the leaf objects depends on the keyword. The AbaqusNDarray object is returned only if
# the data is suitable and if the InputFile.parse() method was called with the option
# usePyArray=True. In cases where large amounts of numerical data (i.e., large node
# arrays) are expected, it is recommended that you use the option usePyArray=True.
data: tuple = ()
# A KeywordSequence specifying the suboptions of the keyword.
suboptions: str = ""
# A sequence of Strings specifying the comments.
comments: tuple = ()