Lets the passing through agents pick up fluid or bulk matter. Serves as an interface block between the Process Modeling Library (on any other library based on it) and the Fluid Library. Each agent is assumed to need a certain amount of fluid to pick up, and, upon arrival of the agent at the block, the block starts accumulating the fluid. The amount can be specified explicitly and may depend on the agent (pickupby amount mode), or pick up can be executed by batch. In the latter case, the agent is released once the block has accumulated a non-zero amount of fluid of one batch and the new different batch shows up. The block does not modify the agent anyhow,it is up to you to implement how the fluid picked up affects the agent.
Similarly to FluidDispose and FluidToAgent, this block can accept flow at any rate. When there is no agent in the block, the block contains no fluid and the fluid is not allowed to flow in. FluidPickup may contain only one agent at a time, and the next agent will not be let in until the current agent has left the block.
Demo model: FluidPickup
double amountPassed() - Returns the total amount of fluid passed through the inFluid port of the block since the start of the simulation.
double amountPassed(AmountUnits units) - Returns the total amount of fluid (in given units) passed through the inFluid port of the block since the start of the simulation.
double amount() - Returns the amount of fluid currently accumulated in the block. This amount is less than the total amount of fluid required to release an agent.
double amount(AmountUnits units) - Returns the amount of fluid (in given units) currently accumulated in the block. This amount is less than the total amount of fluid required to release an agent.
void resetStats() - Resets statistics collected for this block, including the statistics collected for its ports.
Object getBatch() - Returns the batch currently flowing into the block.
double currentRate() - Returns the current flow rate of fluid that comes in.
double currentRate(FlowRateUnits units) - Returns the current flow rate (in given units) of fluid that comes in.