How to model failures and preemption in fluid library

时间:2019-01-18 18:55:38

标签: fluid anylogic

I will use the Fluid Pickup example from AnyLogic to explain my question. Let's say we have a pump (resource) that needs to be available for the cars to pickup fluid. We can add a seize and release before and after the pickup block and model this. Next step is to allow the pump to fail. The question is what is going to happen to a car that has already started picking up fluid:

  1. How can we stop the flow when the pump fails? (probably use failure flowchart and close the valve)
  2. How can we force the car to leave the pump with the current amount picked up? (not wait until Fluid to pickup is completed)
  3. Similarly, if the tank is small and is being continuously filled by a pump and that pump fails, the car needs to leave with whatever it has picked up (In this case, the flow to the car will become 0 so the first question is answered but the second one exists)

Thanks

1 个答案:

答案 0 :(得分:0)

您将必须创建自己的充当泵的资源代理,而无需使用流体拾取块。

拾取模块并不是很难自行建模,因为它只是将流体从资源转移到需要流体的代理(使用流体进入和流体出口模块)。

话虽如此,您将拥有一个可以与其他任何失败的资源一起使用的资源...,并且您可以创建逻辑以对无法获得所需的所有流体的代理进行某些操作。

总结:这可能有点太多,无法在此处显示完整的工作模型,但是这里要讲的课不是使用流体收集块。取而代之的是在您的资源内部放置流体源(因为您的资源是泵),然后使用流体入口和出口块将其移动。