u-anurag / vfo

Visualization For OpenSees
https://vfo.readthedocs.io
MIT License
34 stars 10 forks source link

Plotting Error #6

Closed ZubairRWani closed 2 years ago

ZubairRWani commented 2 years ago

i am getting some errors with plotting with vfo and more AttributeError: module 'vfo.internal_plotting_functions' has no attribute '_getAxisInfo'

u-anurag commented 2 years ago

update the package with the following command and try again. The latest release is 0.0.4.

python -m pip install --upgrade vfo

ZubairRWani commented 2 years ago

got the message: "Requirement already satisfied" what else could be the problem

u-anurag commented 2 years ago

Could you share your code?

ZubairRWani commented 2 years ago

import openseespy.opensees as op import vfo.vfo as vfo

import ModelFuctions as mf import AnalysisFuctions as af

=============================================================================

Load control Disp

=============================================================================

op.wipe()

Build Model

mf.getSections() mf.buildModel()

Show Model

vfo.plot_model('node', 'elements')

create Database

Model = 'Cantilever' LoadCase = 'PushoverLcD' vfo.createODB(Model, LoadCase) eleNumber = 1 sectionNumber = 1 vfo.saveFiberData2D(Model, LoadCase, eleNumber, sectionNumber)

Run Analysis

af.PushoverLcD(0.05)

out = op.eleResponse(1, 'section', '1', 'fiberData')

op.wipe()

vfo.plot_fiberResponse2D(Model, LoadCase, eleNumber, sectionNumber) vfo.plot_fiberResponse2D(Model, LoadCase, eleNumber, sectionNumber, InputType='strain')

u-anurag commented 2 years ago

This is not the complete code, given there is no information about "ModelFunctions" and "AnalysisFunctions". Could you prepare a minimum working example so I can run it on my computer and see what is causing the error?

ZubairRWani commented 2 years ago

Attaching ModelFunctions" and "AnalysisFunctions" AnalysisFuctions.txt ModelFuctions.txt

BijanSeif commented 2 years ago

I checked your model and VFO plotted it for me:

image

ZubairRWani commented 2 years ago

@BijanSeif This is just the model plot. The response plots are not working.

ZubairRWani commented 2 years ago

Thank you for your time and reply. I tried what you suggested however, the problem persists.

Regards

Zubair

On Sat, May 14, 2022 at 11:56 AM Bijan Sayyafzadeh @.***> wrote:

@ZubairRWani https://github.com/ZubairRWani Hi The problem is because your model is a strait vertical line in two dimension and have no length in one of two dimension. VFO needs to have dimension in both directions (It can be modified and improve) but simple you can give a small value to one of the your X nodes value to see your model like this nodeX = np.array([0.,0.,0.,0.1]) untill VFO solve the problem. (Absolutely when you want to run the analysis you should use your original values means: nodeX = np.array([0.,0.,0.,0.])

— Reply to this email directly, view it on GitHub https://github.com/u-anurag/vfo/issues/6#issuecomment-1126653646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZCVO7WJCP45SIRJTKY5JYDVJ5BSLANCNFSM5V35XTAQ . You are receiving this because you were mentioned.Message ID: @.***>

--

This electronic mail message and any attached files are confidential.****

The information is exclusively for the use of the individual or entity intended as the recipient. If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited. If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system.

u-anurag commented 2 years ago

I will check, it might take a few days.

u-anurag commented 2 years ago

@ZubairRWani This recent commit #7 will fix the issue. You can download the code for local use. I'll release a minor version update later.

u-anurag commented 2 years ago

@ZubairRWani Did you try with the latest release? Let me know if it still doesn't work.

ZubairRWani commented 1 year ago

Thank you, looking forward to it. Regards Zubair

On Sun, 15 May, 2022, 12:50 pm Anurag Upadhyay, @.***> wrote:

I will check, it might take a few days.

— Reply to this email directly, view it on GitHub https://github.com/u-anurag/vfo/issues/6#issuecomment-1126876652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZCVO7QNEPJBOLVL6VRBQM3VKCQVHANCNFSM5V35XTAQ . You are receiving this because you were mentioned.Message ID: @.***>

--

This electronic mail message and any attached files are confidential.****

The information is exclusively for the use of the individual or entity intended as the recipient. If you are not the intended recipient, any use, copying, printing, reviewing, retention, disclosure, distribution or forwarding of the message or any attached file is not authorized and is strictly prohibited. If you have received this electronic mail message in error, please advise the sender by reply electronic mail immediately and permanently delete the original transmission, any attachments and any copies of this message from your computer system.