Skip to content

Commit

Permalink
update response
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed May 2, 2024
1 parent b94a6ad commit e6f1062
Showing 1 changed file with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@ public class StreamResponse {
public Double massflowGas;
public Double massflowOil;
public Double massflowAqueous;
public HashMap<String, HashMap<String, Value>> properties =
new HashMap<String, HashMap<String, Value>>();
public HashMap<String, HashMap<String, Value>> conditions =
new HashMap<String, HashMap<String, Value>>();
public HashMap<String, HashMap<String, Value>> composition =
new HashMap<String, HashMap<String, Value>>();
public HashMap<String, HashMap<String, Value>> properties = new HashMap<String, HashMap<String, Value>>();
public HashMap<String, HashMap<String, Value>> conditions = new HashMap<String, HashMap<String, Value>>();
public HashMap<String, HashMap<String, Value>> composition = new HashMap<String, HashMap<String, Value>>();

/**
* <p>
* Constructor for StreamResponse.
* </p>
*
* @param inputStream a {@link neqsim.processSimulation.processEquipment.stream.StreamInterface}
* object
* @param inputStream a
* {@link neqsim.processSimulation.processEquipment.stream.StreamInterface}
* object
*/
public StreamResponse(StreamInterface inputStream) {

Expand Down Expand Up @@ -101,7 +99,7 @@ public StreamResponse(StreamInterface inputStream) {
conditions.put(name, newdata);
}


name = inputStream.getName();
newdata = new HashMap<String, Value>();
for (int i = 0; i < inputStream.getFluid().getNumberOfComponents(); i++) {
newdata.put(inputStream.getFluid().getComponent(i).getComponentName(), new Value(
Expand All @@ -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<String, Value>();

newdata.put("density",
Expand Down Expand Up @@ -197,5 +194,6 @@ public StreamResponse(StreamInterface inputStream) {
* print.
* </p>
*/
public void print() {}
public void print() {
}
}

0 comments on commit e6f1062

Please sign in to comment.