Class FlashResult
java.lang.Object
neqsim.mcp.model.FlashResult
Typed result model for flash calculations.
Contains the flash metadata (model, flash type, number of phases, phase names) and the full fluid
response. This object is the typed counterpart to the JSON returned by
FlashRunner.run(String).
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final FluidResponseprivate final Stringprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionFlashResult(String model, String flashType, int numberOfPhases, List<String> phases, FluidResponse fluidResponse) Creates a flash result. -
Method Summary
Modifier and TypeMethodDescriptionGets the flash type that was performed.Gets the full fluid response.getModel()Gets the thermodynamic model name.intGets the number of phases found.Gets the list of phase names.
-
Field Details
-
model
-
flashType
-
numberOfPhases
private final int numberOfPhases -
phases
-
fluidResponse
-
-
Constructor Details
-
FlashResult
public FlashResult(String model, String flashType, int numberOfPhases, List<String> phases, FluidResponse fluidResponse) Creates a flash result.- Parameters:
model- the thermodynamic model nameflashType- the flash type performednumberOfPhases- the number of phases foundphases- the list of phase namesfluidResponse- the full fluid response
-
-
Method Details
-
getModel
-
getFlashType
-
getNumberOfPhases
public int getNumberOfPhases()Gets the number of phases found.- Returns:
- the phase count
-
getPhases
-
getFluidResponse
Gets the full fluid response.- Returns:
- the FluidResponse object
-