-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more pump chart lookup tables (#1260)
- Loading branch information
Showing
4 changed files
with
164 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/main/java/neqsim/process/equipment/pump/PumpChartAlternativeMapLookupExtrapolate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package neqsim.process.equipment.pump; | ||
|
||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
import neqsim.process.equipment.compressor.CompressorChartAlternativeMapLookupExtrapolate; | ||
|
||
/** | ||
* <p> | ||
* CompressorChartAlternativeMapLookupExtrapolate class. | ||
* </p> | ||
* | ||
* @author ASMF | ||
*/ | ||
public class PumpChartAlternativeMapLookupExtrapolate | ||
extends CompressorChartAlternativeMapLookupExtrapolate implements PumpChartInterface { | ||
/** Serialization version UID. */ | ||
private static final long serialVersionUID = 1000; | ||
/** Logger object for class. */ | ||
static Logger logger = LogManager.getLogger(PumpChartAlternativeMapLookupExtrapolate.class); | ||
boolean usePumpChart = false; | ||
|
||
@Override | ||
public double getHead(double flow, double speed) { | ||
// Implement the method logic here | ||
return getPolytropicHead(flow, speed); | ||
} | ||
|
||
@Override | ||
public boolean isUsePumpChart() { | ||
// Implement the method logic here | ||
return usePumpChart; | ||
} | ||
|
||
@Override | ||
public double getEfficiency(double flow, double speed) { | ||
// Implement the method logic here | ||
return getPolytropicEfficiency(flow, speed); | ||
} | ||
|
||
@Override | ||
public void setUsePumpChart(boolean usePumpChart) { | ||
this.usePumpChart = usePumpChart; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters