Skip to content

Commit

Permalink
use key overall in stream and fluid response (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol authored Aug 1, 2024
1 parent 752e4ec commit eef5907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public FluidResponse(String fluidname, SystemInterface inputFluid) {
new Value(
Double.toString(inputFluid.getEnthalpy(neqsim.util.unit.Units.getSymbol("enthalpy"))),
neqsim.util.unit.Units.getSymbol("enthalpy")));
conditions.put(name, newdata);
conditions.put("overall", newdata);

for (int i = 0; i < inputFluid.getNumberOfPhases(); i++) {
String name = inputFluid.getPhase(i).getPhaseTypeName();
Expand Down Expand Up @@ -125,7 +125,7 @@ public FluidResponse(String fluidname, SystemInterface inputFluid) {
newdata.put(inputFluid.getComponent(i).getComponentName(),
new Value(Double.toString(inputFluid.getComponent(i).getz()), "mole fraction"));
}
composition.put(name, newdata);
composition.put("overall", newdata);
for (int j = 0; j < inputFluid.getNumberOfPhases(); j++) {
newdata = new HashMap<String, Value>();
HashMap<String, Value> newdata2 = new HashMap<String, Value>();
Expand Down Expand Up @@ -157,7 +157,7 @@ public FluidResponse(String fluidname, SystemInterface inputFluid) {
Double
.toString(inputFluid.getFlowRate(neqsim.util.unit.Units.getSymbol("volume flow"))),
neqsim.util.unit.Units.getSymbol("volume flow")));
properties.put(inputFluid.getFluidName(), newdata);
properties.put("overall", newdata);
for (int i = 0; i < inputFluid.getNumberOfPhases(); i++) {
newdata = new HashMap<String, Value>();
String name = inputFluid.getPhase(i).getPhaseTypeName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public StreamResponse(StreamInterface inputStream) {
Double.toString(
inputStream.getFluid().getEnthalpy(neqsim.util.unit.Units.getSymbol("enthalpy"))),
neqsim.util.unit.Units.getSymbol("enthalpy")));
conditions.put(name, newdata);
conditions.put("overall", newdata);

for (int i = 0; i < inputStream.getFluid().getNumberOfPhases(); i++) {
String name = inputStream.getFluid().getPhase(i).getPhaseTypeName();
Expand Down Expand Up @@ -101,7 +101,7 @@ public StreamResponse(StreamInterface inputStream) {
newdata.put(inputStream.getFluid().getComponent(i).getComponentName(), new Value(
Double.toString(inputStream.getFluid().getComponent(i).getz()), "mole fraction"));
}
composition.put(name, newdata);
composition.put("overall", newdata);
for (int j = 0; j < inputStream.getFluid().getNumberOfPhases(); j++) {
newdata = new HashMap<String, Value>();
HashMap<String, Value> newdata2 = new HashMap<String, Value>();
Expand Down Expand Up @@ -157,7 +157,7 @@ public StreamResponse(StreamInterface inputStream) {
inputStream.getFluid().getEntropy(neqsim.util.unit.Units.getSymbol("entropy"))),
neqsim.util.unit.Units.getSymbol("entropy")));

properties.put(inputStream.getName(), newdata);
properties.put("overall", newdata);
for (int i = 0; i < inputStream.getFluid().getNumberOfPhases(); i++) {
newdata = new HashMap<String, Value>();
String name = inputStream.getFluid().getPhase(i).getPhaseTypeName();
Expand Down

0 comments on commit eef5907

Please sign in to comment.