Fokker-Planck equation (SDE) with PyPDE? #383
ivankukuljan
started this conversation in
General
Replies: 1 comment
-
I'm not quite sure what error you're seeing. What do you get as a result and what do you expect? Moreover, it would be helpful to have a minimal, self-consistent example that we could use to recreate the problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear All,
I would like to use PyPDE to solve a 1D Fokker Planck equation:
for the general diffusion g and drift mu functions. The FP equation corresponds to the following stochastic process:

I would like to solve it with probability preserving boundary conditions:

where a and b are domain boundaries.
I've expanded the terms in the FP equation and tried implementing it in the package using the code below (for the moment using simple Dirichlet boundary conditions) however that doesn't seem to work. What am I doing wrong? What would be the best way to implement the FP equation? Also, from your documentation it's not really clear how dot and * are defined (are they a scalar product and an element-wise product?) and when to use each type of multiplication.
Kind regards,
Ivan
Beta Was this translation helpful? Give feedback.
All reactions