Fluid Enter

Accepts the flow into the connected FluidExit block. Is designed to set up flow networks dynamically, for example, when the network configuration is read from a database, or when dynamic re-routing is needed between multiple parts of the network, such as replicated fragments, which may not be well managed by FluidSelectOutput and FluidSelectInput blocks.

The connections are set on the FluidExit block side, FluidEnter blocks passively accept them. 

A FluidEnter block can be connected to at most one FluidExit block at a time, and vice versa.

Demo model: FluidEnter and FluidExit

Parameters

Limited output rate
If true, you are able to specify a custom upper limit of the outflow rate.
Syntax: boolean limitRateOut
Maximum output rate
[Visible if the Limited output rate option is set] Custom upper limit of the outflow rate. The default value is 10 cubic meters per second.
Syntax: double maxRateOut
Animation
Show batches in flowchart
If set, the block icon will display the batches size and color.
Syntax: boolean showBatchesInFlowchart
Actions
On new batch at output [code]
Action executed when a new batch appears at the block output.
Local variable: Object batch - the batch
On rate change [code]
Action executed when the flow rate changes. Please note that changing something in the action may result in another immediate rate change and immediately following another call of On rate change, so the user can possibly create a livelock.
Local variable:  double outrate - the current output rate

Functions

double amountPassed() - Returns the total amount passed through the block since the start of the simulation.

double amountPassed(AmountUnits units) - Returns the total amount (in given units) passed through the block since the start of the simulation.

double currentRate() - Returns the current flow rate of fluid that goes in.

double currentRate(FlowRateUnits units) - Returns the current flow rate (in given units) of fluid through the block.

void resetStats() - Resets statistics collected for this block, including the statistics collected for its ports.

boolean isConnected() - Tests if the block is currently connected to a FluidExit block. Returns true if the block is connected, and false otherwise.

FluidExit getConnection() - Returns the connected FluidExit block, or null if not connected.

Ports

out
The output port.