Class ThermoValidator

java.lang.Object
neqsim.integration.ThermoValidator

public class ThermoValidator extends Object
Validators for thermodynamic systems (SystemInterface implementations).

Checks:

  • Components added to system
  • Mixing rule set (critical for multi-component systems)
  • Database created and initialized
  • Temperature and pressure in valid ranges
  • Composition normalized to ~1.0
  • Constructor Details

    • ThermoValidator

      public ThermoValidator()
  • Method Details

    • validateSystem

      public static ValidationFramework.ValidationResult validateSystem(SystemInterface system)
      Validate a thermodynamic system before use in equipment.
      Parameters:
      system - The system to validate
      Returns:
      ValidationResult with errors and warnings
    • validateForEquilibrium

      public static ValidationFramework.ValidationResult validateForEquilibrium(SystemInterface system)
      Validate that system is ready for equilibrium calculations (flash, VLE, etc.).
      Parameters:
      system - the thermodynamic system to validate
      Returns:
      validation result with any errors or warnings
    • validateSrkEos

      public static ValidationFramework.ValidationResult validateSrkEos(SystemInterface system)
      Validate specific EOS implementations (SrkEos, CPA, etc.).
      Parameters:
      system - the SRK-EOS system to validate
      Returns:
      validation result with any errors or warnings
    • validateCpAeos

      public static ValidationFramework.ValidationResult validateCpAeos(SystemInterface system)
      Validate CPA (Associating) systems for polar molecules.
      Parameters:
      system - the CPA system to validate
      Returns:
      validation result with any errors or warnings
    • isSystemReady

      public static boolean isSystemReady(SystemInterface system)
      Helper: Check if system appears to be properly initialized.
      Parameters:
      system - the system to check
      Returns:
      true if system is ready