MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getFactorSensitivity

Method getFactorSensitivity

SRC/domain/pattern/TrigSeries.cpp:235–251  ·  view source on GitHub ↗

AddingSensitivity:BEGIN //////////////////////////////////////////

Source from the content-addressed store, hash-verified

233
234// AddingSensitivity:BEGIN //////////////////////////////////////////
235double
236TrigSeries::getFactorSensitivity(double pseudoTime)
237{
238 static double twopi = 4*asin(1.0);
239
240 if (pseudoTime >= tStart && pseudoTime <= tFinish) {
241 double phi = phaseShift - period/twopi*asin(zeroShift/cFactor);
242 if (parameterID == 1)
243 return sin(twopi*(pseudoTime-tStart)/period + phi);
244 if (parameterID == 2)
245 return cFactor*cos(twopi*(pseudoTime-tStart)/period + phi)*(-twopi*(pseudoTime-tStart)/(period*period));
246
247 return 0.0;
248 }
249
250 return 0.0;
251}
252
253int
254TrigSeries::setParameter(const char **argv, int argc, Parameter &param)

Callers 2

applyLoadSensitivityMethod · 0.45
getAccelSensitivityMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected