NDSolve Mathematica: Solve Diff. Eq. Using Solutions of Another

  • Context: Graduate 
  • Thread starter Thread starter zeebo17
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

This discussion addresses the challenge of solving a differential equation in Mathematica using solutions from another differential equation. The user attempts to define a function G(x) that incorporates the interpolating function from a prior NDSolve result, specifically using the syntax Evaluate[f[x] /. Sol1]. However, they encounter the error "NDSolve::ndfdmc: Computed derivatives do not have dimensionality consistent with the initial conditions." The version of Mathematica in use is 6.0.

PREREQUISITES
  • Familiarity with Mathematica 6.0
  • Understanding of numerical differential equations
  • Knowledge of the NDSolve function in Mathematica
  • Experience with interpolating functions in Mathematica
NEXT STEPS
  • Investigate the proper use of Evaluate within NDSolve in Mathematica
  • Learn about dimensionality requirements for initial conditions in NDSolve
  • Explore the construction of functions using interpolating functions in Mathematica
  • Review error handling and debugging techniques in Mathematica for differential equations
USEFUL FOR

Mathematica users, mathematicians, and engineers working with numerical differential equations who need to integrate solutions from multiple equations.

zeebo17
Messages
40
Reaction score
0
Is it possible to numerically solve a differential equation (in Mathematica) that is composed of the solutions to another numerical differential equation such as

Sol1=NDSolve[f'[x]= f[x]...]
Sol2=NDSolve[g'[x]= G( g[x], f[x] )...]

where G(x) is the a function of the interpolating function produced from the previous ODE?

I have tried writing the G(x) as by replacing all the f[x]'s with Evaluate[f[x] /. Sol1] but I get the error
"NDSolve::ndfdmc: Computed derivatives do not have dimensionality \consistent with the initial conditions."

Any suggestions?
Thanks!
 
Physics news on Phys.org
What version of Mathematica are you using?

Thanks
Matt
 
Version 6.0
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 6 ·
Replies
6
Views
12K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 52 ·
2
Replies
52
Views
9K