Class MultiScenarioVFPGenerator.VFPTable
java.lang.Object
neqsim.process.util.optimizer.MultiScenarioVFPGenerator.VFPTable
- All Implemented Interfaces:
Serializable
- Enclosing class:
MultiScenarioVFPGenerator
VFP table containing all calculated points.
- Version:
- 1.0
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double[][][][]private boolean[][][][]private double[]private Stringprivate double[]private double[]private static final longprivate double[] -
Constructor Summary
ConstructorsConstructorDescriptionVFPTable(double[] flowRates, double[] outletPressures, double[] waterCuts, double[] GORs) Create VFP table with specified dimensions. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetBHP(int rateIdx, int thpIdx, int wcIdx, int gorIdx) Get BHP at specific indices.double[][][][]Get the BHP (required inlet pressure) table.intGet count of feasible points.double[]Get flow rates array.Get flow rate unit.double[]getGORs()Get GORs array.double[]Get outlet pressures array.intGet total number of points.double[]Get water cuts array.booleanisFeasible(int rateIdx, int thpIdx, int wcIdx, int gorIdx) Check if point is feasible.voidprintSlice(int wcIdx, int gorIdx) Print summary of VFP table at specific WC and GOR.voidsetFlowRateUnit(String unit) Set flow rate unit.(package private) voidSet a point result.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
flowRates
private double[] flowRates -
outletPressures
private double[] outletPressures -
waterCuts
private double[] waterCuts -
GORs
private double[] GORs -
bhpTable
private double[][][][] bhpTable -
feasible
private boolean[][][][] feasible -
flowRateUnit
-
-
Constructor Details
-
VFPTable
public VFPTable(double[] flowRates, double[] outletPressures, double[] waterCuts, double[] GORs) Create VFP table with specified dimensions.- Parameters:
flowRates- flow rate valuesoutletPressures- outlet pressure valueswaterCuts- water cut valuesGORs- GOR values
-
-
Method Details
-
setPoint
Set a point result.- Parameters:
point- the calculated point
-
getBHPTable
public double[][][][] getBHPTable()Get the BHP (required inlet pressure) table.- Returns:
- 4D array [rate][thp][wc][gor]
-
getBHP
public double getBHP(int rateIdx, int thpIdx, int wcIdx, int gorIdx) Get BHP at specific indices.- Parameters:
rateIdx- rate indexthpIdx- THP indexwcIdx- water cut indexgorIdx- GOR index- Returns:
- BHP value or NaN if infeasible
-
isFeasible
public boolean isFeasible(int rateIdx, int thpIdx, int wcIdx, int gorIdx) Check if point is feasible.- Parameters:
rateIdx- rate indexthpIdx- THP indexwcIdx- water cut indexgorIdx- GOR index- Returns:
- true if feasible
-
getFeasibleCount
public int getFeasibleCount()Get count of feasible points.- Returns:
- number of feasible points
-
getTotalPoints
public int getTotalPoints()Get total number of points.- Returns:
- total points
-
setFlowRateUnit
-
getFlowRateUnit
-
getFlowRates
public double[] getFlowRates()Get flow rates array.- Returns:
- flow rates
-
getOutletPressures
public double[] getOutletPressures()Get outlet pressures array.- Returns:
- outlet pressures
-
getWaterCuts
public double[] getWaterCuts()Get water cuts array.- Returns:
- water cuts
-
getGORs
public double[] getGORs()Get GORs array.- Returns:
- GORs
-
printSlice
public void printSlice(int wcIdx, int gorIdx) Print summary of VFP table at specific WC and GOR.- Parameters:
wcIdx- water cut indexgorIdx- GOR index
-