question

Jarek O avatar image
0 Likes"
Jarek O asked Jarek O commented

How to define fluid content in ItemToFluid object coming from a label?

Hi,

Situation: Container (discrete flowitem) with label "Content Weight" enters an ItemToFluid object. The output has to be a fluid with a volume that is proportional to Content Weight label.

The only way that I see to change the fluid's volume is by changing "Fluid Per Discrete Unit" or "Discrete Units per Flowitem". But that's just a static float and therefore the same for every container that enters.

Thanks in advance,

Jarek

Choose One
fluids
5 |100000

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

Dj Moens avatar image
0 Likes"
Dj Moens answered

Hello Jarek,

Have you tried the FloWorks module yet. This module is based on discrete event driven calculations (faster and more accurate)

You can use on the ItemToFlow object in the "Flowamount per item field" a statement like:

getlabel(first(current),"Content Weigh")

Rgds,

Dirk-Jan Moens

5 |100000

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

Ben Wilson avatar image
0 Likes"
Ben Wilson answered Jarek O commented

The FloWorks module is superior in many ways to FlexSim's built in Fluid Objects library, so @dj.moens' suggestion is great, but there is a way to do it with FlexSim's built in ItemToFluid.

In the attached model, the source produces just 6 boxes on a schedule. These boxes go to an ItemToFluid object with a custom OnEntry trigger.

The OnEntry tigger changes the ItemToFluid's "fluidunitsperdiscrete" variable dynamically. This example just sets static numbers for the first, second, third, and the rest of the flowitems. But you could easily have it read the value from a label as well.

itemtofluid-customize.fsm


· 1
5 |100000

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

Jarek O avatar image Jarek O commented ·

Thank you for the answer Ben, it was very helpful as well.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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