How to convert PDE into matrix form

조회 수: 8 (최근 30일)
Sandeep Nair
Sandeep Nair 2022년 11월 25일
편집: Torsten 2022년 11월 28일
i have a partial differential equation like
m1*diff(x1(t), t, t) + c1*x1d + k1*x1 + (c2*(2*x1d - 2*x2d))/2 + (k2*(2*x1 - 2*x2))/2 =0
m2*diff(x2(t), t, t) - (c2*(2*x1d - 2*x2d))/2 - (k2*(2*x1 - 2*x2))/2 = 0
and i want to bring this form into
matrix form of x1 ,how is it possible to do in matlab
  댓글 수: 2
Torsten
Torsten 2022년 11월 25일
This is not a partial differential equation, but two second-order ordinary differential equation for functions x1 and x2.
What do you mean by "matrix form of x1" ?
Sandeep Nair
Sandeep Nair 2022년 11월 25일
Please find the form in which i want,i have attached the fig

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2022년 11월 25일
편집: Torsten 2022년 11월 25일
Can you write this in matrix form ?
m1*diff(x1(t), t, t) + 0*m2*diff(x2(t), t, t) + (c1 + c2) * x1d - c2 * x2d + (k1 + k2) * x1 - k2 * x2 = 0
0*diff(x1(t), t, t) + m2*m2*diff(x2(t), t, t) - c2 * x1d + c2 * x2d - k2 * x1 + k2 * x2 = 0
This is something you must do by yourself. MATLAB can't help you with this (or only with a lot of effort in advance from your side).
  댓글 수: 2
Sandeep Nair
Sandeep Nair 2022년 11월 28일
Hi,am not able to write in this form hence wanted help from this forum on how to do it
Torsten
Torsten 2022년 11월 28일
편집: Torsten 2022년 11월 28일
But exactly this system is already written in matrix form in your attached "Matrixformulation.png" with P1(t) and P2(t) being 0. So what exactly is your question ?
I already wrote that MATLAB has no tool to convert written equations in matrix form - that's a task you have to do by yourself.
E.g. if you have the 2 equations
a1*x + b1*y = c1
a2*x + b2*y = c2
you can write them in matrix form as
U*z = w
with
U = [a1 b1 ; a2 b2], z = [x;y], w = [c1;c2]

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Boundary Conditions에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by