emptyfluidobject and OnEmpty trigger

emptyfluidobject and OnEmpty trigger

laurenz_peleman
Not applicable
20 Views
2 Replies
Message 1 of 3

emptyfluidobject and OnEmpty trigger

laurenz_peleman
Not applicable

[ FlexSim 17.0.3 ]

Hello everyone

I noticed that, when running emptyfluidobject on a Fluid object to force it to release its content, the OnEmpty trigger of this object is not executed. I tried an alternative way by setting its content to 0 manually using setvarnum(current,"curcontent",0), but again the trigger was not called. Is there another way to empty a Fluid object by code and to ensure that its OnEmpty trigger is run as well?

Many thanks in advance

0 Likes
Accepted solutions (1)
21 Views
2 Replies
Replies (2)
Message 2 of 3

jeff_nordgren
Not applicable

@Laurenz Peleman

Without attaching your model or a sample model of the problem you are having, it is impossible to give you specific answers to your particular model. Your description alone does not give enough information to know what is happening.

Attached is a sample model that does show the OnEmpty trigger working for both a FluidGenerator and a FluidTank. In the Generator, OnEmpty, I display a message showing that it is empty and close the output port. In the Tank, I display an empty message and open the output port of the Generator. This all seems to work as it is supposed to.

Take a look at the model and see if it will help you diagnose the problem in your model. If it doesn't, maybe you could send us your model or a sample to show what results you are getting.

onemptytriggersample1-jn1.fsm

Message 3 of 3

dj_moens
Not applicable
Accepted solution

Hi @Laurenz Peleman

The standard fluid objects have limitations. You might want to have a look at the FloWorks module to use for continuous flows. You can find it in the '3rd party module' in your FlexSim account or alternatively download it from: https://www.talumis.com/flexsim-floworks-module-download/

Shoot me an e-mail for further details: dirk-jan.moens@talumis.com.

Rgds,

Dirk-Jan