Hello
I am using Openseespy and I have been trying to visualize my model but it seems the elements that I have been created will not appear in the outcome of my model. Then, I decided to create a much simpler model to see the result, it did not work in simpler model as well. As it is evident in the code below in the outcome window nodes are shown but not the element. I would really appreciate if someone helped me.
import openseespymac.opensees as op
import openseespy.postprocessing.Get_Rendering as oplt
op.wipe()
nNodeY = 3
# create ModelBuilder (with two-dimensions and 3 DOF/node)
op.model("BasicBuilder", "-ndm",2, "-ndf",3)
# create nodes & add to Domain - command: node nodeId xCrd yCrd
op.node(1, 0.0, 0.0)
op.node(2, 4.0, 0.0)
op.node(3, 4.0, 4.0)
op.node(4, 0.0, 4.0)
op.fix(1, 0, 1, 0)
op.fix(3, 0, 1, 0)
for i in range(1, (nNodeY - 2), 6):
op.equalDOF(i, i + 2, 1, 2)
op.model('basic', '-ndm', 2, '-ndf', 2)
op.node(5, 2.0, 0.0)
op.node(6, 4.0, 2.0)
op.node(7, 2.0, 4.0)
op.node(8, 0.0, 2.0)
op.node(9, 2.0, 2.0)
op.nDMaterial('PressureDependMultiYield', 1, 2, 1.4, 7.5e4, 2.0e5, 33, 0.1, 80.0, 0.5, 27, 0.07, 0.4, 2, 10,
0.01, 1, 20, 0.7, 0.9, 0.02, 0.7, 101)
op.element('9_4_QuadUP', 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 1, 5.24E6, 1.0, 1.0, 1.0)
oplt.plot_model("Nodes", "elements")
Element Visualization
Moderators: silvia, selimgunay, Moderators
Re: Element Visualization
You should contact Anurag, the author of Get_Rendering (now vfo).
https://github.com/u-anurag/vfo
https://github.com/u-anurag/vfo
-
- Posts: 3
- Joined: Wed Dec 01, 2021 4:18 am
Re: Element Visualization
Thank you Prof. Scott.