필터 지우기
필터 지우기

Simscape virtual node?

조회 수: 2 (최근 30일)
Mathew Thorne
Mathew Thorne 2016년 12월 15일
Hey,
I was wondering if any one knew if it was possible to assign some sort of virtual node. Or not a node per say, I dont want any connections to it. Just an, inbetween step. Here I have an example of what I mean.
Any help will be appreciated!
Regards
Mat
component Test nodes A = foundation.mechanical.rotational.rotational; % A: left B = foundation.mechanical.rotational.rotational; % B: right end
parameters
drag_1 = { 1, 'N*m' }; % Drag 1
drag_2 = { 1, 'N*m' }; % Drag 2
end
variables
t1 = { 0, 'N*m' }; % Through torque 1
t2 = { 0, 'N*m' }; % Through torque 2
w1 = { 0, 'rad/s' }; % Change in velocity 1
w2 = { 0, 'rad/s' }; % Change in velocity 2
C_t = { 0, 'N*m' }; % Terminal C torque
C_w = { 0, 'rad/s' }; % Terminal C velocity
end
branches
t1 : A.t -> C_t; % Assigning the 1st through torque
t2 : C_t -> B.t; % Assigning the 2nd through torque
end
equations
w1 == A.w - C_w
w2 == C_w - B.w
t1 == drag_1;
t2 == drag_2
end
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Brakes and Detents에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by