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

Factor is exactly singular #2

Open
johnaparker opened this issue May 22, 2020 · 0 comments
Open

Factor is exactly singular #2

johnaparker opened this issue May 22, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@johnaparker
Copy link
Owner

Sometimes, when the parameters are just right, the matrix is exactly singular and the steady-state PDF cannot be solved for. Is there a way to ensure the matrix is never singular? In the below case, the error occurs, but if S = 100.0001*nm there is no error.

example case

import numpy as np
from fplanck import fokker_planck, boundary

nm = 1e-9
viscosity = 8e-4
radius = 50*nm
S = 100*nm

def drag(x):
    return 6*np.pi*viscosity*radius*(1 + np.abs(x)/S)

sim = fokker_planck(temperature=300, drag=drag, extent=200*nm,
            resolution=5*nm, boundary=boundary.periodic)

steady = sim.steady_state()
@johnaparker johnaparker added the bug Something isn't working label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant