-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
65 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ dist | |
*.pyd | ||
*.dll | ||
*.so.* | ||
.idea | ||
.idea | ||
*.dylib |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# OpenSeesPy | ||
|
||
|
||
Pip Package for OpenSeesPy | ||
|
||
Linux and Windows versions maintained by: | ||
|
||
Minjie Zhu <zhum@oregonstate.edu> | ||
Research Associate; | ||
Civil and Construction Engineering; Oregon State University | ||
|
||
Mac version maintained by: | ||
|
||
Stevan Gavrilovic <steva44@hotmail.com> | ||
PhD Candidate; | ||
Structural and Earthquake Engineering; | ||
University of British Columbia | ||
|
||
[OpenSeesPy Documentation](https://openseespydoc.readthedocs.io/en/latest/index.html) | ||
|
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
name = "openseespymac" |
Empty file.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import openseespy.opensees as ops | ||
import matplotlib.pyplot as plt | ||
|
||
|
||
def drawModel(): | ||
plt.figure() | ||
|
||
etags = ops.getEleTags() | ||
if etags is None: | ||
return | ||
if isinstance(etags, int): | ||
etags = [etags] | ||
|
||
for e in etags: | ||
elenodes = ops.eleNodes(e) | ||
for i in range(0, len(elenodes)): | ||
|
||
[xi, yi] = ops.nodeCoord(elenodes[i-1]) | ||
[xj, yj] = ops.nodeCoord(elenodes[i]) | ||
plt.plot([xi, xj], [yi, yj], 'k') | ||
|
||
plt.show() |
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 @@ | ||
version = "0.4.2019.7" | ||
version = "0.5.4" |
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,3 @@ | ||
pytest | ||
matplotlib | ||
numpy |
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