Comments (5)
The issue is more that the model is a bit nonsense and you're not testing what the model is actually saying. You're testing that the value in the middle has a value, i.e.:
function bc!(residual, u, p, t)
residual[1] = u(0.75)[1] + pi / 2
residual[2] = u[end][1] - pi / 2
end
But that's not the model. The model is that the middle of the solve array is pi / 2
. But the solver time steps are adaptive, so there's no guarantee that u(0.75) == u[end รท 2]
, nor should one ever expect that to be true. We should just change this example to use interpolation.
from boundaryvaluediffeq.jl.
The issue is more that the model is a bit nonsense and you're not testing what the model is actually saying.
Yeah, we should not expect the value in the middle to be the same since the adaptive time steppings, but the two solutions from different solvers are quite different, I think there is something wrong about this, especially the shooting method.
from boundaryvaluediffeq.jl.
There's nothing wrong about the solutions. The bc!
is just not a good definition. Change the bc!
.
from boundaryvaluediffeq.jl.
Oh I see, I will propose a better example for the detailed usage of BVP solvers.
We should just change this example to use interpolation.
I remembered OrdinaryDiffEq.jl can use interpolations, is there some text we can refer to add this feature to MIRK solvers?
from boundaryvaluediffeq.jl.
No, this is a good example, it's just that every multi-point example should use interpolation.
is there some text we can refer to add this feature to MIRK solvers?
The MIRK solvers already define the interpolation for the residual calculation.
from boundaryvaluediffeq.jl.
Related Issues (20)
- Continuous Benchmarking HOT 1
- Free-Final-Time TPBVP/generalized BVP
- Solution interpolation in BC with MIRK solver not working? HOT 2
- Invalid Bandind error / Manifolds.jl HOT 11
- MIRK methods failed on swirling flow III when viscosity parameter is small
- Sensitivity Analysis of BVProblems HOT 3
- Pre-compilation failure HOT 1
- `TrustRegion(; radius_update_scheme = RadiusUpdateSchemes.Bastin)` doesn't work with `Shooting`
- Solving via Continuation: Interpolation error when using previous solution as initial guess HOT 3
- Example from the docs doesn't run HOT 1
- Manifolds.jl / `EmbeddedTorus` is failing again HOT 2
- MIRK4 adaptive time steps HOT 7
- Documentation
- Support Non-Vector Inputs for Multiple Shooting
- VJP Computation (for NonlinearSolve) is extremely inefficient
- Precompilation triggered at each include
- Indexing in boundary conditions HOT 1
- Solving via Continuation: Perfomance in a loop HOT 1
- Shooting methods fail on flow in a channel tests HOT 2
- MIRK methods don't support Static Arrays HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boundaryvaluediffeq.jl.