Beruflich Dokumente
Kultur Dokumente
1. Introduction
2. Step-By-Step Model Construction
Introduction
Lesson 1 introduces the basic concepts of diagramming and building a simple model.
Building a diagram of the process is a great way to start every model that you will build in
FlexSim. If you can not build a diagram, flowchart, or at least see a picture in your mind of
how the process works, you will have a difficult time building the model in FlexSim.
Note: if you have already gone through the Getting Started tutorial, many of the
concepts you learn in this lesson will not be new. However, subsequent lessons build
upon this lesson, so it is probably a good idea to go through it anyway.
New Objects
In this lesson you will be introduced to the Source, Queue, Processor, Conveyor, and Sink
objects.
Model Views
FlexSim uses a three-dimensional modeling environment. There are two options for the
view: perspective view and orthographic view. The orthographic view will look more flat,
where as the perspective view will have a more real world feel to it. You may use any view
option to build or run the model. You may open as many view windows as you want in
FlexSim. Just remember that as more view windows are opened the demand on computer
resources increases.
Model 1 Description
In our first model we will look at the process of testing three products coming off a
manufacturing line. There are three different flowitem itemtypes that will arrive based on a
normal distribution. Itemtypes will be uniformly distributed between itemtypes 1, 2, and 3. As
flowitems arrive they will be placed in a queue and wait to be tested. Three testers will be
available for testing. One tester will be used for itemtype 1, another for itemtype 2, and the
third for itemtype 3. Once the flowitem is tested it will be placed on a conveyor. At the end of
the conveyor the flowitem will be sent to a sink where it will exit the model. Figure 1-1 shows
a diagram of the process.
Click here for the Step-By-Step Tutorial.
Model 1 Data
Source arrival rate: normal(20,2) seconds
Queue maximum size: 25 flowitems
Testing time: exponential(0,30) seconds
Conveyor speed: 1 meter per second
Flowitem routing: Itemtype 1 to Tester 1, Itemtype 2 to Tester 2, Itemtype 3 to Tester 3.
Step-By-Step Model Construction
Building Lesson 1 Model
Open the application by double clicking on the FlexSim icon on your desktop. Once the
software loads, you should see the FlexSim menu and toolbars, Library, and Orthographic
Model View windows.
If at any time you encounter difficulties while building this model, a fully functional tutorial
model can be found at http://www.flexsim.com/tutorials
FlexSim allows the user to select appropriate units for a model. By default, the Model Units
dialog will appear for each new model. You can select units for time, length, and fluids. The
units you choose will be assumed throughout the model. For this model, use the following:
This specifies an inter-arrival time with mean of 20 seconds and standard deviation of 2
seconds.
The next thing we need to do is assign an itemtype number to the flowitems as they enter
the system. This will be uniformly distributed between 1 and 3. The best way to do this
would be to change the itemtype on the OnCreation trigger of the Source, so don't close the
Properties window yet.
The duniform distribution is similar to a uniform distribution except that instead of returning
any real number between the given parameters, only discrete integer values will be
returned. The default values will be used in this example.
Click the Flow tab in the Properties Window to set the flow options for the queue.
On the Send To Port list, select By Expression
Since we have assigned an itemtype number equal to 1, 2, or 3, we can now use the
itemtype to specify the port number through which flowitems will pass. Notice that the
default output port is: getitemtype(item). Leave this as it is. Processor 1 should be
connected to port 1, processor 2 should be connected to port 2 and so on. Click outside of
the box to apply the trigger.
Click the OK button to apply and close the queue's properties window.
The next step is to set the processor times.
Always click the button to reset system and model parameters to their initial
state before running a model.
Click the button to start the simulation.
You should see flowitems entering the queue and then moving to the processors. From the
processors, flowitems should move to the conveyors and then to the sink. You can change
how fast the model runs by moving the Run Speed slide bar on the Simulation Run Panel.
Step 9: Viewing simple statistics
The above image shows how to view simple statistics for each object. If nothing is showing
or only the names are showing, you can change the View Settings to show the statistics. To
change the View Settings, click somewhere in the background of the view and in the Quick
Properties window to the right, change the Show Names combo box to Show Names and
Stats.
You can view more statistics of an object by clicking on the object and viewing the statistics
tab in the Quick Properties.
Step 10: Save Model
Save your model by clicking the Save button on the main toolbar. The "Save FlexSim Model
file" window will appear allowing you to navigate to the folder where you want to save your
model. Change the "File name" to an appropriate name (lesson1.fsm) and select save.
Remember that the file name extension must be .fsm.
You have now completed Lesson 1. Spend some time reviewing the steps and viewing the
model as it runs. Congratulations!
To continue the tutorial, go to Lesson 2.