ATTENTIONThis 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 |
#1
|
|||
|
|||
"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; Does anyone have a simple solution to know which FlowItem entered first, second... ? Thanks! |
#2
|
|||
|
|||
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! |
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 |