Skip to main content

Configure Gas and Global Simulation Settings

Global settings apply to the current model. Before configuring sources, loads, pipelines, and equipment, select the simulation scheme, enter gas data compatible with the equation of state, and check the reference conditions.

Before you start

If you have not entered the gas network workspace, see Open the Gas Network Workspace.

Open Global Settings​

  1. Open the gas network model to edit.
  2. Click a blank canvas area to deselect components.
  3. Select Parameters on the right to display the model's global settings.

The red boxes in this empty model identify the canvas and global parameter panel.

Model canvas and global parameter panel in an empty model
Model canvas and global parameter panel in an empty model

Select a Simulation Scheme​

Expand Simulation Scheme in the parameter panel. Select the simulation type, thermal model, and gas equation of state. The image shows steady-state simulation, a non-isothermal model, and BWRS.

Simulation type, thermal model, and gas equation of state
Simulation type, thermal model, and gas equation of state
SettingOptions or inputGuidance
Simulation typeSteady-state or transientSteady-state calculates equilibrium at fixed conditions. Transient calculates the response to changing boundaries or equipment states.
Thermal modelIsothermal or non-isothermalIsothermal uses a uniform gas temperature. Non-isothermal calculates gas temperature changes caused by flow and heat transfer.
Isothermal temperature [°C]Uniform model gas temperatureShown for the isothermal model. Enter the temperature used by the model.
Gas equation of stateBWRS or AGA8GrossChoose according to available gas data and use the corresponding library below.

Start with steady-state simulation to check connections, boundaries, and results, then configure transient simulation for the analysis objective.

Gas and Reference Conditions​

Enter Gas Data​

Expand Gas Library, click Edit Data beside the library matching the equation of state, and enter gas names and quality data.

Equation of stateMatching libraryData
BWRSComponent Gas LibraryEnter mole percentages for methane, ethane, nitrogen, carbon dioxide, and other species.
AGA8GrossSimple Gas LibraryEnter relative density, CO₂ mole percentage, and gross heating value (MJ/Nm³), referenced to the standard pressure and temperature under Reference Conditions.

Both libraries are saved with the model. Source supply gas and initial tank gas must be selected from the library for the active equation of state. Recheck these selections after switching equations of state.

The mole fraction column in the Component Gas Library uses percentages: enter 90 for 90% methane. Each gas needs at least one species; species must not repeat, and percentages must sum to 100%. Multiply fractions expressed from 0 to 1 by 100 before entry. Gas names must also be unique across both libraries.

Set Reference Conditions​

Expand Reference Conditions and check the standard state and gauge pressure reference separately.

SettingPurposeGuidance
Standard pressure [kPa(a)]Reference pressure for standard volume flow and standard linepack; default 101.325.Match design documents, metering rules, or field data.
Standard temperature [°C]Reference temperature for standard volume flow and standard linepack; default 20.Together with standard pressure, defines the standard state.
Gauge reference pressure [kPa(a)]Absolute pressure corresponding to zero gauge pressure; default 101.325.Match the gauge reference used by the pressure data.

Gas component pressure boundaries generally use gauge pressure, while property calculations use absolute pressure:

pa=pg+prefp_{\mathrm{a}}=p_{\mathrm{g}}+p_{\mathrm{ref}}

Here pap_{\mathrm{a}} is absolute pressure, pgp_{\mathrm{g}} is gauge pressure, and prefp_{\mathrm{ref}} is gauge reference pressure. Use the same units in the conversion.

For a reference of 101.325 kPa(a), 6 MPag equals 6.101325 MPa(a). Convert both inlet and outlet pressures to absolute pressure before calculating pressure ratios. Flow in Nm³/h is converted using standard pressure and temperature.

Configure the Curve Database​

What the Curve Database Stores​

The database centralizes environmental conditions and equipment performance data for the current model. Environmental curves describe quantities such as temperature and the overall heat transfer coefficient over time. Performance curves describe relationships such as valve opening versus flow coefficient or compressor speed, flow, and head.

Each curve stores a name, data points, and notes with the model. Multiple components can reference the same curve for a shared environment or equipment specification. A curve takes effect when a component references it and enables the corresponding calculation mode. Models that use only fixed values or local curves can leave the database empty.

Available Curve Types​

The editor groups curves into time-varying curves and equipment performance curves.

