Writing Proc in python
Moderators: silvia, selimgunay, Moderators
-
- Posts: 5
- Joined: Tue Dec 12, 2017 3:40 am
- Location: Trustructure-Iran
Writing Proc in python
Hey everyone.
How can i writer a subroutine in openseespy (something like wrting proc in tcl).
I would be grateful if somebody help me with sending an example.
How can i writer a subroutine in openseespy (something like wrting proc in tcl).
I would be grateful if somebody help me with sending an example.
Re: Writing Proc in python
Search online for how to write a function in Python
-
- Posts: 5
- Joined: Tue Dec 12, 2017 3:40 am
- Location: Trustructure-Iran
Re: Writing Proc in python
OpenSeesPy is a module, just like numpy you load it into your Python script. There's nothing special about it with respect to how you write your Python code.
https://portwooddigital.com/2019/11/18/ ... on-module/
https://portwooddigital.com/2019/11/18/ ... on-module/
-
- Posts: 5
- Joined: Tue Dec 12, 2017 3:40 am
- Location: Trustructure-Iran
Re: Writing Proc in python
Thank you Dear Scottmhscott wrote: ↑Mon Aug 16, 2021 7:24 am OpenSeesPy is a module, just like numpy you load it into your Python script. There's nothing special about it with respect to how you write your Python code.
https://portwooddigital.com/2019/11/18/ ... on-module/
Re: Writing Proc in python
There are tutorials here that show using OpenSeesPY with functions:
https://www.youtube.com/watch?v=scemwqZ ... 9a7bqFN6zG
(disclaimer - I recorded those..)
https://www.youtube.com/watch?v=scemwqZ ... 9a7bqFN6zG
(disclaimer - I recorded those..)