-
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.
Squashed 'openseespy-docs/' changes from 60eb74ee..5d108af2
5d108af2 update 083da805 update parameter command 759a8a3d add collapse recorder 135878fd add collapse recorder d430ec80 fix an import in example 15ee542e add ops_vis 3f763736 upgrade to 3.2.2.6 500084d2 Update setNodeAccel.rst bb6c3937 Update setNodeVel.rst 63be277e Update setNodeDisp.rst 02f195c2 Merge branch 'master' of github.com:zhuminjie/OpenSeesPyDoc 73418f3e 3.2.2.5 50b4d168 Merge pull request #205 from sewkokot/fixReadTheDocsBuilding cc42cc10 another trial to fix Read the Docs building process 277d938c Merge pull request #204 from sewkokot/fixSphinxAutodoc cd7c2436 ops_vis: minor change to fix Sphinx auto-generate function docs 631ebc68 Update to 3.2.2.4 e4a54cfd Merge pull request #203 from u-anurag/master c427ba8e Merge pull request #201 from sewkokot/addOpsVis 5468569b Update the rendering example dff8aca3 Merge branch 'master' of github.com:zhuminjie/OpenSeesPyDoc 433af67f partmesh update ebb07a4a update ops_vis and examples: more descriptive line style formats cf097c29 add quads_4x4 png files a3c9746f add ops_vis.py used for autodoc and autofunction; update, cleanup 1e40729f initial import of the ops_vis module 79c83506 modify existing files to adapt for ops_vis documentation 318fc65d delete redundant src/ from including sub.txt in two files 44df21df Merge pull request #200 from u-anurag/master b48ec1bb fix typo d057495d cleaning up d3bd7716 Remove openseespyvis 4d86bb22 Merge pull request #6 from zhuminjie/master 1542b287 Update description for developers d3612a00 update index a54f14bb Merge branch 'master' of github.com:zhuminjie/OpenSeesPyDoc 29225043 update to 3.2.2.3 47ef9da4 Fix space d1d3016d Merge branch 'master' of https://github.com/u-anurag/OpenSeesPyDoc b91c1993 Add openseesvispy information 69e8cb87 Merge pull request #5 from zhuminjie/master 010ccabb Update changelog.rst git-subtree-dir: openseespy-docs git-subtree-split: 5d108af25036ec707230d2dbd8889681fa7d8c4a
- Loading branch information
Showing
73 changed files
with
4,513 additions
and
97 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,131 @@ | ||
# import openseespy.opensees as ops | ||
# import openseespy.postprocessing.ops_vis as opsv | ||
import opensees as ops # local compilation | ||
import ops_vis as opsv # local | ||
|
||
import matplotlib.pyplot as plt | ||
|
||
ops.wipe() | ||
|
||
ops.model('basic', '-ndm', 3, '-ndf', 6) | ||
|
||
b = 0.2 | ||
h = 0.2 | ||
|
||
A, Iz, Iy, J = 0.04, 0.0001333, 0.0001333, 0.0036 | ||
|
||
E = 25.0e6 | ||
G = 9615384.6 | ||
|
||
Lx = 4. | ||
Ly = 3. | ||
Lz = 5. | ||
|
||
ops.node(1, 0., 0., 0.) | ||
ops.node(2, 0., 0., Lz) | ||
ops.node(3, Lx, 0., Lz) | ||
ops.node(4, Lx, Ly, Lz) | ||
|
||
ops.fix(1, 1, 1, 1, 1, 1, 1) | ||
|
||
lmass = 200. | ||
|
||
ops.mass(2, lmass, lmass, lmass, 0.001, 0.001, 0.001) | ||
ops.mass(3, lmass, lmass, lmass, 0.001, 0.001, 0.001) | ||
ops.mass(4, lmass, lmass, lmass, 0.001, 0.001, 0.001) | ||
|
||
gTTagz = 1 | ||
gTTagx = 2 | ||
gTTagy = 3 | ||
|
||
coordTransf = 'Linear' | ||
ops.geomTransf(coordTransf, gTTagz, 0., -1., 0.) | ||
ops.geomTransf(coordTransf, gTTagx, 0., -1., 0.) | ||
ops.geomTransf(coordTransf, gTTagy, 1., 0., 0.) | ||
|
||
ops.element('elasticBeamColumn', 1, 1, 2, A, E, G, J, Iy, Iz, gTTagz) | ||
ops.element('elasticBeamColumn', 2, 2, 3, A, E, G, J, Iy, Iz, gTTagx) | ||
ops.element('elasticBeamColumn', 3, 3, 4, A, E, G, J, Iy, Iz, gTTagy) | ||
|
||
Ew = {} | ||
|
||
Px = -4.e1 | ||
Py = -2.5e1 | ||
Pz = -3.e1 | ||
|
||
ops.timeSeries('Constant', 1) | ||
ops.pattern('Plain', 1, 1) | ||
ops.load(4, Px, Py, Pz, 0., 0., 0.) | ||
|
||
ops.constraints('Transformation') | ||
ops.numberer('RCM') | ||
ops.system('BandGeneral') | ||
ops.test('NormDispIncr', 1.0e-6, 6, 2) | ||
ops.algorithm('Linear') | ||
ops.integrator('LoadControl', 1) | ||
ops.analysis('Static') | ||
ops.analyze(1) | ||
|
||
|
||
opsv.plot_model() | ||
|
||
sfac = 2.0e0 | ||
|
||
# fig_wi_he = 22., 14. | ||
fig_wi_he = 30., 20. | ||
|
||
# - 1 | ||
nep = 9 | ||
opsv.plot_defo(sfac, nep, fmt_interp='b-', az_el=(-68., 39.), | ||
fig_wi_he=fig_wi_he, endDispFlag=0) | ||
|
||
plt.title('3d 3-element cantilever beam') | ||
|
||
# - 2 | ||
opsv.plot_defo(sfac, 19, fmt_interp='b-', az_el=(6., 30.), | ||
fig_wi_he=fig_wi_he) | ||
|
||
plt.title('3d 3-element cantilever beam') | ||
|
||
# - 3 | ||
nfreq = 6 | ||
eigValues = ops.eigen(nfreq) | ||
|
||
modeNo = 6 | ||
|
||
sfac = 2.0e1 | ||
opsv.plot_mode_shape(modeNo, sfac, 19, fmt_interp='b-', az_el=(106., 46.), | ||
fig_wi_he=fig_wi_he) | ||
plt.title(f'Mode {modeNo}') | ||
|
||
sfacN = 1.e-2 | ||
sfacVy = 5.e-2 | ||
sfacVz = 1.e-2 | ||
sfacMy = 1.e-2 | ||
sfacMz = 1.e-2 | ||
sfacT = 1.e-2 | ||
|
||
# plt.figure() | ||
minY, maxY = opsv.section_force_diagram_3d('N', Ew, sfacN) | ||
plt.title(f'Axial force N, max = {maxY:.2f}, min = {minY:.2f}') | ||
|
||
minY, maxY = opsv.section_force_diagram_3d('Vy', Ew, sfacVy) | ||
plt.title(f'Transverse force Vy, max = {maxY:.2f}, min = {minY:.2f}') | ||
|
||
minY, maxY = opsv.section_force_diagram_3d('Vz', Ew, sfacVz) | ||
plt.title(f'Transverse force Vz, max = {maxY:.2f}, min = {minY:.2f}') | ||
|
||
minY, maxY = opsv.section_force_diagram_3d('My', Ew, sfacMy) | ||
plt.title(f'Bending moments My, max = {maxY:.2f}, min = {minY:.2f}') | ||
|
||
minY, maxY = opsv.section_force_diagram_3d('Mz', Ew, sfacMz) | ||
plt.title(f'Bending moments Mz, max = {maxY:.2f}, min = {minY:.2f}') | ||
|
||
minY, maxY = opsv.section_force_diagram_3d('T', Ew, sfacT) | ||
plt.title(f'Torsional moment T, max = {maxY:.2f}, min = {minY:.2f}') | ||
|
||
opsv.plot_extruded_model_rect_section_3d(b, h, fig_wi_he=fig_wi_he) | ||
|
||
plt.show() | ||
|
||
exit() |
Oops, something went wrong.