Time-Varying Curves​

Enter each time and the corresponding value. The software interpolates linearly between adjacent times.

Curve typeData and unitsUse
TemperatureTime and temperature (°C)Ambient conditions for pipes and tanks, soil, air, or water around a transmission pipeline, or external temperature for a heat exchanger. Use separate curves for different locations or purposes.
Overall heat transfer coefficientTime and coefficient (W/(m²·K))Heat transfer for pipes, tanks, and exchangers. Record the reference surface area in the notes.
Heat flow per unit lengthTime and heat flow (W/m)Prescribed external heat flow for a transmission pipeline. Positive values indicate heat loss from the gas.
Heat fluxTime and flux (W/m²)Specified heat flux for a heat exchanger. Positive values heat the gas.
Wind speedTime and speed (m/s)Wind speed at a specified location.
Solar irradianceTime and irradiance (W/m²)Instantaneous solar irradiance.
Water velocityTime and velocity (m/s)Water velocity around the equipment.

The gas workspace can store wind speed, solar irradiance, and water velocity curves. Gas components currently provide no input references for these three types.

Equipment Performance Curves​

Enter equipment data against opening, pressure ratio, or speed as appropriate. Relief valve action curves use full-stroke time percentage.

Curve typeRequired dataUse
Valve flow coefficientOpening (%) and absolute KvCustom flow characteristics for shut-off, check, and both relief valve types.
Valve critical pressure differential ratio factorOpening (%) and xTGas choked-flow calculation for shut-off and check valves.
Centrifugal compressor pressure-ratio mapSpeed (rpm), actual inlet volumetric flow (m³/h), pressure ratio, and adiabatic efficiencyPressure-ratio map. Use the ratio of absolute outlet to absolute inlet pressure.
Centrifugal compressor polytropic-head mapSpeed (rpm), actual inlet volumetric flow per unit (m³/h), polytropic head (m), and polytropic efficiencyPolytropic-head map.
Centrifugal compressor adiabatic-head mapSpeed (rpm), actual inlet volumetric flow per unit (m³/h), adiabatic head (m), and adiabatic efficiencyAdiabatic-head map.
Piston compressor compression efficiencyPressure ratio and compression efficiencyCompression efficiency against absolute pressure ratio for the empirical process.
Piston compressor mechanical efficiencyActual speed (rpm) and mechanical efficiencyEmpirical process with a mechanical efficiency curve enabled.
Relief valve opening actionFull-stroke time (%) and actual opening (%)Stroke from fully closed to fully open for either relief valve type using independent action curves.
Relief valve closing actionFull-stroke time (%) and actual opening (%)Stroke from fully open to fully closed for either relief valve type using independent action curves.

Use actual volumetric flow at the equipment inlet for performance maps. Convert standard flow in Nm³/h to inlet conditions first. Enter efficiencies as fractions, such as 0.8 for 80%. Set each relief valve's opening and closing stroke times in its component parameters.

Configuration Steps​

  1. Click a blank part of the canvas. In the global Parameters panel, expand Curve Database and click Edit Object.
  2. Open the data table for the required type under Time-Varying Curves or Equipment Performance Curves.
  3. Add a curve and enter a name that identifies its location, equipment, or case. Use a unique name within the type and remove leading or trailing spaces.
  4. Open the point list and follow its column names and units. For example, enter time and temperature for a temperature curve, opening and Kv for a valve flow coefficient curve, or group centrifugal compressor map points by speed.
  5. Add notes for the data source, applicable equipment, measurement location, test conditions, and usable range. Check preset examples against engineering data before use.
  6. Confirm the point list and database edits, address any validation messages, and save the model. Reopen it to check the name, points, and notes.

To share ambient temperature across equipment, create a curve such as Case A Ambient Temperature with a point at calculation start and end. Enter the same temperature at both times for constant conditions, or add intermediate points for changes. Reference the curve from each applicable component.

Time must increase strictly without duplicates. Steady-state curves must include the start time. Transient curves must cover the entire calculation interval because the software does not extrapolate. Recheck coverage after changing solver times.

References are type-specific. Changing a shared curve affects every component that references it. Update affected references before renaming or deleting a curve, then validate the model again.

Use Curves on Components​

Select the component and use its parameter panel to choose the curve data. The curve source belongs to the component parameters.

Choose a Curve Source​

