Supply Tank
A finite-volume gas store supplying through one port. Transient simulation tracks inventory, pressure, temperature, and composition. An open port also permits reverse charging.
Component Appearance and Location
Expand Storage Tank in component library on the left and find "Supply Tank".
Ports and Connections
| Port Key | Type | Direction | Interface Name | Display Conditions |
|---|---|---|---|---|
0 | FLUID | output | Fluid outlet | always show |
Connect the outlet to the supplied network. Positive flow leaves the tank; negative charges it. Use a Measurement Instrument for 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 | Connection elevation on common network datum, matching connected pipe ports. |
| Low-Pressure Protection Limit [MPa(g)] | MinPressure | real | 0 | Transient low limit latches the port closed. Recovery needs later Open and pressure inside limits; violations relatch. Protection, not regulation. Equal limits leave no open interval. |
| High-Pressure Protection Limit [MPa(g)] | MaxPressure | real | 150 | Transient high limit latches the port closed. Recovery needs later Open and safe pressure; violations relatch. Does not clamp 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 Port State | Status | choice | Open / Closed | Initial open/closed state. Closure stops exchange and retains inventory; non-isothermal heat can still change P/T. Future events apply later. |
| Initial Tank Pressure [MPa(g)] | InitialPressure | real | 10 | Initial gauge pressure, steady open-port boundary or transient inventory state. Converted absolute pressure must be positive. |
| 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. |
Transient Events
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Port Change Schedule | Events | table | Configure one row at a time | Future open/close events. Panel defines initial state; past/start rows do not execute. Open also attempts protection release; violations relatch. |
| Port Change Schedule / Time | Events.time | datetime | 2026-01-01 00:00:00 | Event effective time. |
| Port Change Schedule / Port State | Events.PortStatus | choice | Open / Closed | Port state after event. |
Parameter Guidance
- Volume, elevation, initial state. Enter gas-containing geometric volume in m³ and a shared network elevation datum. Select initial gas matching the equation of state and pressure in MPa(g). Non-isothermal mode uses initial tank temperature; isothermal uses global temperature.
- Protection. Enter low/high MPa(g) thresholds with an open operating interval; initial transient pressure should be inside it.
- 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. The software interpolates time curves linearly at the end of each step.
- Actions. Initial state comes from the panel. Schedule rows give time and open/closed state; only times after start execute, strictly increasing and unique. Commands persist, subject to protection.
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 two inputs can use different sources. Choose a curve source.
Saved State
Continuation preserves port operations, pressure protection, and event progress. Loading as a new initial field retains pressure, temperature, composition, and inventory, rebuilds operations from the target start and panel state, and rechecks protection.
Modeling Steps
- Add the supply tank and connect its outlet.
- Enter volume, elevation, and pressure limits.
- Select gas and initial pressure/temperature; set non-isothermal transient heat transfer if needed.
- Set initial state and transient actions or reopening after protection.
- Check initial pressure and downstream boundaries.
- Inspect flow, pressure, temperature, standard inventory, actual state, and protection.
View Results
- Pressure/flow. View MPa(g), standard Nm³/h, or actual m³/h. Positive supplies, negative charges. Steady-state flow is at initial pressure; use transients for depletion and duration.
- Inventory/composition. View Nm³ and gas/species trends during recharge. Low-pressure protection generally leaves gas in the tank. Integrate positive standard flow for delivered volume and recharge separately.
- Heat/protection. Compare tank/ambient temperatures and environmental heat input in kW; inspect actual port and protection states after actions.
Professional Theory
Inventory, Mass Conservation, and Tank Pressure
The fixed-volume lumped model uses one pressure, temperature, and composition. Let be volume in m³, absolute pressure in Pa, temperature in K, and composition. Mass in kg and standard inventory in Nm³ are
is current tank-gas density at global standard conditions. Geometric volume is fixed; standard inventory changes with mass and composition. Add the gauge reference and use consistent units when checking state from gauge pressure.
Let be actual flow in m³/s and port density. With mass flow positive outward, transient conservation is
Supply reduces mass; recharge increases it. Each step links density to pressure and temperature through the equation of state. At current composition, both pressure and temperature contribute. With fixed temperature/composition, pressure reflects inventory; non-isothermal temperature changes can alter pressure at the same inventory.
Port Pressure and Protection
| Condition | Port relation |
|---|---|
| Steady-state open | Node pressure equals initial tank pressure; network determines flow, inventory stays initial. |
| Transient open | Node pressure equals current tank pressure; pressure and flow evolve with inventory and network. |
| Closed | Zero flow; external pressure follows network boundaries/connectivity. |
Protection is checked at transient initialization and runtime. At or , the whole port latches closed, stopping both directions. An initial violation retains specified pressure in a closed initial field. Results show solved actual pressure.
Even after returning to , a later Open event must release the latch. Pressure is rechecked and can relatch. Independent steady-state only warns and follows panel initial state.
Non-Isothermal Energy Balance
Treat tank gas as a control volume with specific internal energy in J/kg. Nonnegative inlet/outlet mass flows use kg/s, and enthalpies J/kg. At fixed volume, neglecting kinetic/potential changes,
This is discretized by time step. Outflow uses tank temperature and composition; reverse inflow uses incoming network enthalpy. MIT Control-Volume Energy Balance
Environmental heat input in W follows coefficient , area , and ambient temperature :
Heat input is positive for warmer surroundings. removes environmental transfer, but flow enthalpy still affects temperature. Closed ports still allow environmental temperature/pressure changes. Non-isothermal steady-state uses initial tank temperature directly.
Reverse Charging and Gas Mixing
Mixing follows molar inventory. Total moles use kmol and mean molar mass kg/kmol. Vectors , are tank/incoming source-gas mole fractions. Convert mass to molar flows using incoming/tank molar masses respectively.
Different recharge composition gradually changes tank fractions and equation-of-state composition. Uniform withdrawal removes gases in tank proportions, leaving fractions unchanged. Zero flow preserves composition.
Applicability and Limits
- Finite inventory. Use transients for duration, depletion, and recharge. Use a Source for imposed pressure/flow.
- Lumped storage. Assumes uniform gas; stratification, local flow, and wall thermal storage are outside scope.
- Simulation protection. Limits trigger modeled isolation; equipment design determines actual safety interlocks and mechanical protection.
Common Inspections
- Zero or reverse flow. Check port/protection states and downstream boundaries; negative means recharge.
- Initial inventory mismatch. Check volume, gas, gauge reference, effective temperature, and standard conditions.
- Reopening fails. Event must follow start and pressure must be strictly within limits. A low-pressure latch also prevents self-recharge.
- Pressure changes while closed. Check ambient conditions, area, coefficient, tank temperature, and heat input.