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 LinearSolve.jl for the FODEMatrixDiscrete methods #54

Open
ErikQQY opened this issue Aug 1, 2022 · 2 comments
Open

Use LinearSolve.jl for the FODEMatrixDiscrete methods #54

ErikQQY opened this issue Aug 1, 2022 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ErikQQY
Copy link
Member

ErikQQY commented Aug 1, 2022

After the discretization, the linear fractional differential equation is transformed to a linear problem:
$$Au=b$$
The current solver is the default solver in Julia, we can use the SciML LinearSolve.jl:
https://github.com/SciML/LinearSolve.jl

@ErikQQY ErikQQY added enhancement New feature or request help wanted Extra attention is needed labels Aug 1, 2022
@khaledharizb
Copy link

khaledharizb commented Jul 25, 2023

Hi @ErikQQY
I found a problem in the FODEMatrixDiscrete() solver for solving Fractional differential equations. For which I need to solve the Bagley-Torvik equation where the right hand side defined by f(t) = 8 * (t<=1). However, it works by Matlab

h=5e-2
f(t) =  8 * (t<=1);
prob = MultiTermsFODEProblem([1, 1 , 1], [2, 3/2 , 0],  f , [0; 0], (0, 30))
sol = solve(prob, h, FODEMatrixDiscrete())
plot(sol)
dddddd

@ErikQQY
Copy link
Member Author

ErikQQY commented Jul 26, 2023

Hello there! Sorry for the late response!

You can try the PIEX method for the multiple terms FODE problems:

h=5e-2
f(t, y) =  8 * (t<=1);
prob = MultiTermsFODEProblem([1, 1 , 1], [2, 3/2 , 0],  f , [0; 0], (0, 30))
sol = solve(prob, h, PIEX())
plot(sol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants