Effacer les filtres
Effacer les filtres

Simscape virtual node?

1 vue (au cours des 30 derniers jours)
Mathew Thorne
Mathew Thorne le 15 Déc 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

Réponses (0)

Catégories

En savoir plus sur Brakes and Detents dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by