Class CharacterizationValidationReport
java.lang.Object
neqsim.thermo.characterization.CharacterizationValidationReport
Validation report for fluid characterization operations.
This class captures key properties before and after characterization to verify that the operation preserves mass, maintains reasonable property values, and achieves the desired component structure.
- Author:
- ESOL
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final doubleprivate final doubleprivate final doubleprivate final Stringprivate final intprivate final doubleprivate final intprivate final doubleprivate final doubleprivate final doubleprivate final Stringprivate final intprivate final doubleprivate final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionprivate static doubleprivate static intgenerate(SystemInterface source, SystemInterface reference, SystemInterface result) Generate a validation report comparing source and characterized fluids.doubleGet the mass conservation error as a percentage.doubleGet the moles conservation error as a percentage.intGet the number of pseudo-components in the result fluid.intGet the number of pseudo-components in the source fluid.Get any warnings generated during validation.booleanisValid()Check if the characterization is valid (no warnings).Generate a formatted report string.toString()
-
Field Details
-
sourceFluidName
-
referenceFluidName
-
sourcePseudoComponentCount
private final int sourcePseudoComponentCount -
referencePseudoComponentCount
private final int referencePseudoComponentCount -
resultPseudoComponentCount
private final int resultPseudoComponentCount -
sourceTotalMoles
private final double sourceTotalMoles -
sourceTotalMass
private final double sourceTotalMass -
sourceAverageMW
private final double sourceAverageMW -
resultTotalMoles
private final double resultTotalMoles -
resultTotalMass
private final double resultTotalMass -
resultAverageMW
private final double resultAverageMW -
massDifferencePercent
private final double massDifferencePercent -
molesDifferencePercent
private final double molesDifferencePercent -
mwDifferencePercent
private final double mwDifferencePercent -
sourcePseudoComponentMoles
-
resultPseudoComponentMoles
-
warnings
-
isValid
private final boolean isValid
-
-
Constructor Details
-
CharacterizationValidationReport
-
-
Method Details
-
generate
public static CharacterizationValidationReport generate(SystemInterface source, SystemInterface reference, SystemInterface result) Generate a validation report comparing source and characterized fluids.- Parameters:
source- the original source fluidreference- the reference fluid used for characterizationresult- the characterized result fluid- Returns:
- validation report
-
countPseudoComponents
-
calculateTotalMass
-
getPseudoComponentMoles
-
isValid
public boolean isValid()Check if the characterization is valid (no warnings).- Returns:
- true if valid
-
getWarnings
-
getMassDifferencePercent
public double getMassDifferencePercent()Get the mass conservation error as a percentage.- Returns:
- mass difference percentage
-
getMolesDifferencePercent
public double getMolesDifferencePercent()Get the moles conservation error as a percentage.- Returns:
- moles difference percentage
-
getSourcePseudoComponentCount
public int getSourcePseudoComponentCount()Get the number of pseudo-components in the source fluid.- Returns:
- source PC count
-
getResultPseudoComponentCount
public int getResultPseudoComponentCount()Get the number of pseudo-components in the result fluid.- Returns:
- result PC count
-
toReportString
-
toString
-