Accepts the flow from 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.
Input rate is unlimited, while the output rate cat be limited to the specified value. The specified rate cannot be lower than the value of Utils.RATE_TOLERANCE constant, i.e. 1.0e-9. If rate value falls below this value after recalculation, it will be snapped to 0.Demo model: FluidEnter and FluidExit
- 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
- Show batches in flowchart
- If set, the block icon will display the batches size and color.
Syntax: boolean showBatchesInFlowchart
- On new batch at output
- Action executed when a new batch appears at the block output.
Local variable: Object batch — the batch
- On rate change
- Action executed when the flow rate changes.
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
- Fluid amount
Function Description 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.
- Flow rate
Function Description 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.
- Connection to FluidExit
Function Description 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.
- Resetting statistics
Function Description void resetStats() Resets statistics collected for this block, including the statistics collected for its ports.
- The output port.
How can we improve this article?