码迷,mamicode.com
首页 > 其他好文 > 详细

User-Added Coordinate Systems in SimMechanics for unsupported Gear constraints

时间:2014-06-11 08:17:18      阅读:1800      评论:0      收藏:0      [点我收藏+]

标签:style   class   blog   http   color   com   

CAD Software Requirements

This CAD assembly can be opened in SolidWorks? 2007 and later versions.

Assembly and Exported XML File

In this assembly, two gear parts mesh with a gear ratio of 2:1. The two gear parts are constrained by a Gear mate in the SolidWorks? assembly. Because the SimMechanics? Link exporter does not support this constraint, exporting this assembly results in an XML file in which the gear constraint is replaced by a rigid connection between the two parts. You can define your own coordinate systems in order to easily recreate this constraint when you generate the SimMechanics? model.

To do this, each of the two gear parts has a user-defined coordinate system that will be exported to the XML file. Both these coordinate systems should have the same prefix (here, SMLINK_). In the "SimMechanics? Link Settings" menu in SolidWorks?, set the "Export Coordinate Systems" radio-button to "Export only CSs with this prefix" and enter "SMLINK_" in the edit field below the button. This ensures that both the coordinate systems labelled as "SMLINK_CS1" and "SMLINK_CS2" are exported to the XML file.

bubuko.com,布布扣

This is a screenshot of the gear assembly as modelled in SolidWorks?.

bubuko.com,布布扣

After export, open the XML file to see the two exported coordinate systems. When you generate a SimMechanics? model from this XML file under SimMechanics First Generation, the user-defined coordinate systems will appear as unconnected ports(gear1-2/CS2 and gear2-2/CS2) on the blocks representing the gear parts. A rigid connection(Weld1) is automatically inserted between the two blocks for the unsupported Gear constraint. gear1-2/CS4 and gear2-2/CS4 can be ignored and hidden.

bubuko.com,布布扣

In matlab, run mech_user_added_css to see this demo.

The following figures show the user added coordinate systems imported from a CAD assembly under SimMechanics First Generation

bubuko.com,布布扣bubuko.com,布布扣

gear1-2/CS2, gear2-2/CS2 are user-defined coordinate system, the block "Gear Constraint" can be seleted in SimMechanics First Generation Libaray.

bubuko.com,布布扣

 

bubuko.com,布布扣

 

The new features of  SimMechanics Seconde Generation can be refered to :

http://blogs.mathworks.com/seth/2012/11/30/simmechanics-second-generation/

User-Added Coordinate Systems in SimMechanics for unsupported Gear constraints,布布扣,bubuko.com

User-Added Coordinate Systems in SimMechanics for unsupported Gear constraints

标签:style   class   blog   http   color   com   

原文地址:http://www.cnblogs.com/superql/p/3773211.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!