Class ThermodynamicSystemContract

java.lang.Object
neqsim.util.validation.contracts.ThermodynamicSystemContract
All Implemented Interfaces:
ModuleContract<SystemInterface>

public class ThermodynamicSystemContract extends Object implements ModuleContract<SystemInterface>
Contract for thermodynamic systems.

Defines requirements and guarantees for SystemInterface implementations. AI agents can use this contract to validate fluid setup before running simulations.

Preconditions (what the system needs):

  • At least one component defined
  • Temperature > 0 K
  • Pressure > 0 bar
  • Mixing rule set for multi-component systems
  • Total moles > 0

Postconditions (what init() provides):

  • Valid phase fractions (sum to 1.0)
  • Finite compressibility factor
  • Finite enthalpy and entropy
Version:
1.0
Author:
NeqSim