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

Use Chaospy with external model #440

Open
puck147 opened this issue Jan 7, 2025 · 1 comment
Open

Use Chaospy with external model #440

puck147 opened this issue Jan 7, 2025 · 1 comment
Labels

Comments

@puck147
Copy link

puck147 commented Jan 7, 2025

Hi,

I want to perform simple uncertainty quantification using PCE on a finite element model, so not a model in python. Is there a way to just give the inputs and outputs and then perform PCE? I only have two parameters, so it would look something like:

samples = [[1.1, 0.950], [1.5, 1.323], [2.1, 2.235], [1.3, 4.307], ...]
output = [5, 2, 4, 6, ...]

In the online tutorial I could not find an answer to this.

Thanks in advance!

@jonathf
Copy link
Owner

jonathf commented Jan 7, 2025

PCE assumes that the samples comes from a probability distribution. Irrespective of technique, it is needed for e.g. polynomial generation.

Assuming you have that, you can follow the quick tutorial and just use your own samples instead of generating them and evaluations = outputs.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants