Filter löschen
Filter löschen

Simscape virtual node?

2 Ansichten (letzte 30 Tage)
Mathew Thorne
Mathew Thorne am 15 Dez. 2016
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

Antworten (0)

Kategorien

Mehr zu Brakes and Detents finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by