article

Paul Toone avatar image
0 Likes"
Paul Toone posted

Ticker   

The ticker is responsible for breaking time into small, evenly spaced units called "ticks". The modeller can define the length of a tick. The ticker is the object that controls all of the Fluid Objects in a model. For this reason, in any model that uses Fluid Objects, there should always be exactly one ticker. The modeller also uses the ticker to define the global list of sub-components that make up the fluid material in the model.

Details

Any model that uses the Fluid Objects must have a ticker. The ticker must be named "Theticker". The modeller can create a ticker by dragging it from the library icon grid to the model view window. However, this is an easy step to forget, so when the modeller drags any Fluid Object into a model, a ticker is created if there is not one already in the model. If the modeller tries to create another ticker, a warning message is given saying that a ticker already exists and that the new ticker should be deleted.

The ticker does not do much that the modeller can see, but it is very important behind-the-scenes. It is responsible for calculating how much material is transferred between Fluid Objects at the end of every tick. When the model is reset, the ticker builds a list of all of the Fluid Objects in the model. This objects in this list are sorted based on how many fluid objects are upstream and downstream of them. At the end of each tick, the ticker begins with the fluid object farthest downstream and calculates how much material it received during that tick. Then the ticker calculates how much material moved into the object upstream of that starting object, and so on until it reaches the starting point of the fluid portion of the model.

The ticker only has a few values that the modeller can change. The most important of these is the tick time. This is the length of time that the ticker will wait between updates to the Fluid Objects. A very small tick time will result in a large number of events firing as the model runs (at least one per tick) and may slow down the model. It will also, in many cases, increase the accuracy of the Fluid Objects' behavior. A longer tick time will generally result in a faster running model, but at a cost in accuracy. It is up to the modeller to find the appropriate balance of speed and accuracy for their model.

The modeller can also use the ticker to define a set of sub-components that will make up the fluid material in the model. Each of the sub-components should be given a name.. These names are to help the modeller understand what is happening in the model, they have no affect on the objects' behavior or accuracy. All fluid material has the same list of sub-components. It is not required that any given fluid material use all the sub-components, however. The Fluid Objects keep track of the percentages of the sub-components that make up the material that they are currently processing. If fluid material from two different sources is mixed together, the sub-components' percentages are adjusted accordingly. There is no limit to the number of sub-components that can be defined. Just remember that the list applies to all fluids.

States

Idle - The ticker is always in an idle state.

Properties pages

ticker
Triggers
Labels
General



flexsim users manual
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1