Import pressures/temperatures (external data) automatically using scripting

Erik Kostson
Erik Kostson Member, Moderator, Employee Posts: 276
50 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭
edited August 2 in Structures

Say we have several csv files (for different named selections), with each file containing 3 columns with X, Y, Z coordinates and the remaining columns corresponding to each time step, how can we using mechanical or workbench scripting automate the set up of first the external data, and then the imported loads inside mechanical (SYS / System A say)?

Comments

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    edited July 31

    Below is one way of doing this (wbjn - run via WB/File/Scripting/Run Script File). The file can be easily changed to account for other imported loads. The attached files import Pressures (readexternaldata.wbjn) and Temperatures (readexternaldatatemp)).

  • Erik Kostson
    Erik Kostson Member, Moderator, Employee Posts: 276
    50 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭

    Hi
    @AKD-Scripting-Team

    The above works ok if we have less than 200 columns in the csv files - if there are more than 400 columns, then it takes to much time to set the imported load data inside mechanical (even with Transaction). I have seen that there have been some mentions of this before, so wanted to check if you have seen this and if there are any workarounds (except of reducing number of columns in csv files).

    Thank you.
    Erik