Main Content

Cap (2P)

Perfectly insulated stop to fluid flow

  • Library:
  • Simscape / Foundation Library / Two-Phase Fluid / Elements

  • Cap (2P) block


The Cap (2P) block represents a perfectly insulated terminus for a two-phase fluid branch. There is no fluid flow or heat transfer through the cap.

You can use this block to terminate two-phase fluid ports on other blocks that you want to cap. This is not necessary because if you leave a conserving port unconnected, the physical network sets all the Through variables at that port to 0. However, terminator blocks improve diagram readability.

You can also use this block to set the initial pressure and specific internal energy at a node.


To set the priority and initial target values for the block variables prior to simulation, use the Initial Targets section in the block dialog box or Property Inspector. For more information, see Set Priority and Initial Target for Block Variables and Initial Conditions for Blocks with Finite Gas Volume.



expand all

Two-phase fluid conserving port where the mass flow rate and energy flow rate are both equal to zero.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2015b

expand all

Behavior changed in R2019b