bonjour merci infiniment duf,
voici le code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| component resistive torque < foundation.mechanical.rotational.branch
% Resistive torque
%models friction between machine and shaft Cr=f*w
%where f is friction coefficient and w rotationnal velocity
% Copyright 2005-2008 The MathWorks, Inc.
nodes
r=foundation.mechanical.rotational.rotational;%r:left
c=foundation.mechanical.rotational.rotational;%c:right
end
parameters
f = { 0,001, 'N*m/rad/s' }; % friction coefficient
end
variables
Cr={0,'N*m'};%torque across
w={0,'rad/s'};%rotationnal velocity through
end
function setup
if f <= 0
error('f must be greaterThan Zero');
end
across{Cr,r.Cr,c.Cr};%torque variable from node r to node c
through{w,r.w,c.w};%velocity variable from node r to node c
end
equations
Cr=f*w;
end
end |
je reçois le message avec ssc_build :
??? Failed to generate 'foundation_lib.mdl'
Caused by:
'foundation' is a MathWorks' provided MATLAB package. Building MathWorks' provided
libraries is not supported.
merci d'avance
Partager