Support

Support Options

Submit a Support Ticket

 

Questions and Answers

Status: Accepting answers

0 Like

Jiazhen Leng

Call OpenSees inside a tcl file

I created a .tcl file for OpenSees, which uses exec several times to call OpenSees to run other .tcl files. This works fine with my PC using the OpenSees.exe. But in workspace, the main .tcl file will terminate when the first call of OpenSees ends. Could anyone help me out? Thanks a lot!

Report abuse

3 Responses

  1. 0 Like 0 Dislike

    Gregory P Rodgers

    Please share your workspace session with grodgers and I can look at this more closely.

    Reply Report abuse

    Please login to answer the question.

    1. 0 Like 0 Dislike

      Gregory P Rodgers

      I copied some of your files into a subdirectory called opensees and I made some changes to the copies. Instead of calling another instance of opensees from opensees with the exec command, I recommend you use the source command instead of the exec command. I also changed the basepath. I strongly recommend that you confine your work to a subdirectory of your HOME directory as I have done. To see the differences that I made use this command diff IDA_SW_1.tcl opensees/IDA_SW_1.tcl when I run these commands cd opensees opensees IDA_SW_1.tcl There appears to be a problem with an empty vector. I don’t understand your simulation enough to debug this. I hope this helps.

      Reply Report abuse

      Please login to answer the question.

      1. 0 Like 0 Dislike

        Gregory P Rodgers

        The formatting of my response was not preserved. So it is difficult to read. Sorry about that. Run this command to see the differences “diff IDA_SW_1.tcl openseees/IDA_SW_1.tcl”.

        Report abuse