Git Product home page Git Product logo

Comments (2)

u-anurag avatar u-anurag commented on May 23, 2024

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:

image

from openseespy.

mhscott avatar mhscott commented on May 23, 2024

Thanks, @u-anurag! I got it to work based on your example.

from openseespy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.