Flexsim案例一
模型简介:某工厂生产三种产品,产品来自不同的生产部门。模型中有三台机器,每台机器对一种特定的产品进行加工处理。加工完成后运送到同一台检测器进行检测,如果没有问题就离开模型,运到下一个部门,反之运送到仿真模型起点,被各自的机器重新处理一遍。
建模步骤:1.打开Flexsim(选择NewModel)
2.选择单位(点击OK)
一般情况下,不用改变各参数的单位,保持最初状态即可。从上到下,依次是时间单位:秒;长度单位:米;流体单位:升;模型开始时间:保持默认。
3.创建实体
从实体库中拖动实体,包括一个发生器、两个暂存区、四个处理器(三个作为处理器,一个作为检测台)和一个吸收器。
模型如图所示:(可双击实体修改标签,当将鼠标移动到实体上,实体呈现高亮时,才能双击打开 )
4.连接实体
连接方式:该模型全部使用的是A连接(点击一下鼠标符号旁边的A,然后对实体进行连接,若要取消连接则点击Q再点击实体)
连线方式如下:
发生器与暂存区1连接
暂存区1与处理器1,处理器2和处理器3分别相连
处理器1,2,3和暂存区2分别相连
暂存区2和检测站连接
检测站与吸收器、暂存区1分别连接
5.定义到达时间间隔
双击发生器,在Source选项卡下的Inter-Arrivaltime,点击 ,出现
将Distribution设置为exponential;Location设置为0;Scale设置为5;Stream设置为0
(由于最初设置的时间单位为秒,故把Scale设置成5,就意味着分布的均值为5秒)
单击空白地方,然后点击OK
6.分配临时实体类型和颜色
创建三个不同类型的临时实体
双击发生器,在Triggers选项卡下,点击 下的OnExit
点击OnExit旁边的绿色加号,然后在Date选项中选择Set Item Type and Coler
单击空白处,最后单击OK
7.定义暂存区的最大容量
双击暂存区1,在Queue选项卡下,将最大容量设置为10000
点击Apply,不关闭窗口,方便下一步设置
8.定义暂存区1的流动路径
在Flow选项卡下
将Send To Port 设置为Port by Case
9.定义加工时间
双击处理器1,在Processor选项卡下,将Processor time设置为Exponential,默认参数。对另外两个处理器重复操作。
点击空白处,最后点OK
10.定义暂存区2的最大容量
按照第7步将暂存区2最大容量设置为10000
11.定义检测站的加工时间
双击检测器,将process time设置为4
12.定义检测站的流动路径
双击检测器,在Flow选项卡下将Send To Port设置为By Percentage
将概率设置为80%(合格)和20%(不合格,返回到模型开始),若吸收器连接的是1端口,则1端口设置为80%,否则为20%,可以通过检测器General选项卡下的OutPorts查看
设置返回实体的颜色:
单击选项卡Triggers,点击OnExit
设置实体颜色为黑色,点击OK
13.重置和运行模型
点击左上角的
然后模型就开始运行了。可调整运行速度
加快运行速度,得出最后的结果。
Model introduction: A factory produces three products, and the products come from different production departments. There are three machines in the model, and each machine processes a specific product. After the processing is completed, it is transported to the same detector for testing. If there is no problem, it will leave the model and transport it to the next department. Otherwise, it will be transported to the starting point of the simulation model and processed again by the respective machines.
Modeling steps:
1. Open Flexsim (select NewModel)
2. Select the unit (click OK)
Generally, you don"t need to change the unit of each parameter, just keep the initial state. From top to bottom, the time unit: second; the length unit: meter; the fluid unit: liter; the model start time: keep the default.
3. Create an entity
Drag entities from the entity library, including a generator, two temporary storage areas, four processors (three as processors and one as a detection station) and an absorber.
The model is shown in the figure: (You can double-click the entity to modify the label. When the mouse is moved to the entity, the entity can be opened by double-clicking when it is highlighted)
4. Connecting entities
Connection method: All this model uses A connection (click the A next to the mouse symbol, and then connect the entity, if you want to cancel the connection, click Q and then click the entity)
The connection method is as follows:
The generator is connected to the temporary storage area 1
Temporary storage area 1 is connected to processor 1, processor 2 and processor 3 respectively
Processor 1, 2, 3 and temporary storage area 2 are respectively connected
Temporary storage area 2 is connected to the inspection station
The detection station is connected to the absorber and the temporary storage area 1 respectively
5. Define the arrival time interval
Double-click the generator, click Inter-Arrivaltime under the Source tab, and it will appear
Set Distribution to exponential; Location to 0; Scale to 5; Stream to 0
(Since the initial time unit is seconds, setting the Scale to 5 means that the mean value of the distribution is 5 seconds)
Click on a blank space, and then click OK
6. Assign item type and color
Create three different types of temporary entities
Double-click the generator, under the Triggers tab, click OnExit under
Click the green plus sign next to OnExit, and then select Set Item Type and Coler in the Date option
Click the blank space, and finally click OK
7. Define the maximum capacity of the staging area
Double-click the temporary storage area 1, under the Queue tab, set the maximum capacity to 10000
Click Apply, without closing the window, to facilitate the next setting
8. Define the flow path of temporary storage area 1
Under the Flow tab
Set Send To Port to Port by Case
9. Define processing time
Double-click Processor 1, under the Processor tab, set Processor time to Exponential, the default parameter. Repeat for the other two processors.
Click on the blank space, and finally click OK
10. Define the maximum capacity of temporary storage area 2
Follow step 7 to set the maximum capacity of temporary storage area 2 to 10000
11. Define the processing time of the inspection station
Double-click the detector and set the process time to 4
12. Define the flow path of the inspection station
Double-click the detector and set Send To Port to By Percentage under the Flow tab
Set the probability to 80% (qualified) and 20% (unqualified, return to the beginning of the model). If the absorber is connected to port 1, then port 1 is set to 80%, otherwise it is 20%. You can use the General option of the detector OutPorts view under the card
Set the color of the returned entity:
Click the tab Triggers, click OnExit
Set the entity color to black
Click OK
13. Reset and run the model
Click Reset in the upper left corner, and then click Run, then the model starts to run. The running speed can be adjusted to speed up the running speed and get the final result.
参考资料:百度百科,Flexsim7.5.4版本中文用户手册【北京创时能公司汉化】版
翻译:Google翻译
本文由LearningYard学苑原创,文中部分图片和文字均来源于网络,如有侵权请联系删除!