Class ElectricalCable
java.lang.Object
neqsim.process.electricaldesign.components.ElectricalCable
- All Implemented Interfaces:
Serializable
Model of an electrical power cable for process equipment.
Supports cable sizing based on load current, voltage drop calculation, derating factors for ambient temperature, grouping, and installation method per IEC 60502 and IEC 60364.
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate static final double[]Approximate base ampacity for XLPE copper cables in tray (3-core), per IEC 60502.private doubleprivate doubleprivate Stringprivate doubleprivate doubleprivate doubleprivate Stringprivate Stringprivate doubleprivate doubleprivate intprivate Stringprivate static final longSerialization version UID.private doubleprivate doubleprivate static final double[]Standard cable cross-sections in mm2 per IEC 60228.private doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate doublecalculateAmbientTempDerating(double ambientTempC) Calculate ambient temperature derating factor.private doublecalculateGroupingDerating(String installMethod) Calculate grouping derating factor based on installation method.private doublecalculateShortCircuitWithstand(double crossSection, double duration) Calculate short-circuit thermal withstand (1s basis) per IEC 60949.doublecalculateVoltageDrop(double currentA, double voltageV) Calculate voltage drop as a percentage.private doubleestimateCostPerMeter(double crossSection, double voltageV) Estimate cable cost per meter.doubleGet ampacity (derated current carrying capacity) in A.Get conductor material.doubleGet cable cross-section in mm2.doubleGet estimated cost per meter in USD.Get the installation method.Get insulation type.doubleGet cable length in meters.doubleGet maximum allowable voltage drop in percent.intGet number of cores.Get route reference.doubleGet short-circuit withstand in kA.doubleGet total cable cost in USD.doubleGet voltage drop in percent.private doubleselectNextSizeUp(double minCrossSection) Select the next standard cable size above the given cross-section.voidsetBurialDepthDeratingFactor(double burialDepthDeratingFactor) Set the burial depth derating factor.voidsetConductorMaterial(String conductorMaterial) Set conductor material.voidsetCrossSectionMM2(double crossSectionMM2) Set cable cross-section in mm2.voidsetInstallationMethod(String installationMethod) Set the installation method.voidsetInsulationType(String insulationType) Set insulation type.voidsetLengthM(double lengthM) Set cable length in meters.voidsetMaxVoltageDropPercent(double maxVoltageDropPercent) Set maximum allowable voltage drop in percent.voidsetNumberOfCores(int numberOfCores) Set number of cores.voidsetRouteReference(String routeReference) Set route reference.voidsizeCable(double loadCurrentA, double voltageV, double cableLengthM, String installMethod, double ambientTempC) Size the cable based on load current and conditions.toJson()Serialize cable data to JSON.toMap()Convert cable data to a map.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
STANDARD_CROSS_SECTIONS
private static final double[] STANDARD_CROSS_SECTIONSStandard cable cross-sections in mm2 per IEC 60228. -
BASE_AMPACITY_XLPE_TRAY
private static final double[] BASE_AMPACITY_XLPE_TRAYApproximate base ampacity for XLPE copper cables in tray (3-core), per IEC 60502. Index matches STANDARD_CROSS_SECTIONS. -
lengthM
private double lengthM -
crossSectionMM2
private double crossSectionMM2 -
numberOfCores
private int numberOfCores -
conductorMaterial
-
insulationType
-
ampacityA
private double ampacityA -
baseAmpacityA
private double baseAmpacityA -
voltageDropPercent
private double voltageDropPercent -
maxVoltageDropPercent
private double maxVoltageDropPercent -
ambientTempDeratingFactor
private double ambientTempDeratingFactor -
groupingDeratingFactor
private double groupingDeratingFactor -
burialDepthDeratingFactor
private double burialDepthDeratingFactor -
shortCircuitWithstandKA
private double shortCircuitWithstandKA -
shortCircuitDurationS
private double shortCircuitDurationS -
installationMethod
-
routeReference
-
estimatedCostPerMeterUSD
private double estimatedCostPerMeterUSD -
totalCostUSD
private double totalCostUSD
-
-
Constructor Details
-
ElectricalCable
public ElectricalCable()
-
-
Method Details
-
sizeCable
public void sizeCable(double loadCurrentA, double voltageV, double cableLengthM, String installMethod, double ambientTempC) Size the cable based on load current and conditions.Selects the cable cross-section to carry the load current with appropriate derating, then calculates voltage drop to verify it meets limits.
- Parameters:
loadCurrentA- load current in AvoltageV- system voltage in VcableLengthM- cable length in metersinstallMethod- installation method (Tray, Conduit, Direct burial, Ladder)ambientTempC- ambient temperature in degrees C
-
selectNextSizeUp
private double selectNextSizeUp(double minCrossSection) Select the next standard cable size above the given cross-section.- Parameters:
minCrossSection- minimum required cross-section in mm2- Returns:
- next standard cross-section in mm2
-
calculateVoltageDrop
public double calculateVoltageDrop(double currentA, double voltageV) Calculate voltage drop as a percentage.- Parameters:
currentA- load current in AvoltageV- system voltage in V- Returns:
- voltage drop in percent
-
calculateAmbientTempDerating
private double calculateAmbientTempDerating(double ambientTempC) Calculate ambient temperature derating factor.- Parameters:
ambientTempC- ambient temperature in degrees C- Returns:
- derating factor
-
calculateGroupingDerating
Calculate grouping derating factor based on installation method.- Parameters:
installMethod- installation method- Returns:
- grouping derating factor
-
calculateShortCircuitWithstand
private double calculateShortCircuitWithstand(double crossSection, double duration) Calculate short-circuit thermal withstand (1s basis) per IEC 60949.- Parameters:
crossSection- cable cross section in mm2duration- fault duration in seconds- Returns:
- withstand current in kA
-
estimateCostPerMeter
private double estimateCostPerMeter(double crossSection, double voltageV) Estimate cable cost per meter.- Parameters:
crossSection- cross-section in mm2voltageV- rated voltage- Returns:
- cost per meter in USD
-
toJson
-
toMap
-
getLengthM
public double getLengthM()Get cable length in meters.- Returns:
- cable length in meters
-
setLengthM
public void setLengthM(double lengthM) Set cable length in meters.- Parameters:
lengthM- cable length in meters
-
getCrossSectionMM2
public double getCrossSectionMM2()Get cable cross-section in mm2.- Returns:
- cross-section in mm2
-
setCrossSectionMM2
public void setCrossSectionMM2(double crossSectionMM2) Set cable cross-section in mm2.- Parameters:
crossSectionMM2- cross-section in mm2
-
getNumberOfCores
public int getNumberOfCores()Get number of cores.- Returns:
- number of cores
-
setNumberOfCores
public void setNumberOfCores(int numberOfCores) Set number of cores.- Parameters:
numberOfCores- number of cores
-
getConductorMaterial
Get conductor material.- Returns:
- conductor material (Copper or Aluminium)
-
setConductorMaterial
Set conductor material.- Parameters:
conductorMaterial- conductor material (Copper or Aluminium)
-
getInsulationType
-
setInsulationType
Set insulation type.- Parameters:
insulationType- insulation type
-
getAmpacityA
public double getAmpacityA()Get ampacity (derated current carrying capacity) in A.- Returns:
- ampacity in A
-
getVoltageDropPercent
public double getVoltageDropPercent()Get voltage drop in percent.- Returns:
- voltage drop percent
-
getMaxVoltageDropPercent
public double getMaxVoltageDropPercent()Get maximum allowable voltage drop in percent.- Returns:
- max voltage drop percent
-
setMaxVoltageDropPercent
public void setMaxVoltageDropPercent(double maxVoltageDropPercent) Set maximum allowable voltage drop in percent.- Parameters:
maxVoltageDropPercent- max voltage drop percent
-
getInstallationMethod
-
setInstallationMethod
Set the installation method.- Parameters:
installationMethod- installation method
-
getRouteReference
-
setRouteReference
Set route reference.- Parameters:
routeReference- route reference
-
getShortCircuitWithstandKA
public double getShortCircuitWithstandKA()Get short-circuit withstand in kA.- Returns:
- short-circuit withstand in kA
-
getTotalCostUSD
public double getTotalCostUSD()Get total cable cost in USD.- Returns:
- total cost in USD
-
getEstimatedCostPerMeterUSD
public double getEstimatedCostPerMeterUSD()Get estimated cost per meter in USD.- Returns:
- cost per meter in USD
-
setBurialDepthDeratingFactor
public void setBurialDepthDeratingFactor(double burialDepthDeratingFactor) Set the burial depth derating factor.- Parameters:
burialDepthDeratingFactor- burial depth derating factor
-