perch88 发表于 2009-5-24 13:41

谁用6.26.1、6.26.2、6.27与Simulink可以联合仿真?

有人用6.26.1、6.26.2、6.27与Simulink可以实现联合仿真吗?我做了有错误

我用6.26可以联合,但是上面说的这三个版本不行,但是必须用这三个版本中的一个(需要一个特殊功能)

谢谢关注。

龍が如く 发表于 2009-5-24 14:45

http://www.infolytica.com/en/coolstuff/ex0120/IPM%20SL%20model%20MagNet%20and%20Simulink.PNG The vector control of an Interior Permanent Magnet (IPM) Brushless DC motor involves running both Simulink and MagNet transient solvers simultaneously.
Co-simulations allow the strengths of two separate simulators to be combined, in this case the powerful system-level simulation of Simulink with the dynamic electrical machine analysis of MagNet. A continuous data exchange between the two keeps the shared quantities (voltages and currents) synchronized.

龍が如く 发表于 2009-5-24 14:47

http://www.infolytica.com/en/coolstuff/ex0120/Simulink_IPM_SL%20thumbnail.PNG The Simulink model, which implements the closed loop vector control of the motor speed, is shown on the right. The element which couples to MagNet is the red component with the MagNet logo.
http://www.infolytica.com/en/coolstuff/ex0120/IPM%20SL%20mesh%20thumbnail.PNG The link component is designed to allow MagNet to take advantage of symmetry, by allowing the currents and/or voltages to be scaled in the transfer between Simulink and MagNet. In this case the four windings of each phase are connected in a series-parallel configuration, so the current and the voltage are both scaled by a factor of two in the Simulink component. Shown here is the mesh used by MagNet for its part of the simulation. At each time step, as the rotor changes position, the airgap is remeshed, which allows motional effects to be modeled quickly and accurately.
http://www.infolytica.com/en/coolstuff/ex0120/IPM_SL_wm%20thumbnail.PNG Using vector control a feedback loop monitors the motor speed and varies the motor torque to maintain a desired speed. The graph here shows the commanded speed (1800 rpm, shown in green) and the actual speed (shown in blue). The transient simulation starts in Simulink, which invokes MagNet transparently to jointly run its electromagnetic simulation. While both simulations are running they are constantly passing data back and forth to synchronize the voltages and currents.
http://www.infolytica.com/en/coolstuff/ex0120/IPM_SL_Vdq%20thumbnail.PNG This graph shows the vector voltages commanded by the feedback circuit. The system blocks in the lower left quandrant of the circuit implement an approximate inverse model of the motor, which means that the speed feedback need only generate small corrections to these voltages.
http://www.infolytica.com/en/coolstuff/ex0120/IPM_SL_Vabc%20thumbnail.PNG The graph at right shows the phase voltages commanded by the controller, which are obtained from the vector voltages by a DQ to ABC transformation. The element which performs this transformation is a user defined S-Function which implements the mathematical operations.
http://www.infolytica.com/en/coolstuff/ex0120/IPM_SL_Iabc%20thumbnail.PNG MagNet also takes the mechanical loads on the motion component into account, as well as velocity effects such as back emf. The resulting phase currents (shown here at right) are calculated by performing a finite element analysis, and are returned to Simulink.
http://www.infolytica.com/en/coolstuff/ex0120/IPM_SL_Idq%20thumbnail.PNG This graph shows the actual vector currents. A limiter component in the feedback loop keeps the commanded current magnitude under 10 Amps. These currents are obtained from the phase currents using a user-defined ABC to DQ transformation element.
http://www.infolytica.com/en/coolstuff/ex0120/Magnetic%20Torque%20thumbnail.PNG The previous graphs were generated by "Scope" blocks, which is just one of the many ways of extracting data from Simulink. Once the simulation is complete, MagNet's post-processor can be invoked to plot the magnetic quantities, such as flux linkage and torque, as well as fields, such as flux density and current density. The magnetic torque on the rotor is plotted here.
The link which orchestrates the data exchange between Simulink and MagNet is designed to allow different time steps in each application while both are running a transient simulation. In this example MagNet is running with a time step of only 0.2 ms, while Simulink is using a finer time step. A summary of the simulation data follows.

thwfei 发表于 2009-5-24 20:43

主要是license里面要开通和simulink联合仿真的功能。如下:
INCREMENT MagNet_Simulink_Link_dll infodmon 999.999999 31-dec-2008 \
        uncounted HOSTID=DISK_SERIAL_NUM=2d2017f0 START=05-Dec-2007 \
        SIGN2="1F3A 8B14 F0A3 7419 E228 DE54 D142 8473 1A1B 764F D4FC \
        5193 A175 54E5 19E5 1AEA 0D0D 925A 8B2B CEFE 2175 666D 5B72 \
        52A2 5ED9 C00D 8932 8BE2 1058 5097"

thwfei 发表于 2009-5-25 08:37

很可能是simulink2.0插件有问题,不兼容,请联系他们的技术支持。

thwfei 发表于 2009-5-25 10:18

已确定是simulink插件问题。

ilovemovies 发表于 2009-9-22 20:01

楼主版本很高啊,^_^

MazzyLyric 发表于 2011-12-21 22:22

我想问一下,magnet与simulink联合仿真时,magnet建立的模块接口是没法与simulink连接的啊 怎么解决呢?
页: [1]
查看完整版本: 谁用6.26.1、6.26.2、6.27与Simulink可以联合仿真?