The ItemToFluid is an object that is used to interface between the fluid objects and the discrete objects. It receives flow items and converts them to fluid material.
The ItemToFluid is a Fixed Resource object that is designed to interface between the discrete objects and the fluid objects. When it receives a flow item, it destroys the flow item and creates fluid that can be sent to any of the other fluid objects. The amount of fluid created is based on two values that the modeller specifies. The first is the amount of fluid that each discrete unit creates. The second is the number of discrete units each flow item represents. Generally this value will be 1, but often the modeller will use a flow item to represent multiple physical objects. In that case, the number should be set to the number of objects represented by each flow item. The total number of fluid units that are created for each flow item that enters is found by multiplying these two values together. For example, a single flow item may represent 10 bags that each contain 25 pounds of a fluid material. The discrete units per flow item in this case is 10, and the fluid units per discrete unit is 25. Each time one of these flow items enters the ItemToFluid, 250 pounds of fluid are created.
The ItemToFluid has a maximum capacity that the modeller defines. The object will not accept any flow items if there is not at least enough empty space in it to hold all of the material that flow item will create. The modeller can also define the ProductID, and sub-component mix of the fluid that is created and sent out.
The flow items entering can be controlled using standard FixedResource pull logic. The output of fluid is completely controlled by the modeller. They can edit the maximum object rate, maximum port rate and the port scale factors using the GUI and the AdjustOutputRates function.
For statistical purposes, the fluid blender will be in one of the following states at various points during a simulation run:
The ItemToFluid has no material in it.
The ItemToFluid has fluid material in it that has not been pulled out yet.
The ItemToFluid's maximum capacity has been reached.
The item to fluid object has seven tabs with various properties. The last five tabs are the standard tabs that are common to most fluid objects. For more information about the properties on those tabs, see:
The Statistics tab is obsolete and is not supported for this object any more. Use the Statistics group in the object's Quick Properties instead.
The Flow tab is common to many fixed resources objects. See The Flow Tab for more information. Only the Fluid to Item tab is unique to the item to fluid object. The properties on this tab will be explained in more detail in the following sections.
The Fluid to Item tab has the following properties:
The maximum amount of fluid material that this object can hold at any time.
This opens the Initial Product Window which that allows the modeler to define the ProductID and sub-component mix of the material that is created by this object.
This function is called every tick and allows the user to change the output rates and scale factors during a model run. There are access variables that are references to the nodes that hold the rates and scale factors. To read the current rate (object or port) the getnodenum() command should be used. To change the rate the setnodenum() should be used. To read or change the scale factors getnodenum() and setnodenum() should be used in conjunction with the rank() command.
These properties affect how the object receives material from upstream objects:
These properties affect how the object sends material to downstream objects: