Multiport Gas Tank
Multiple pipelines share one gas space. Actual port flows determine inventory, pressure, temperature, and composition for source collection and parallel supply.
Component Appearance and Location
Find Multiport Gas Tank under Tanks.
Ports and Connections
| Port Key | Type | Direction | Interface Name | Display Conditions |
|---|---|---|---|---|
in1 | FLUID | input | Import 1 | The import quantity is not less than 1 |
in2 | FLUID | input | Import 2 | Import quantity is not less than 2 |
in3 | FLUID | input | Import 3 | The import quantity is not less than 3 |
in4 | FLUID | input | Import 4 | Import quantity is not less than 4 |
in5 | FLUID | input | Import 5 | Import quantity is 5 |
out1 | FLUID | output | Exit 1 | The export quantity is not less than 1 |
out2 | FLUID | output | Exit 2 | The export quantity is not less than 2 |
out3 | FLUID | output | Exit 3 | The export quantity is not less than 3 |
out4 | FLUID | output | Exit 4 | The export quantity is not less than 4 |
out5 | FLUID | output | Exit 5 | The export quantity is 5 |
Positive inlet flow enters; positive outlet flow leaves; negative reverses each convention. Unconnected configured ports are sealed. Use a Measurement Instrument for tank/port measurements and Port Change Schedule for actions.
Parameter List
Equipment Specifications
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Tank Volume [m³] | TankVolume | real | 15 | Effective geometric gas volume for initial inventory and transient charging/withdrawal. |
| Connection Elevation [m] | PortElevation | real | 0 | Shared connection elevation on the network datum, matching connected pipes. Individual port elevations are not modeled. |
| Low-Pressure Protection Limit [MPa(g)] | MinPressure | real | 0 | At or below this transient pressure, all ports latch closed. A later Open event after recovery releases only selected ports; violations relatch. This is protection, not a pressure target. Equal limits leave no open interval. |
| High-Pressure Protection Limit [MPa(g)] | MaxPressure | real | 150 | At or above this transient pressure, all ports latch closed. A later Open event after recovery restores only selected ports; violations relatch. It does not clamp tank pressure. |
Thermal Calculation
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Heat Transfer Area [m²] | SurfaceArea | real | 35 | Effective area on the coefficient basis; tank-wall thermal storage is not modeled. |
| Overall Heat Transfer Coefficient Mode | HeatTransferCoefficientInputMode | choice | Fixed Value / Time Curve | Fixed or time-dependent overall coefficient for non-isothermal transients. |
| Tank Overall Heat Transfer Coefficient [W/(m²·K)] | HeatTransferRate | real | 0 | Coefficient based on tank area. Zero removes environmental exchange but flow can still change temperature. Fixed mode retains area/environment settings. |
| Overall Coefficient Curve | CurveLibraryHeatTransferCoefficientName | choice | __UNSELECTED__ | Select a time series for the overall heat transfer coefficient. The coefficient applies to this tank's heat transfer area, and the series must cover the transient simulation period. |
| Ambient Temperature Mode | AmbientTemperatureInputMode | choice | Fixed Value / Time Curve | Choose fixed ambient temperature or a time curve. |
| Ambient Temperature [℃] | AmbientTemperature | real | 25 | Ambient tank temperature for non-isothermal transient heat transfer. |
| Ambient Temperature Curve | CurveLibraryTemperatureName | choice | __UNSELECTED__ | Select a time series for the ambient temperature outside the tank. The series must cover the transient simulation period. |
Gas and Initial Conditions
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Initial Tank Gas | InitialCompositionalFluid | choice | — | Initial tank gas, subsequently updated by port balances and inventory mixing. |
| Initial Tank Gas | InitialSimpleFluid | choice | — | Initial tank gas, subsequently updated by port balances and inventory mixing. |
| Initial Tank Pressure [MPa(g)] | InitialPressure | real | 10 | Initial gauge pressure: open-port boundary in steady-state, initial inventory in transients. Steady-state does not evolve inventory. |
| Initial Tank Temperature [℃] | InitialTemperature | real | 25 | Initial non-isothermal tank temperature; steady-state uses it for boundaries, transients evolve it with flow/heat. Isothermal uses global temperature. |
Inlet and Outlet Configuration
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Inlet Count | InletCount | choice | 1 / 2 / 3 / 4 / 5 | Configured inlet count, allowing unconnected ports. Before reducing, remove affected wiring, active events, and measurements. |
| Outlet Count | OutletCount | choice | 1 / 2 / 3 / 4 / 5 | Configured outlet count, allowing unconnected ports. Before reducing, remove affected wiring, active events, and measurements. |
| Initial Inlet 1 State | Inlet1Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Inlet 2 State | Inlet2Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Inlet 3 State | Inlet3Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Inlet 4 State | Inlet4Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Inlet 5 State | Inlet5Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Outlet 1 State | Outlet1Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Outlet 2 State | Outlet2Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Outlet 3 State | Outlet3Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Outlet 4 State | Outlet4Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
| Initial Outlet 5 State | Outlet5Status | choice | Open / Closed | Initial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only. |
Transient Events
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Port Change Schedule | Events | table | Configure one row at a time | Future actions execute once; start/past events remain informational. Open restores selected ports only; violations keep all closed. |
| Port Change Schedule / Time | Events.time | datetime | 2026-01-01 00:00:00 | Event effective time. |
| Port Change Schedule / Port Target | Events.TargetPort | choice | all | Port or group receiving the action. |
| Port Change Schedule / Action | Events.Action | choice | Open / Closed | Action applied to the selected ports. |
Parameter Guidance
- Counts/states. Select 1–5 inlets and 1–5 outlets and set states individually. Remove wiring, actions, and references before hiding ports.
- Volume/elevation/gas. All ports share geometric gas volume and connection elevation. Select matching initial gas and gauge pressure; thermal mode determines panel/global temperature.
- Protection. Normal transient pressure must be strictly between low/high MPa(g) limits; either closes every port.
- Environmental heat transfer. Applies during non-isothermal transients. Use the same area basis for the heat transfer area and overall coefficient. Choose a fixed value or time curve separately for coefficient and ambient temperature. Curves must cover the calculation interval.
Enter Environmental Curves
For each input configured as a Time Curve, choose Edit Local Curve to enter time and value pairs on the tank or Reference Curve Database to select a named curve of the same type. Use W/(m²·K) for overall heat transfer coefficient and °C for ambient temperature. The curves define environmental conditions for the entire tank and apply to all ports. Choose a curve source.
Port Change Schedule
Rows specify time, port/group, and open/close. Groups include all inlets, all outlets, or all ports. Initial states use panel; only later events execute. Order future times; multiple rows at one time are allowed.
Group commands expand to configured ports before simultaneous execution. Duplicate identical actions execute once; conflicting open/close commands on one port, such as All Inlets open and Inlet 2 closed, must be corrected.
Modeling Steps
- Set counts, connect branches, and check numbering.
- Set volume, elevation, limits, gas, pressure, and states.
- Set non-isothermal temperature and transient heat.
- Schedule individual/group actions and check conflicts.
- Inspect per-port direction/state, net mass flow, inventory, and protection.
View Results
- Ports. State, MPa(g), °C, standard Nm³/h, and actual m³/h. Unconnected shows zero flow and tank-side pressure/temperature.
- Totals. Actual directions determine total inflow/outflow/net kg/s. Positive transient net adds inventory. Standard inventory is Nm³.
- Thermal/protection. Compare whole-tank protection and port states; temperature and environmental heat kW explain isolated changes.
Saved State
Continuation preserves actual states, protection, and event progress. New initial-field loading retains physical state/inventory but rebuilds operations from target start and panel states and rechecks protection.
Professional Theory
Multiport Mass Balance
All ports share fixed volume and uniform state. Current properties convert inventory and standard volume; temperature/composition also affect pressure. Inventory
For inlet/outlet sets , signed actual flows in m³/s and local densities in kg/m³, transient mass changes as
This is total actual inflow minus outflow; reversed outlets count inward. Convert each flow with its actual density before summing. Two-Port Balance
Incoming Enthalpy and Mixing
Sum actual incoming enthalpy flows; all outgoing gas uses current tank temperature/composition. Environmental heat continues when all ports close. Energy
Convert incoming mass flows using each molar mass, then accumulate by source gas. For inward branches with molar flows in kmol/s and mole-fraction vectors , combined inflow composition is
Combine incoming gas with existing inventory for current composition. All outflows share it. Equal mass inflow/outflow can still change delivered composition. Molar Mixing
Shared Pressure and Group Recovery
Steady-state open ports impose initial pressure with independently solved flows and initial inventory. Transient connected open ports share current pressure; closed ports have zero flow. Branch flows depend on network conditions; connection losses/elevation differences are outside scope.
Either limit latches all ports during transient initialization/runtime. Initial violations keep specified pressure in a closed field. Independent steady-state only warns and follows panel states.
After pressure returns strictly inside limits, an Open action releases the latch only for its selected port/group. Other protected ports remain closed. If pressure still violates limits, all relatch.
Applicability and Limits
- Shared storage. Use for source collection and branch supply; transient mode tracks inventory/pressure/composition.
- Lumped model. Shared state/elevation excludes local mixing, stratification, wall storage, and connection losses.
- Directions. Both inlet/outlet ports can reverse; add Check Valves where needed.
Common Inspections
- Unexpected inventory direction. Confirm transients, signs, states, densities, and net mass.
- Validation after count changes. Remove hidden-port wiring/actions/references.
- Simultaneous conflicts. Expand groups and find opposing actions per port.
- Branches remain closed after recovery. Check pressure and inclusion in the Open action.
- Stable inventory but changing composition. Check incoming compositions/directions and molar inventory.