Class ThermoValidator
java.lang.Object
neqsim.integration.ThermoValidator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSystemReady(SystemInterface system) Helper: Check if system appears to be properly initialized.validateCpAeos(SystemInterface system) Validate CPA (Associating) systems for polar molecules.Validate that system is ready for equilibrium calculations (flash, VLE, etc.).validateSrkEos(SystemInterface system) Validate specific EOS implementations (SrkEos, CPA, etc.).validateSystem(SystemInterface system) Validate a thermodynamic system before use in equipment.
-
Constructor Details
-
ThermoValidator
public ThermoValidator()
-
-
Method Details
-
validateSystem
Validate a thermodynamic system before use in equipment.- Parameters:
system- The system to validate- Returns:
- ValidationResult with errors and warnings
-
validateForEquilibrium
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
Validate specific EOS implementations (SrkEos, CPA, etc.).- Parameters:
system- the SRK-EOS system to validate- Returns:
- validation result with any errors or warnings
-
validateCpAeos
Validate CPA (Associating) systems for polar molecules.- Parameters:
system- the CPA system to validate- Returns:
- validation result with any errors or warnings
-
isSystemReady
Helper: Check if system appears to be properly initialized.- Parameters:
system- the system to check- Returns:
- true if system is ready
-