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

Transform dependent distribution #412

Open
hamzabuw opened this issue May 14, 2023 · 1 comment
Open

Transform dependent distribution #412

hamzabuw opened this issue May 14, 2023 · 1 comment
Labels

Comments

@hamzabuw
Copy link

Hi,

I am trying to implement intrusive Galerkin for Arrhenius equation with dependent kinetic variables.
I see that in the docs the transform() function is used on samples obtained from independent distribution_r.

Since in intrusive Galerkin, I am not generating samples but solving the reformulated equation of systems, how can I transform my distribution from dependent to independent? Or is this unreasonable?
To my knowledge, the reformulated system of equations would stay the same, but only the polynomial generation and statistical moments have to generated by a transformed independent distribution.

So far using the same function transform() for a distribution gives an error:
ValueError: setting an array element with a sequence. The requested array would exceed the maximum number of dimension of 32.

Thank you in advance.

Best regards,
Hamza

@jonathf
Copy link
Owner

jonathf commented May 18, 2023

That is a hard topic. Transforming from dependent to independent is possible in many cases, but assuming that transformation created, your equation complexity is likely going to be too complicated to handle using intrusive Galerkin. At the very least, you can not use Chaospy to help you with the reformulation.

As for the specific error, you mind posting you operating system, and the version of Python, Chaospy and Numpoly? Also post the full traceback so I know what part of the code is causing it.

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