diff --git a/src/main/java/neqsim/processSimulation/util/monitor/StreamResponse.java b/src/main/java/neqsim/processSimulation/util/monitor/StreamResponse.java index 3939e340b7..0bdac75fa7 100644 --- a/src/main/java/neqsim/processSimulation/util/monitor/StreamResponse.java +++ b/src/main/java/neqsim/processSimulation/util/monitor/StreamResponse.java @@ -23,20 +23,18 @@ public class StreamResponse { public Double massflowGas; public Double massflowOil; public Double massflowAqueous; - public HashMap> properties = - new HashMap>(); - public HashMap> conditions = - new HashMap>(); - public HashMap> composition = - new HashMap>(); + public HashMap> properties = new HashMap>(); + public HashMap> conditions = new HashMap>(); + public HashMap> composition = new HashMap>(); /** *

* Constructor for StreamResponse. *

* - * @param inputStream a {@link neqsim.processSimulation.processEquipment.stream.StreamInterface} - * object + * @param inputStream a + * {@link neqsim.processSimulation.processEquipment.stream.StreamInterface} + * object */ public StreamResponse(StreamInterface inputStream) { @@ -101,7 +99,7 @@ public StreamResponse(StreamInterface inputStream) { conditions.put(name, newdata); } - + name = inputStream.getName(); newdata = new HashMap(); for (int i = 0; i < inputStream.getFluid().getNumberOfComponents(); i++) { newdata.put(inputStream.getFluid().getComponent(i).getComponentName(), new Value( @@ -119,11 +117,10 @@ public StreamResponse(StreamInterface inputStream) { new Value(Double.toString(inputStream.getFluid().getPhase(j).getWtFrac(i)), "weight fraction")); } - composition.put(inputStream.getFluid().getPhase(j).getPhaseTypeName(), newdata); + composition.put(inputStream.getFluid().getPhase(j).getPhaseTypeName(), newdata2); + composition.put(inputStream.getFluid().getPhase(j).getPhaseTypeName() + "_wt", newdata); } - - newdata = new HashMap(); newdata.put("density", @@ -197,5 +194,6 @@ public StreamResponse(StreamInterface inputStream) { * print. *

*/ - public void print() {} + public void print() { + } }