Damped Oscillator Model#
import numpy as np
import matplotlib.pyplot as plt
import uqtestfuns as uqtf
The damped oscillator model is a seven-dimensional scalar-valued function. The model was first proposed in [IK85] and used in the context of reliability analysis in [DKDS91, Dub11].
Note
The reliability analysis variant differs from this base model. Used in the context of reliability analysis, the model also includes additional parameters of a capacity factor and load such that the performance function can be computed. This base model only computes the relative displacement of the spring.
Test function instance#
To create a default instance of the damped oscillator model:
my_testfun = uqtf.DampedOscillator()
Check if it has been correctly instantiated:
print(my_testfun)
Function ID : DampedOscillator
Input Dimension : 7 (fixed)
Output Dimension : 1
Parameterized : False
Description : Damped oscillator model from Igusa and Der Kiureghian (1985)
Applications : metamodeling, sensitivity
Description#
The damped oscillator model is based on a two degree-of-freedom primary-secondary mechanical system characterized by two masses, two springs, and the corresponding damping ratios. Originally, the model computes the mean-square relative displacement of the secondary spring under a white noise base acceleration using the following analytical formula[1]:
where \(\boldsymbol{x} = \{ M_p, M_s, K_p, K_s, \zeta_p, \zeta_s, S_0 \}\) is the seven-dimensional vector of input variables further defined below.
Note
In UQTestFuns, this original output is square-rooted to get the relative displacement
Probabilistic input#
Based on [DKDS91], the probabilistic input model for the damped oscillator model consists of seven independent random variables with marginal distributions shown in the table below.
Function ID : DampedOscillator
Input ID : DerKiureghian1991
Input Dimension : 7
Description : Probabilistic input model for the Damped Oscillator model
from Der Kiureghian and De Stefano (1991).
Marginals :
No. Name Distribution Parameters Description
----- ------ -------------- ------------------------- -----------------------------
1 Mp lognormal [0.40048994 0.09975135] Primary mass
2 Ms lognormal [-4.61014535 0.09975135] Secondary mass
3 Kp lognormal [-0.01961036 0.1980422 ] Primary spring stiffness
4 Ks lognormal [-4.62478054 0.1980422 ] Secondary spring stiffness
5 Zeta_p lognormal [-3.06994228 0.38525317] Primary damping ratio
6 Zeta_s lognormal [-4.02359478 0.47238073] Secondary damping ratio
7 S0 lognormal [4.60019502 0.09975135] White noise base acceleration
Copulas : Independence
Reference results#
This section provides several reference results of typical UQ analyses involving the test function.
Sample histogram#
Shown below is the histogram of the output based on \(100'000\) random points:
Moments estimation#
Shown below is the convergence of a direct Monte-Carlo estimation of the output mean and variance with increasing sample sizes.
The tabulated results for each sample size is shown below.
| Sample size | Mean | Mean error | Variance | Variance error | Remark |
|---|---|---|---|---|---|
| 10 | 2.3153e+02 | 5.0438e+01 | 2.5440e+04 | 1.1992e+04 | Monte-Carlo |
| 100 | 2.0262e+02 | 1.2047e+01 | 1.4512e+04 | 2.0627e+03 | Monte-Carlo |
| 1000 | 1.8794e+02 | 3.9283e+00 | 1.5431e+04 | 6.9045e+02 | Monte-Carlo |
| 10000 | 1.8826e+02 | 1.2126e+00 | 1.4704e+04 | 2.0796e+02 | Monte-Carlo |
| 100000 | 1.8787e+02 | 3.8212e-01 | 1.4601e+04 | 6.5300e+01 | Monte-Carlo |
| 1000000 | 1.8854e+02 | 1.2098e-01 | 1.4637e+04 | 2.0699e+01 | Monte-Carlo |
| 10000000 | 1.8845e+02 | 3.8248e-02 | 1.4629e+04 | 6.5422e+00 | Monte-Carlo |
References#
Takeru Igusa and Armen Der Kiureghian. Dynamic characterization of two-degree-of-freedom equipment-structure systems. Journal of Engineering Mechanics, 111(1):1–19, 1985. doi:10.1061/(asce)0733-9399(1985)111:1(1).
Armen Der Kiureghian and Mario De Stefano. Efficient algorithm for second-order reliability analysis. Journal of Engineering Mechanics, 117(12):2904–2923, 1991. doi:10.1061/(asce)0733-9399(1991)117:12(2904).