Modelica示例-机构接口

Modelica的机构库( Mechanics)包含三个子库:

1) MultiBody,主要用于对三维机构的建模;
Library to model 3-dimensional mechanical systems
2) Rotational,主要用于对一维旋转机构的建模;
"Library to model 1-dimensional, rotational mechanical systems"
3) Translational,主要用于对一维平移机构的建模;
"Library to model 1-dimensional, translational mechanical systems"


MultiBody

在MulitiBody库中,模块之间的接口为Frame_a和Frame_b,这两个接口完全一致,只是接口填充颜色不同,均继承于Frame。

Frame接口参数如下:

connector Frame
  "Coordinate system fixed to the component with one cut-force and cut-torque (no icon)"
 
  SI.Position r_0[3]
    "Position vector from world frame to the connector frame origin, resolved in world frame";
  Frames.Orientation R   
 "Orientation object to rotate the world frame into the connector frame";
  flow SI.Force f[3] "Cut-force resolved in connector frame";
  flow SI.Torque t[3] "Cut-torque resolved in connector frame";
end Frame;

从程序中可以看出,接口一共有四个参数,

1)坐标系原点在世界坐标系中的位置;

2)把世界坐标系旋转至接口坐标系的旋转矩阵;

3)局部坐标系中接口处的力;

4)局部坐标系中接口处的力矩;

Rotational

在Rotatianal库中,模块之间的接口为Flange_a和Flange_b,这两个接口完全一致,只是接口填充颜色不同。

接口内容均为:
connector Flange_a
  "One-dimensional rotational flange of a shaft (filled circle icon)"
  SI.Angle phi "Absolute rotation angle of flange";
  flow SI.Torque tau "Cut torque in the flange";
end Flange_a;

从程序中可以看出,接口只有两个参数:

1)接口法兰旋转的角度;

2)接口法兰的扭矩;

Translational

在Translational库中,模块之间的接口为Flange_a和Flange_b,这两个接口完全一致,只是接口填充颜色不同。


接口内容均为:

connector Flange_a
  "(left) 1D translational flange (flange axis directed INTO cut plane, e. g. from left to right)"
 
  SI.Position s "Absolute position of flange";
  flow SI.Force f "Cut force directed into flange";
end Flange_a;

从程序中可以看出,接口只有两个参数:

1)移动副的位置;

2)移动副的受力;

另外,可以注意到一点,Rotational库和Translational库的结构基本一致。

整体目录:


接口目录:


  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值