声明机械旋转域
以下名为 rotational.ssc 的文件声明了一个机械旋转域,以角速度为势变量,以转矩为流变量。
domain rotational
% Define the mechanical rotational domain
% in terms of across and through variables
variables
w = { 1 , 'rad/s' }; % angular velocity
end
variables(Balancing = true)
t = { 1 , 'N*m' }; % torque
end
end
注意
此域声明对应于 Simscape™ Foundation 机械旋转域。有关 Foundation 域的完整列表,请参阅Foundation 域类型和目录结构。
在组件中,与此域关联的每个节点都具有以下特征:
携带一个可测量变量
w(角速度)保持变量
t(转矩)不变
有关详细信息,请参阅Define Relationship Between Component Variables and Nodes。