ODE solution method and external packages

  • Thread starter Ronankeating
  • Start date
  • Tags
    Method Ode
In summary, the conversation discusses the use of external packages, specifically LAPack and EISPack, for solving ODE equations in engineering. The problem at hand is a second-order equation, with mass, damping, stiffness, and force matrices as variables. Suggestions are mentioned for using linear algebra packages to solve the matrix equations and decouple the equation into a set of first-order linear differential equations. The use of eigenvalues is also mentioned, but there is uncertainty about how to proceed in implementing this method with LAPack. The help of the group is requested for clarification and guidance.
  • #1
Ronankeating
63
0
Dear All,


What type of packages exists out there to the solution of the ODE equations in engineering especially for the M*X''+C*X'+K*X = F ; 2nd order equation, where none of the variables denoted as M, C, K and F are function of the time and are mass, damping, stiffness and force matrices, repsectively ?

Bear in mind that I've all the fore-mentioned entities as matrix in hand, so how am I supposed to proceede further to find the solution of the given equation. Any pseudo example will be appreciated ?

Any suggestion on what type of external packages can I use for the solution techniques, preferably in Fortran?

Regards,
 
Mathematics news on Phys.org
  • #2
Sounds to me like you really need a "linear algebra" package such as "LAPack"
http://www.netlib.org/lapack/

With the conditions you give, that DE problem reduces to solving the matrix equations
[tex]MA^2+ CA+ K= 0[/tex]
for A and
[tex]MP^2+ CP+ K= F[/tex]
For P to get [itex]X(t)= C_1e^{A_1t}+ C_2e^{-A_2t}+ P[/itex]
where [itex]A_1[/itex] and [itex]A_2[/itex] are the solutions to the first equation and P is either of the solutions to the second equation.
 
  • #3
The books also mention that we can use the eigenvalues as a part of the solution techniques, but I don't know where it's been introduced in that overall process, partially or as whole process relies simply on eigenvalues.

I wonder, is that all solution process for ODEs is suitable for the matrices, as a result I'll have the nxn (K, C, M) and nx1 (F) matrices to start with.

Best Regards,
 
  • #4
In addition to LINPACK, there is also an EISPACK, which deals with eigenvalues.
 
  • #5
Thank you all for replying,

In addition to LINPACK, there is also an EISPACK, which deals with eigenvalues.
As I see one way or the other I always end up in the LAPACK library (eispack,arpack, blas, etc..). It seems that this package is robust in every way which can solve most ODEs and PDEs in maths.
Please confirm if can I achieve the solution of the equation M*X''+C*X'+K*X = F simply by using and calling the Lapack routines? If possible, in a step by step way?


First of all I'd like to mention the name of the problem in engineering called Response of MDOF in engineering, regarding the book(DIFFERENTIAL EQUATIONS FOR ENGINEERS) I'm reading there is mainly 2 methods to solve that problem. But please bear in mind I didn't fully figured out whether those are the methods and how to apply them correctly, so I write to get your confirmation and review.

1.)Laplace transformation method, which multiplies both side of equation with some coefficient and solves the problem. I still didn't get that fully,so any help with Lapack step by step implementation will be appreciated?
2.)Another method is, which mentions to use eigenvalues and decouple the equation into 1st order linear differential equation set is a preliminary step
[itex]\Phi^T M \Phi*X''[/itex]+[itex]\Phi^T C \Phi*X'[/itex]+[itex]\Phi^T K \Phi*X[/itex]=[itex]\Phi^T F[/itex]

But I'm unsure here whether that [itex]\Phi[/itex] corresponds to obtained eigenvalues or vectors?? from undamped system solution or from forced damped solution (homogeneous solution). As a result I know the method in Lapack to solve the eigen value problems( DGGEV subroutine call ). I think that I can write the equation in that form but don't know how to proceed further, what comes as next step?

Your help will be appreciated,
 
  • #6
Dear All,

Your help really will be appreciated.
 

Related to ODE solution method and external packages

What is an ODE solution method?

An ODE (ordinary differential equation) solution method is a mathematical technique used to find the solution to a differential equation. It involves transforming the equation into a form that can be solved using algebraic methods.

What are the advantages of using external packages for ODE solutions?

External packages for ODE solutions offer a variety of advantages, such as providing a user-friendly interface, offering a wide range of pre-implemented methods, and allowing for efficient and accurate solutions to complex equations.

What is the most commonly used external package for ODE solutions?

The most commonly used external package for ODE solutions is the scipy.integrate module in Python. It offers a variety of methods for solving ODEs, including the popular odeint method.

Are there any limitations to using external packages for ODE solutions?

While external packages for ODE solutions offer many benefits, there are some limitations to consider. These include potential compatibility issues with different programming languages and the need for a solid understanding of the underlying mathematical concepts.

Can ODE solution methods be applied to real-world problems?

Yes, ODE solution methods can be applied to a wide range of real-world problems in fields such as physics, biology, and engineering. They are particularly useful for modeling dynamic systems, such as population growth or chemical reactions.

Similar threads

Replies
6
Views
1K
Replies
36
Views
6K
  • Calculus and Beyond Homework Help
Replies
3
Views
618
Replies
2
Views
2K
  • Differential Equations
Replies
1
Views
1K
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • General Math
Replies
5
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Back
Top