Prime Parametric Finite Element Modelling Using Text Files
- October 12, 2022
- 2 replies
- 2868 views
Hi All
This is my first post for help so bear with me.
I want to use Prime for what used to be fast and easy in Mathcad 15.
I have a work round but it is so slow so asking the forum if there is a better faster way in Prime.
Perhaps a future scriptable data file saving component?
First what was possible in Mathcad 15
Mathcad 15 had a data file export component.
This data file export component when you selected "Formatted Text" did four things
1) Text in double quotes ended up in text file with single quotes
2) Text in single quotes lost the quotes in the text file
3) Adjacent quotes "" to indicate no data did not appear in the text file.
4) Numbers stayed as numbers
In this way a very large text file could be generated from a Mathcad matrix quickly
Here is a simple example.
Primes current file output functions cannot duplicate this Mathcad 15 data components behavior.
Second how I got around the limitation.
I created a function that uses str2vec to create a giant column vector of ascii characters, but it is agonizingly slow.
For instance a Prime file with a matrix of 99514 rows x 8 columns with 4.5 million characters takes about half an hour in Prime to calculate and save the large column vector. The vector is saved by WRITEBIN function. Half an hour for hundreds of parametric files is a long time I am not looking forward to. Hence my call for help.
Can anyone speed up the function or suggest a faster method of creating the file in Prime.
This is what the finished finite element model looks like generated from a few parameters using Prime.
My aim is to save steel tonnage in portal frame buildings.

Thanks Terry


