Skip to the content.

Select the utility model

Task API Property basis
Explicit fresh-water side of a two-stream exchanger SystemWaterIF97(T_K, P_bara) and HeatExchanger IAPWS-IF97 enthalpy, heat capacity and density
Explicit seawater side SystemSeawater(T_K, P_bara, salinity_gPerKg) and HeatExchanger IF97 water plus IAPWS-08 saline Gibbs energy, following IAPWS Advisory Note 5
Utility demand for a specified process outlet WaterCooler Reference utility enthalpy rise; setCoolingWaterSalinity(35.0) selects seawater
Plant cooling duties, supply flow and pumping CoolingWaterSystem Reference solution enthalpy difference and supply density

The reference-system constructors already add one nominal mole of water. Set the flow with setTotalFlowRate(...); do not add another component or specify an EOS mixing rule. Each heat-exchanger side keeps its own fluid model. Selecting the WATER physical-property package on an SRK, PR or CPA fluid does not replace its EOS enthalpy or heat capacity with IF97. WaterCooler preserves the process fluid’s property package.

For liquid reference cooling water, initialized transport properties use IAPWS R12-08 viscosity and R15-11 thermal conductivity. Seawater conductivity adds the pressure-dependent increment of IAPWS G10-15. Seawater viscosity uses the Sharqawy et al. (2010) salinity multiplier applied to IAPWS water at the actual pressure. The multiplier’s high-pressure use is an engineering extension of near-atmospheric data. Critical enhancements are omitted in this low-temperature cooling range. Call initProperties() after a flash before reading transport properties or using them in a rating calculation.

Reproducible gas cooler

This public synthetic case cools a methane-rich gas with a separate 35 g/kg seawater stream, then sizes a specified-temperature cooler and its cooling-water system. The exact Java example is compiled and executed by ReferenceCoolingWaterDocumentationTest.

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import neqsim.process.equipment.heatexchanger.CoolingWaterSystem;
import neqsim.process.equipment.heatexchanger.HeatExchanger;
import neqsim.process.equipment.heatexchanger.WaterCooler;
import neqsim.process.equipment.stream.Stream;
import neqsim.process.processmodel.ProcessSystem;
import neqsim.thermo.system.SystemSeawater;
import neqsim.thermo.system.SystemSrkEos;

/**
 * Reference seawater cooling of a synthetic natural gas.
 * @author NeqSim Development Team
 * @version 1.0
 */
public final class CoolingWaterGuideExample {
  private static final Logger logger = LogManager.getLogger(CoolingWaterGuideExample.class);

  /** Prevents instantiation. */
  private CoolingWaterGuideExample() {
  }

  /**
   * Runs explicit-stream and utility-demand cooling examples.
   * @param args unused arguments
   */
  public static void main(String[] args) {
    SystemSrkEos gas = new SystemSrkEos(393.15, 20.0);
    gas.addComponent("methane", 0.90);
    gas.addComponent("ethane", 0.10);
    gas.setMixingRule("classic");
    gas.setTotalFlowRate(1.0, "kg/sec");
    Stream hot = new Stream("hot gas", gas);

    SystemSeawater seawater = new SystemSeawater(288.15, 3.0, 35.0);
    seawater.setTotalFlowRate(2.0, "kg/sec");
    Stream cooling = new Stream("seawater supply", seawater);
    HeatExchanger exchanger = new HeatExchanger("E-100", hot, cooling);
    exchanger.setUAvalue(500.0); // W/K, supplied design assumption
    exchanger.setGuessOutTemperature(65.0, "C");

    ProcessSystem process = new ProcessSystem();
    process.add(hot);
    process.add(cooling);
    process.add(exchanger);
    process.run();
    double hotChange = exchanger.getOutStream(0).getFluid().getEnthalpy()
        - hot.getFluid().getEnthalpy();
    double coldChange = exchanger.getOutStream(1).getFluid().getEnthalpy()
        - cooling.getFluid().getEnthalpy();
    if (Math.abs(hotChange + coldChange) > 0.01) {
      throw new IllegalStateException("Exchanger energy balance exceeds 0.01 W");
    }
    exchanger.getOutStream(1).getFluid().initProperties();
    logger.info("Hot outlet {} C; seawater return {} C; rejected heat {} kW",
        exchanger.getOutStream(0).getTemperature("C"),
        exchanger.getOutStream(1).getTemperature("C"), Math.abs(hotChange) / 1000.0);

    WaterCooler demand = new WaterCooler("E-101", hot);
    demand.setOutletTemperature(40.0, "C");
    demand.setWaterInletTemperature(15.0, "C");
    demand.setWaterOutletTemperature(25.0, "C");
    demand.setWaterPressure(3.0, "bara");
    demand.setCoolingWaterSalinity(35.0); // g salt/kg solution
    demand.run();

    CoolingWaterSystem system = new CoolingWaterSystem();
    system.addCoolingRequirement("E-101", -demand.getDuty() / 1000.0, 40.0, 10.0);
    system.setCoolingWaterSupplyTemperature(15.0); // C
    system.setCoolingWaterReturnTemperature(25.0); // C
    system.setCoolingWaterPressure(3.0); // bara, independent of hydraulic pressure drop
    system.setCoolingWaterSalinity(35.0); // g/kg solution
    system.setTowerFanPowerFraction(0.0); // once-through seawater; no cooling tower
    system.calculate();
    if (Math.abs(system.getTotalCWFlowRate() - demand.getCoolingWaterFlowRate("m3/hr")) > 1e-6) {
      throw new IllegalStateException("Cooling utility flow estimates disagree");
    }
    logger.info("Seawater demand {} kg/s or {} actual m3/hr at supply conditions",
        demand.getCoolingWaterFlowRate("kg/sec"), system.getTotalCWFlowRate());
  }
}

