-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add repr for node and element sections
- Loading branch information
1 parent
b016df0
commit b25f24a
Showing
4 changed files
with
179 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
# class Node | ||
from typing import List | ||
|
||
import numpy as np | ||
from numpy.typing import NDArray | ||
|
||
# shape typing added in 2.1, not adding it here yet | ||
IntArray = NDArray[np.int32] | ||
FloatArray1D = NDArray[np.float64] | ||
FloatArray2D = NDArray[np.float64] | ||
|
||
class NodeSection: | ||
def __init__(self) -> None: ... | ||
@property | ||
def nnum(self) -> IntArray: ... | ||
@property | ||
def nodes(self) -> FloatArray2D: ... | ||
@property | ||
def tc(self) -> IntArray: ... | ||
@property | ||
def rc(self) -> IntArray: ... | ||
|
||
class ElementSection: | ||
def __init__(self) -> None: ... | ||
@property | ||
def eid(self) -> IntArray: ... | ||
@property | ||
def pid(self) -> IntArray: ... | ||
@property | ||
def node_ids(self) -> IntArray: ... | ||
@property | ||
def node_id_offsets(self) -> IntArray: ... | ||
|
||
class Deck: | ||
def __init__(self, fname: str) -> None: ... | ||
@property | ||
def node_sections(self) -> List[NodeSection]: ... | ||
@property | ||
def element_solid_sections(self) -> List[ElementSection]: ... | ||
def read_line(self) -> int: ... | ||
def read_element_section(self) -> None: ... | ||
def read_node_section(self) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters