Creating nodes from importing text file

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
TrishReddy
Posts: 2
Joined: Sat Apr 16, 2022 8:39 pm

Creating nodes from importing text file

Post by TrishReddy » Tue Nov 08, 2022 4:40 am

Hello all,

I am new to Opensees.

I want to know if is there any option to create nodes using a text file containing coordinates.

Thank you very much for the help.

mhscott
Posts: 868
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Creating nodes from importing text file

Post by mhscott » Wed Nov 09, 2022 9:47 am

Use Tcl or Python to read the coordinates from the file and create nodes.

Andrew
Posts: 12
Joined: Wed Apr 06, 2005 7:28 pm
Location: Arup

Re: Creating nodes from importing text file

Post by Andrew » Tue Mar 28, 2023 11:03 pm

mhscott wrote:
Wed Nov 09, 2022 9:47 am
Use Tcl or Python to read the coordinates from the file and create nodes.
Sorry to ask a stupid question, but is it possible to import Tcl-format data into a Python Session, and if so, how?

I am using the OpenseesPy library with Python 3.9 on Windows 10.

kamyarsa
Posts: 14
Joined: Mon Jan 17, 2022 2:46 am

Re: Creating nodes from importing text file

Post by kamyarsa » Sat Apr 01, 2023 9:29 am

Check this link:
https://portwooddigital.com/2021/12/26/ ... converter/

it helps you to convert some basic tcl codes to python.

Andrew
Posts: 12
Joined: Wed Apr 06, 2005 7:28 pm
Location: Arup

Re: Creating nodes from importing text file

Post by Andrew » Tue Apr 11, 2023 3:25 am

Thanks. I was aware of that script and had started to look at it. However, I noticed that the OpenSeesPy changelog included mention of a "Tcl to Python converter", and wondered it was somehow included in OpenSeesPy.
Version 3.4.0.2 (7/20/2022)
Update to commit abebbee.
Update sectionForce and sectionDeformation commands.
Update Tcl to Python converter.
If not then I will simply continue with the script you mentioned.

Post Reply