Seismostruct API

03-Analytical/modelling capabilities
g_swarup
Posts: 3
Joined: 08 Aug 2016, 08:25

Seismostruct API

Post by g_swarup »

Hi,

Is there any API (Application Programming Interface) facility in Seismostruct? I have to run more than 5000 analyses with random input parameters. Is it possible to run Seismostruct from Excel or matlab with separate input parameters each time and get the output back in Excel or matlab?
User avatar
z.gronti
Posts: 824
Joined: 16 Oct 2013, 08:14

Re: Seismostruct API

Post by z.gronti »

Dear g_swarup,

The SeismoBatch facility is available in SeismoStruct in order to facilitate the automatic execution of numerous analyses in sequence. Also, the option of simultaneously executing multiple analyses has been introduced in SeismoBatch 2016 in order to take full advantage of multi-core processors.
Zoi Gronti
Seismosoft Srl.
g_swarup
Posts: 3
Joined: 08 Aug 2016, 08:25

Re: Seismostruct API

Post by g_swarup »

O.K, I'll check that. Thanks a lot for the quick reply.
g_swarup
Posts: 3
Joined: 08 Aug 2016, 08:25

Re: Seismostruct API

Post by g_swarup »

Dear z.gronti,

I've gone through the SeismoBatch facility in SeismoStruct. It can run numerous analyses sequentially and give the output in desired format. However, it seems that for input I have to create several .spf files and put them in the same directory from where SeismoStruct will call them. My problem is, in simulation based fragility, say if I have 5000 samples of random input parameters (e.g. E of steel and concrete. yield strength, damping etc) I have to input them 5000 times in SeismoStruct and save the .spf files in the same directory. In Monte Carlo Simulation, the no. of random samples may be as big as 30000. If I attempt to input them manually in SeismoStruct it'll be a huge time consuming job. Also the .spf file cannot be edited in text editors like Notepad or Wordpad. Is there any way such that SeismoStruct will read the input in loop from an external file (.txt or .xlsx) and run the analysis or I can call SeismoStruct.exe from an external application (e.g. Excel VBA, Matlab, c++, Python etc.) ? Another alternative will be if I can create or edit .spf file from those external programming languages or can open in any text editor. Is any of the options available? I found SeismoStruct very useful especially in my area of research (Performance Based Earthquake Engineering) but unfortunately stuck at the above mentioned problem. Please help.
User avatar
seismosoft
Posts: 1184
Joined: 06 Jul 2007, 04:55

Re: Seismostruct API

Post by seismosoft »

Dear g_swarup,

We are already aware of the need for the automatic derivation of hundereds or thousands of SPF files.
We are currently working on such facility, which will be GUI-based and will nto require the writing of scripts and programming skills,and it will be available in 2-3 months time.

Seismosoft Support
lmpmatos
Posts: 1
Joined: 13 Jul 2017, 10:50

Re: Seismostruct API

Post by lmpmatos »

Good morning,

Is the tool referred in the copied post above already available in the SeismoStruct 2016 version?

"Dear g_swarup,

We are already aware of the need for the automatic derivation of hundereds or thousands of SPF files.
We are currently working on such facility, which will be GUI-based and will nto require the writing of scripts and programming skills,and it will be available in 2-3 months time.

Seismosoft Support"


Thanks in advance,
Luís M P Matos
User avatar
seismosoft
Posts: 1184
Joined: 06 Jul 2007, 04:55

Re: Seismostruct API

Post by seismosoft »

Hello lmpmatos,
Initially there was a plan to publish the facility as an independent application. However, this was revised and the facility will be published with the upcoming SeismoStruct 2018 release next Autumn. Until then, unfortunately the only way to derive spf files is by saving them from the SeismoStruct GUI.

Regards,
Seismosoft Support
saschapoho
Posts: 1
Joined: 24 Oct 2018, 14:26

Re: Seismostruct API

Post by saschapoho »

Hi,

is there a way to create a script input rather than using SPF File creator?
User avatar
seismosoft
Posts: 1184
Joined: 06 Jul 2007, 04:55

Re: Seismostruct API

Post by seismosoft »

Unfortunately not, because the SPF file is in binary format.
However, by copying and pasting the values that you want changed in Excel, you will be able to create a large number of custom files very quickly (much faster with respect to creating a script). These files can then be run with SeismoBatch
Seismosoft Support
MCortesc
Posts: 3
Joined: 29 Jun 2020, 15:38

Re: Seismostruct API

Post by MCortesc »

Good morning,

I've been following up this post, and I would like to know if there is available API tool in Seismostruct to create different inputs for time-history analysis and different parameter settings.

Matías Cortés-Camus
Post Reply

Return to “03-Analytical/modelling capabilities”