Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The two d.o.f. primary/secondary damped oscillator problem is missing #69

Open
mbaudin47 opened this issue Jan 22, 2021 · 1 comment
Open
Labels
enhancement New feature or request new test case A benchmark test could be added to the library.

Comments

@mbaudin47
Copy link
Collaborator

mbaudin47 commented Jan 22, 2021

This problem is presented in: "Analyse de sensibilité fiabiliste avec prise en compte d’incertitudes sur le modèle probabiliste", Vincent Chabridon. Thèse. 2018, pp.91-92.

image

image

image

A shorter presentation is given in:
"Benchmark reliability problems – A selected list." Jean-Marc Bourinet (2019). https://www.gdr-mascotnum.fr/media/ra_examples.pdf

image

@mbaudin47
Copy link
Collaborator Author

Below is a draft of implementation.

#
def oscillator(x):
	mp, ms, kp, ks, xip, xis, S0 = x
	omega_p = np.sqrt(kp/mp)
	omega_s = np.sqrt(ks/ms)
	gamma = ms/mp
	omega_a = 0.5*(omega_p+omega_s)
	xi_a = 0.5*(xip+xis)
	theta = 1./omega_a*(omega_p-omega_s)
	F = \
		3*ks*np.sqrt(np.pi*S0/(4.*xis*omega_s**3)*
		xi_a*xis/(xip*xis*(4.*xi_a**2+theta**2)+gamma*xi_a**2)*
		(xip*omega_p**3+xis*omega_s**3)*omega_p/(4.*xi_a*omega_a**4))
	return [F]
dim = 7
f = PythonFunction(dim, 1, oscillator)
mean_list = [1.5, 0.01, 1., 0.01, 0.05, 0.02, 100.]
cov_list = [0.1, 0.1, 0.2, 0.2, 0.4, 0.5, 0.1]
myCollection = DistributionCollection(dim)
for i, (mu, cov) in enumerate(zip(mean_list, cov_list)):
    myCollection[i] = LogNormal(mu, mu*cov, 0.0, LogNormal.MUSIGMA)
distribution = ComposedDistribution(myCollection)
rv = RandomVector(distribution)

@mbaudin47 mbaudin47 added enhancement New feature or request new test case A benchmark test could be added to the library. labels Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new test case A benchmark test could be added to the library.
Projects
None yet
Development

No branches or pull requests

1 participant