question

Joe K2 avatar image
0 Likes"
Joe K2 asked Joe K2 commented

select a fluid tank input port

Hi, I am modeling a system of multiple fluid process lines and tanks. I need to select a single tank and allow input to that tank from one processing line at a time. I am able to open all the inputs on a tank at once, but not able to open one input at a time. Should I use inputratescalefactors instead?

20220715-MixingRefiningABC-SwitchTank_autosave.fsm

FlexSim 22.1.3
fluid
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

·
Joe K2 avatar image
0 Likes"
Joe K2 answered Joe K2 commented

I was able to use input rate scale factors to solve my own problem. Here is the code snippet I used

getvarnode(<tank object>,"portinratescalefactors").subnodes[2].value = 0;

· 2
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·
Hello @Joe K2, Can we help you further with this question? If the answer you provided answered your question then could you select the accept. Otherwise please comment back how we can assist you further.
0 Likes 0 ·
Joe K2 avatar image Joe K2 Jeanette F ♦♦ commented ·
Hi Jeanette, I don't know how to accept my answer. Would you accept the answer for me? I tried upvoting but could not upvote my own response. Thanks!
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.