Skip to main content

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.

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
in1FLUIDinputImport 1The import quantity is not less than 1
in2FLUIDinputImport 2Import quantity is not less than 2
in3FLUIDinputImport 3The import quantity is not less than 3
in4FLUIDinputImport 4Import quantity is not less than 4
in5FLUIDinputImport 5Import quantity is 5
out1FLUIDoutputExit 1The export quantity is not less than 1
out2FLUIDoutputExit 2The export quantity is not less than 2
out3FLUIDoutputExit 3The export quantity is not less than 3
out4FLUIDoutputExit 4The export quantity is not less than 4
out5FLUIDoutputExit 5The 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

NamekeyTypeDefault / OptionsDescription
Tank Volume [m³]TankVolumereal15Effective geometric gas volume for initial inventory and transient charging/withdrawal.
Connection Elevation [m]PortElevationreal0Shared connection elevation on the network datum, matching connected pipes. Individual port elevations are not modeled.
Low-Pressure Protection Limit [MPa(g)]MinPressurereal0At 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)]MaxPressurereal150At 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

NamekeyTypeDefault / OptionsDescription
Heat Transfer Area [m²]SurfaceAreareal35Effective area on the coefficient basis; tank-wall thermal storage is not modeled.
Overall Heat Transfer Coefficient ModeHeatTransferCoefficientInputModechoiceFixed Value / Time CurveFixed or time-dependent overall coefficient for non-isothermal transients.
Tank Overall Heat Transfer Coefficient [W/(m²·K)]HeatTransferRatereal0Coefficient based on tank area. Zero removes environmental exchange but flow can still change temperature. Fixed mode retains area/environment settings.
Overall Coefficient CurveCurveLibraryHeatTransferCoefficientNamechoice__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 ModeAmbientTemperatureInputModechoiceFixed Value / Time CurveChoose fixed ambient temperature or a time curve.
Ambient Temperature [℃]AmbientTemperaturereal25Ambient tank temperature for non-isothermal transient heat transfer.
Ambient Temperature CurveCurveLibraryTemperatureNamechoice__UNSELECTED__Select a time series for the ambient temperature outside the tank. The series must cover the transient simulation period.

Gas and Initial Conditions

NamekeyTypeDefault / OptionsDescription
Initial Tank GasInitialCompositionalFluidchoice—Initial tank gas, subsequently updated by port balances and inventory mixing.
Initial Tank GasInitialSimpleFluidchoice—Initial tank gas, subsequently updated by port balances and inventory mixing.
Initial Tank Pressure [MPa(g)]InitialPressurereal10Initial gauge pressure: open-port boundary in steady-state, initial inventory in transients. Steady-state does not evolve inventory.
Initial Tank Temperature [℃]InitialTemperaturereal25Initial non-isothermal tank temperature; steady-state uses it for boundaries, transients evolve it with flow/heat. Isothermal uses global temperature.

Inlet and Outlet Configuration

NamekeyTypeDefault / OptionsDescription
Inlet CountInletCountchoice1 / 2 / 3 / 4 / 5Configured inlet count, allowing unconnected ports. Before reducing, remove affected wiring, active events, and measurements.
Outlet CountOutletCountchoice1 / 2 / 3 / 4 / 5Configured outlet count, allowing unconnected ports. Before reducing, remove affected wiring, active events, and measurements.
Initial Inlet 1 StateInlet1StatuschoiceOpen / ClosedInitial 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 StateInlet2StatuschoiceOpen / ClosedInitial 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 StateInlet3StatuschoiceOpen / ClosedInitial 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 StateInlet4StatuschoiceOpen / ClosedInitial 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 StateInlet5StatuschoiceOpen / ClosedInitial 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 StateOutlet1StatuschoiceOpen / ClosedInitial 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 StateOutlet2StatuschoiceOpen / ClosedInitial 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 StateOutlet3StatuschoiceOpen / ClosedInitial 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 StateOutlet4StatuschoiceOpen / ClosedInitial 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 StateOutlet5StatuschoiceOpen / ClosedInitial port state. Closing affects only that port; other open ports still flow. Protection closes all, and later Open restores selected ports only.

Transient Events

NamekeyTypeDefault / OptionsDescription
Port Change ScheduleEventstableConfigure one row at a timeFuture actions execute once; start/past events remain informational. Open restores selected ports only; violations keep all closed.
Port Change Schedule / TimeEvents.timedatetime2026-01-01 00:00:00Event effective time.
Port Change Schedule / Port TargetEvents.TargetPortchoiceallPort or group receiving the action.
Port Change Schedule / ActionEvents.ActionchoiceOpen / ClosedAction 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​

  1. Set counts, connect branches, and check numbering.
  2. Set volume, elevation, limits, gas, pressure, and states.
  3. Set non-isothermal temperature and transient heat.
  4. Schedule individual/group actions and check conflicts.
  5. 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 I,O\mathcal I,\mathcal O, signed actual flows qiq_i in m³/s and local densities ρi\rho_i in kg/m³, transient mass changes as

dmdt=∑i∈Iρiqi−∑j∈Oρjqj.\frac{\mathrm{d}m}{\mathrm{d}t} =\sum_{i\in\mathcal I}\rho_i q_i-\sum_{j\in\mathcal O}\rho_j q_j.

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 N˙i\dot N_i in kmol/s and mole-fraction vectors yi\boldsymbol{y}_i, combined inflow composition is

ymix,in=∑iN˙iyi∑iN˙i.\boldsymbol{y}_{\mathrm{mix,in}} =\frac{\sum_i \dot N_i\boldsymbol{y}_i}{\sum_i \dot N_i}.

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.