Enable the appropriate mode, such as Time Curve, a custom valve characteristic, or a compressor map type, then choose the curve source.

Curve sourceHow to enter dataWhen to use it
Edit Local CurveEnter points in the selected component's curve table. Data are stored with that component.Equipment-specific data or a case that needs independent adjustments.
Reference Curve DatabaseCreate a named curve of the matching type in the global database, then select its name on the component.Data shared by multiple components or maintained centrally.

Set sources independently for temperature, overall heat transfer coefficient, valve Kv, and compressor maps. One component can use both kinds of source. After switching, check the active points or referenced name. Check all referencing components when changing a shared curve.

  • Time curves. Use strictly increasing times. Cover calculation start for steady state or the entire interval for a transient. The software interpolates linearly within that range. Check coverage after changing solver times.
  • Valve characteristics and action curves. Check the distinction between opening percentage, full-stroke time percentage, and actual duration. Enter absolute Kv for Kv curves and follow the required direction, endpoints, ranges, and monotonicity for each action curve.
  • Performance maps and efficiency curves. Follow the equipment requirements for speed, actual flow, absolute pressure ratio, head, efficiency, and interpolation or fitting. Enter 0.8 for 80% efficiency.

Replace example and placeholder rows with equipment data. Validate, save, and reopen the model to check the source, point list, or reference name.

For time variation along a transmission pipeline, enter the distances and the corresponding curve names on the component. The database stores the time curves used at those locations.

Set Calculation Times​

Expand Solver Settings. Steady-state shows only Calculation Start Time, used to evaluate referenced time curves. To configure transient time settings, first select Transient under Simulation Scheme.

Four transient calculation time settings
Four transient calculation time settings
SettingMeaningGuidance
Calculation start timeStart of the dynamic process.Use the same time base as boundaries, events, and curves.
Calculation end timeEnd of the dynamic process.Must follow the start and cover the disturbance and response.
Maximum time step [s]Largest interval allowed for a solver step.Use smaller values for fast valve actions, abrupt boundaries, or rapid control.
Minimum time step [s]Lower limit for adaptive stepping and retries.Usually keep the default; adjust with regard to process speed and convergence if needed.

Both time steps can range from 0.001 to 3600 s, and the minimum must not exceed the maximum. To locate the exact end time, control events, or full/empty tank boundaries, the solver may temporarily step below the specified minimum. Where available, set result sampling intervals separately in component parameters.

External Conditions for Non-Isothermal Calculations​

Provide external conditions for the selected equipment heat transfer method. Enter local curves for time-varying conditions or reference named curves in the database.

Curve typeDataUse
TemperatureAir, water, or soil temperature at burial depthMatch above-ground, submerged, or buried installation.
Overall heat transfer coefficient, heat input per unit length, or heat fluxTime-varying coefficient, pipeline heat input per unit length, or heat exchanger heat fluxSelect the type matching the component's heat transfer input.

Also check source supply temperature and equipment heat transfer parameters.

Choose a Kernel Execution Mode​

Expand Development and Debugging in the global settings. For a regular gas pipeline simulation, use Platform Image. New models take their Runtime Image from the workspace default. Models keep their saved image selections.

To run the entire case with a local command, set Kernel Execution Mode to Bridge, then select the paired Bridge and a Compute Configuration with the full-kernel capability. Runtime Image is disabled in this mode. Its saved value is available when you switch back to Platform Image.

If external software handles part of the calculation, such as a controller running in Simulink, the main kernel can still use Platform Image. Select the participant configuration in the Communication Interface on the canvas, then set the Communication Interval and Communication Wait Timeout in the global settings. All interfaces share the same interval, and the timeout bounds each wait. See Understand and use NexusFlow Bridge and Co-simulate with Simulink for the full workflow.

Before Modeling​

Check that:

  • The simulation type matches the analysis objective.
  • The equation of state matches the gas library, and gas data are complete.
  • Standard pressure, standard temperature, and gauge reference pressure match engineering data.
  • Isothermal temperature is set for an isothermal model.
  • Transient start and end times cover every event.
  • Maximum and minimum time steps suit the process speed.

You can keep the Calculation Configuration and Development and Debugging defaults when building your first model.

Next Step​

Continue with Build a Single-Pipeline Steady-State Model to configure the source, transmission pipeline, and downstream demand boundary.