I really need you help especially for those who have already
experienced work with Newton-Raphson Method in Matlab/simulink...
I need to use the method to Non-linear equation of motion
coded in S-functions...and I don't know how to make a start :(
Any sort of help will be much appreciated.
Kindly regards,
Mimi
Just a small detail that I am using it for the full Nonlinear
equations of motion for an Aircraft.
waiting for you r help:)
Meriem
By "full nonlinear equations of motion", do you mean the Navier Stokes
equations?
And you expect to be able to solve them in Matlab using Newton Raphson?
Wow...............
That's an ambitious project.
I hope you've got a big team, lots of research funds, and lots of time.
I empathise with you. I know how to use Newton Raphson, but I wouldn't
know where to start on such a project either.
Thanks very much for the reply BUT there is a misunderstanding:
> By "full nonlinear equations of motion", do you mean the Navier
Stokes equations?
Ohh, NO NO, It is just Aircraft Equation of Motions (the known 12
Non-linear equations...)
I am expected to do an inversion numerically using Newton-Raphson
Method ...
But still an ambitious project for me:)
You said:
> I know how to use Newton Raphson....I would be grateful if you
could help as I REALLY DO NOT KNOW HOW to make a start:(
Thanks again, and I look forward to hearing from you.
Regards,
Mimi
which I have to make as soon as Possible.
You will need to code each of these 144 equations in Matlab.
Once you've done this, get back to us. Most of the work is done. Now
it's just a matter of setting up the numerical scheme.
Thanks for the reply:
Yes tehy are not PDEs...
> f(x1,x2,x3,x4,....,x12)
> Now you must differentiate each of these with respect to each of
the 12 variables to produce 144 equations (hopefully, most of these
will be zero) and form a 12x12 matrix of equations.
differentiate them Numerically?...how? sorii I am quite a beginner!
> You will need to code each of these 144 equations in Matlab.
you mean M-file...or S-function...or what exactly?
Hear from you soon,
Mimi
Where are you stuck?
Do you know how to differentiate?
eg if one of the equations is:
f1=1 + ax + bx^2 + cy + dy^2 + exy
then the equations we're looking for are:
df1dx=a + 2bx + ey
df1dy=c + 2dy +ex
and all other 10 equations df1dz, etc, etc are zero.
Now, you must repeat that exercise on all 11 remaining equations, f2 to
f12.
You need to end up with 144 equations.
Do u have an example to look at while working...
How can I implement it numerically in a computer...say and M-file for
example...as obviously I would not think I should do 144....
Hear from you sooner.
thx agaian :)
What is wrong with the example I gave you?
You are the one who wants to use Newton Raphson to solve 12 nonlinear
equations with 12 unknowns.
If you are not prepared to sit down with a pencil and a piece of paper
and write out the 144 equations, as I've suggested, then you cannot
solve the problem. End of story.
You cannot implement it "numerically in a computer" until you have done
the algebra.
Maybe I can Help. Tray look in the help of matlab toolbox symbolic math. There are some codes for differentiate equation symbolically. Try jacobian.
Good luck
Please read up on Newton's method so you will understand what you are being
told. Finding the Jacobian (matrix of derivatives) of 12 functions of 12
variables is not as hard as it might sound, especially if you have the
Symbolic Toolbox. If you don't have to use Newton's method, there are
probably other approaches, but you said that you had to use Newton's method.