Comments (2)
Did the analysis run successfully? I tried a simple elastic beam model and it works for me. What are the outputs of print(nodeList)
and print(nodeCoord(nodeList[0]))
?
Here is what I used,
===========================
import Get_Rendering as opsplt
from openseespy.opensees import *
model('Basic', '-ndm', 2)
node(1, 0.0, 0.0)
node(2, 12.0, 0.0)
node(3, 24.0, 0.0)
node(4, 36.0, 0.0)
node(5, 48.0, 0.0)
node(6, 60.0, 0.0)
node(7, 72.0, 0.0)
node(8, 84.0, 0.0)
E = 29500.0
geomTransf('Linear', 1)
element('elasticBeamColumn', 1, 1, 2, 100., E, 1000.0, 1)
element('elasticBeamColumn', 2, 2, 3, 100., E, 1000.0, 1)
element('elasticBeamColumn', 3, 3, 4, 100., E, 1000.0, 1)
element('elasticBeamColumn', 4, 4, 5, 100., E, 1000.0, 1)
element('elasticBeamColumn', 5, 5, 6, 100., E, 1000.0, 1)
element('elasticBeamColumn', 6, 6, 7, 100., E, 1000.0, 1)
element('elasticBeamColumn', 7, 7, 8, 100., E, 1000.0, 1)
fix(1, 1, 1, 0)
fix(8, 0, 1, 0)
opsplt.plot_model("nodes","elements")
opsplt.recordNodeDisp()
timeSeries('Linear', 1)
pattern('Plain', 1, 1)
load(2, 0.0, -2., 0.)
load(3, 0.0, -2., 0.)
load(4, 0.0, -2., 0.)
load(5, 0.0, -2., 0.)
load(6, 0.0, -2., 0.)
load(7, 0.0, -2., 0.)
integrator('LoadControl', 1.0)
algorithm('Linear')
analysis('Static')
analyze(10)
wipe()
opsplt.plot_deformedshape(scale=300)
==================================
Here is the output:
from openseespy.
Thanks, @u-anurag! I got it to work based on your example.
from openseespy.
Related Issues (20)
- RuntimeError: Python version 3.8 is needed for Windows HOT 1
- OpenSeespy-3.4.0.8 not supported Python 3.11.3 and Anaconda3-2023.03-1-Windows-x86_64
- OpenSeesPy Reliability Analysis and Parameter problem. HOT 10
- module 'openseespy.opensees' has no attribute 'getEleClassTags'
- Error on ARM architecture Macs while importing HOT 4
- Updated Opensees not compatible with old script HOT 11
- limitCurve('Axial') not available
- limitCurve('ThreePoint') HOT 6
- Linux: opensees.so: cannot open shared object file: No such file or directory HOT 3
- recorder PVD for element stress and strain HOT 4
- RuntimeError: Failed to import openseespy on Windows HOT 2
- The MPCO recorder can't work in OpenSeespy HOT 1
- Error importing compiled openseespy on Mac M2 HOT 4
- The same problem still exists in the Openseespymac version. Is it possible to solve the issue in macs? HOT 9
- libquadmath - missing dependency? HOT 2
- printModel command produces invalid json file when there's no elements in the model HOT 1
- openseespy.save command doesn't save uniaxial materials HOT 1
- Recorder command problem HOT 2
- "Remove" code snippet that prints IMKBilin material tags to console. HOT 1
- Need an explanation about plotting -> I must not use Matplotlib HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openseespy.