ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 07-20-2011
Stefan Trabut Stefan Trabut is offline
Flexsim User
 
Join Date: Mar 2011
Posts: 29
Downloads: 12
Uploads: 0
Thanks: 34
Thanked 5 Times in 5 Posts
Rep Power: 115
Stefan Trabut is on a distinguished road
Default "Fake" warm-up (initial conditions)

Hi,

In order to keep my model as simple as possible, I am trying to implement a "fake warm-up". A processor with a very long ProcessTime is filled at time zero with the steady-state quantity of FlowItems. Each FlowItem should have its own ProcessTime ranging from almost zero to the steady-state process time.

Process time code:
Code:
double InitialContentProcessor = 100;
double ProcessTime = 1000;
double InputCurrent = getinput(current);
if(InputCurrent <= InitialContentProcessor)
{
    ProcessTime = InputCurrent/InitialContentProcessor*ProcessTime;
}
return ProcessTime;
The problem is that (it looks like) 50 FlowItems enter the processor at them same time, before calling the processors' ProcessTime function - therefore the calculated process time is wrong.

Does anyone have a simple solution to know which FlowItem entered first, second... ?

Thanks!
Attached Files
File Type: fsm FakeWarmUp.fsm (28.7 KB, 120 views)
  #2  
Old 07-20-2011
Stefan Trabut Stefan Trabut is offline
Flexsim User
 
Join Date: Mar 2011
Posts: 29
Downloads: 12
Uploads: 0
Thanks: 34
Thanked 5 Times in 5 Posts
Rep Power: 115
Stefan Trabut is on a distinguished road
Default Kind-of solution

By closing the input of the processor in the OnEntry trigger, and then reopening after having calculated the process time in the ProcessTime function of the processor, the process times are right.

I don't know whether it is a good idea to open the output in a ProcessTime function, but for the moment it works. If somebody has a cleaner solution, it is still very welcome!
Attached Files
File Type: fsm FakeWarmUp.fsm (28.9 KB, 114 views)


Thread Thread Starter Forum Replies Last Post
is it possible to execute "Multiple Table Import" automaticly at the start of run? zhang xin Q&A 3 10-15-2009 09:54 AM
Is it possible one object comprised of the function of "combiner" and "separetor"? Vic Li Q&A 1 08-19-2008 04:41 AM
about "no select" and "show parameter window from side bar" qin tian Gripes and Goodies 3 03-21-2008 08:10 AM
Which variable stores "Properties -> General ->Flags -> Protected" information? KelvinHo Q&A 1 03-06-2008 06:18 AM
"Getting Started" and "Tutorial" models for v4.01 Cliff King Product Announcements 0 12-10-2007 07:34 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.