Class ConformityRuleSet
java.lang.Object
neqsim.process.mechanicaldesign.separator.conformity.ConformityRuleSet
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConformityRuleSet.TR3500RuleSet
Defines conformity rules for a specific design standard.
Each rule set defines what checks to perform based on the standard (TR3500, Shell DEP, API 12J, NORSOK P-002) and what internals are installed. The checks are internals-aware: inlet devices trigger momentum checks, demisting cyclones trigger drainage checks, mesh pads trigger mesh K-value checks, etc.
Usage:
ConformityRuleSet rules = ConformityRuleSet.create("TR3500");
ConformityReport report = rules.evaluate(scrubberMechDesign);
- Version:
- 1.0
- Author:
- NeqSim Development Team
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classEquinor TR3500 conformity rules for gas scrubbers. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final longSerialization version UID. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConformityRuleSet(String name) Constructs a ConformityRuleSet. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConformityRuleSetCreates a rule set for the named standard.abstract ConformityReportevaluate(GasScrubberMechanicalDesign design) Evaluates all applicable conformity checks against the given mechanical design.Returns the names of CapacityConstraints that this standard defines.getName()Gets the standard name.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
name
-
-
Constructor Details
-
ConformityRuleSet
Constructs a ConformityRuleSet.- Parameters:
name- the standard name
-
-
Method Details
-
create
Creates a rule set for the named standard.- Parameters:
standardName- the standard identifier: "TR3500", "API-12J", "Shell-DEP", "NORSOK-P002"- Returns:
- a ConformityRuleSet for the named standard
- Throws:
IllegalArgumentException- if the standard is not recognized
-
getName
-
evaluate
Evaluates all applicable conformity checks against the given mechanical design.The checks run depend on what internals are installed. The method reads operating conditions from the scrubber's current fluid state (after the most recent run).
- Parameters:
design- the scrubber mechanical design to check- Returns:
- a conformity report with all check results
-
getConstraintNames
Returns the names of CapacityConstraints that this standard defines.These can be used to enable the corresponding constraints on the Separator via
separator.enableConstraints(...).- Parameters:
design- the mechanical design (to check which internals are installed)- Returns:
- list of constraint names to enable
-