필터 지우기
필터 지우기

Solve two differential equations simultaneously

조회 수: 1 (최근 30일)
J Krause
J Krause 2017년 11월 27일
편집: Torsten 2017년 11월 28일
I need to design a controller for and simulate a pneumatic control system. Specifically I need to simulate these system equations and eventually design my own controller.
Since the position equations (x) are a function of the time derivative of the pressure (Pdot) and vice versa, what is the best way of simulating this in Matlab? I have solved differential equations before using ode45, but nothing like this.
Thanks for any help.
To clarify, P1 and P2 pertain to the pressures on each side of a pneumatic actuator. X is the displacement variable for the actuator. m_dot1 and m_dot2 are the mass flow rates into each side of the pneumatic actuator from the control valve.
Cited paper: folk.ntnu.no/skoge/prost/proceedings/acc04/Papers/0905_FrM16.4.pdf
  댓글 수: 3
J Krause
J Krause 2017년 11월 28일
That part I understand.
I am unsure of the best way to interface the (P)dot (pressure) equations with the (v_p)dot (position) equation, since they depend on each other. The volumes (V1 and V2) are dependent on x_p. Where x_p = v_p.
Torsten
Torsten 2017년 11월 28일
편집: Torsten 2017년 11월 28일
I don't understand your problem.
If you insert v_p for (x_p)_dot in the pressure equations, the 4 ODEs are explicit in y(1)=x_p, y(2)=v_p, y(3)=P1 and y(4)=P2.
So they are easily set up for ODE45 as
fun=@(t,y)[y(2);1/M*(-b*y(2)+A*y(3)-A*y(4)-F1-F2);gamma*R*T/V1(y(1))*m1dot-alpha*gamma*y(3)*A/V1(y(1))*y(2);-gamma*R*T/V2(y(1))*m2dot+alpha*gamma*y(4)*A/V2(y(1))*y(2)];
Best wishes
Torsten.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Engines & Motors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by