Andi Wolmarans
Andi Wolmarans

Reputation: 11

How to use -source from Tcl in python?

I am doing an analysis in Opensees, which can be written in tcl or Python (Openseespy).

In tcl the following line of code can be written:

eleLoad -ele $eleID -type -beamThermal -source BeamTemp.txt

In python the equivalent would be:

op.eleLoad('-ele', beamTag, '-type', '-beamThermal', ....)

where the dots indice some way of getting the temperature data from the text file.

I am not sure what the python equivalent would be to reading variables from a text file in the same way tcl would?

Upvotes: 1

Views: 140

Answers (0)

Related Questions