question

Murilo B avatar image
0 Likes"
Murilo B asked Phil BoBo answered

How to use "contextdragconnection" in Fluid?

Hi,

I'm using the Fluid library and trying to use the "contextdragconnection" to make some connections in the model while it is running.

The problem is that when process flow makes these connections, the fluid does not leave the tank (the code snippet is already opening and closing the object's ports).

How can I do this?

Thanks!

ModeloExemplo_6.fsm

FlexSim 21.1.2
flexsim 21.1.2connectionsfluiddrag connectionsfluidtank
1621870838132.png (66.8 KiB)
modeloexemplo-6.fsm (60.1 KiB)
5 |100000

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

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered

The fluid objects are not designed to dynamically change their connections while the model runs. They have variables for individual port rates that are set up On Reset.

You should create all the port connections before running your model and adjust the rates or close/open ports as necessary during the model run.

5 |100000

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