The same public Java constructors and methods are available through JPype in Python. Use the installed NeqSim version’s documented Java bridge. This API may be available in source before the next released Python package includes it.

Balances and interpretation

Utility demand uses temperature-dependent solution enthalpy rather than an assumed constant heat capacity. This demand does not establish that a particular UA or installed exchanger can achieve the process target; evaluate that separately with the two-stream model:

\[\dot m_{cw}=\frac{-Q_{process}}{h(T_{return},P,S)-h(T_{supply},P,S)}\]

Here $Q_{process}$ is negative for cooling and measured in W; $h$ is in J/kg solution; mass flow is in kg/s. WaterCooler accepts mass-flow units and actual volume units evaluated at the utility inlet. Standard gas-volume units are rejected. CoolingWaterSystem.getTotalCWFlowRate() returns actual m³/h at the supply state; pump power uses that volume and the separately specified hydraulic pressure drop. Tower-fan power remains a screening assumption: set its fraction to zero for a once-through seawater system without a tower.

HeatExchanger retains its effectiveness/NTU method with secant heat-capacity rates. A saline utility capacity probe is bounded by its property envelope, while maximum heat transfer uses the actual inlet temperature difference. This allows a 120 °C process inlet with a seawater outlet below 79.85 °C without evaluating seawater at a fictitious 120 °C endpoint. Fixed-UA operation, specified process outlet temperature, thermal/hydraulic rating and fouling screening have balance tests. An actual seawater outlet outside the model envelope is rejected. This does not qualify internal pinch profiles, boiling, transient hydraulic response, material selection or exchanger mechanical design.

Applicability and composition

Validation and sources

CoolingWaterReferenceTest checks R12-08/R15-11 Table 4, every G10-15 Table 2 saline conductivity increment, AN5-13(2016) Table A1 at normal salinity/0 °C and 100 g/kg/353 K, and finite-difference equality of heat capacity and the enthalpy temperature derivative. ReferenceCoolingWaterTest checks density/volume closure, initialized transport properties, zero salinity, bounded PH inversion, repeat runs, clone ownership and serialization. ReferenceWaterHeatExchangerTest checks process-side model preservation, utility-flow units, both capacity orderings, changed salinity and exchanger balances. These are published property and synthetic integration checks, not a field-performance qualification.

The model-specification gate also runs the SEAWATER_35 fixture: 27 density, enthalpy and heat-capacity cases at nine independent iapws 1.5.5 SeaWater(IF97=True) reference states from 278.15 to 308.15 K and 1.01325 to 50 bara. This catalog coverage is restricted to 35 g/kg solution. The IF97 state control verifies H = U + PV and density/volume closure with SI volume conversion in both the liquid and steam regions.

  1. IAPWS R7-97(2012), Industrial Formulation 1997.
  2. IAPWS R13-08, Thermodynamic Properties of Seawater.
  3. IAPWS AN5-13(2016), Industrial Calculation of Seawater Properties.
  4. IAPWS R12-08, Viscosity and R15-11, Thermal Conductivity.
  5. IAPWS G10-15, Thermal Conductivity of Seawater.
  6. Sharqawy, Lienhard and Zubair (2010), Thermophysical properties of seawater, Eqs. 22–23. Equations are implemented from the publications; no MIT MATLAB library code is redistributed.