Error with defining seismic motion

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
yingying
Posts: 12
Joined: Sun Oct 15, 2017 1:01 am
Location: university of Bath

Error with defining seismic motion

Post by yingying »

I am trying to define a seismic motion in my model using the following input:

INPUT
set accelFile "EQ2accel.csv"
set cFactor 1
set accelSeries "Series -dt $dT -filePath $accelFile -factor $cFactor"
pattern UniformExcitation 2 1 -accel $accelSeries

However when I run the model in OpenSees, I get the following:

OUTPUT
OpenSees > set accelFile "EQ2accel.csv"
EQ2accel.csv
OpenSees > set cFactor 1
1
OpenSees >
OpenSees > set accelSeries "Series -dt $dT -filePath $accelFile -factor $cFactor"
Series -dt 0.02 -filePath EQ2accel.csv -factor 1
OpenSees >
OpenSees > pattern UniformExcitation 2 1 -accel $accelSeries
expected integer but got "-dt"

Does this mean the analysis is not reading my timesteps correctly? How can I fix this?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Error with defining seismic motion

Post by fmk »

you are trying to use a deprecated method and failing badly. I won't show you how to fix it but will instead point you to the new approach

timeSeries Path 1 -filePath $accelFile -dt $dT -factor $cFactor
pattern UniformExcitation 2 1 -accel 1
Post Reply