Class Transformer

java.lang.Object
neqsim.process.electricaldesign.components.Transformer
All Implemented Interfaces:
Serializable

public class Transformer extends Object implements Serializable
Model of a power transformer for process electrical systems.

Supports sizing based on load, efficiency calculation, and loss estimation per IEC 60076. Handles step-down transformers from utility voltage to equipment voltage levels.

Version:
1.0
Author:
Even Solbraa
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • STANDARD_RATINGS_KVA

      private static final double[] STANDARD_RATINGS_KVA
      Standard transformer kVA ratings per IEC.
    • ratedPowerKVA

      private double ratedPowerKVA
    • primaryVoltageV

      private double primaryVoltageV
    • secondaryVoltageV

      private double secondaryVoltageV
    • frequencyHz

      private double frequencyHz
    • efficiencyPercent

      private double efficiencyPercent
    • impedancePercent

      private double impedancePercent
    • noLoadLossKW

      private double noLoadLossKW
    • fullLoadLossKW

      private double fullLoadLossKW
    • totalLossKW

      private double totalLossKW
    • vectorGroup

      private String vectorGroup
    • coolingType

      private String coolingType
    • tapChangerType

      private String tapChangerType
    • tapPositions

      private int tapPositions
    • tapRangePercent

      private double tapRangePercent
    • weightKg

      private double weightKg
    • estimatedCostUSD

      private double estimatedCostUSD
  • Constructor Details

    • Transformer

      public Transformer()
  • Method Details

    • sizeTransformer

      public void sizeTransformer(double totalLoadKVA, double primaryV, double secondaryV)
      Size the transformer based on the total load.
      Parameters:
      totalLoadKVA - total apparent power load in kVA
      primaryV - primary voltage in V
      secondaryV - secondary voltage in V
    • selectStandardRating

      private double selectStandardRating(double requiredKVA)
      Select the next standard transformer kVA rating.
      Parameters:
      requiredKVA - required apparent power in kVA
      Returns:
      next standard rating
    • estimateNoLoadLoss

      private double estimateNoLoadLoss(double ratingKVA)
      Estimate no-load (iron) losses.
      Parameters:
      ratingKVA - transformer rating in kVA
      Returns:
      no-load loss in kW
    • estimateFullLoadLoss

      private double estimateFullLoadLoss(double ratingKVA)
      Estimate full-load (copper) losses.
      Parameters:
      ratingKVA - transformer rating in kVA
      Returns:
      full-load loss in kW
    • estimateWeight

      private double estimateWeight(double ratingKVA)
      Estimate transformer weight.
      Parameters:
      ratingKVA - transformer rating in kVA
      Returns:
      weight in kg
    • estimateCost

      private double estimateCost(double ratingKVA, double primaryV)
      Estimate transformer cost.
      Parameters:
      ratingKVA - transformer rating in kVA
      primaryV - primary voltage in V
      Returns:
      cost in USD
    • toJson

      public String toJson()
      Serialize to JSON.
      Returns:
      JSON string
    • toMap

      public Map<String,Object> toMap()
      Convert to a map.
      Returns:
      map of transformer parameters
    • getRatedPowerKVA

      public double getRatedPowerKVA()
      Get rated power in kVA.
      Returns:
      rated power in kVA
    • setRatedPowerKVA

      public void setRatedPowerKVA(double ratedPowerKVA)
      Set rated power in kVA.
      Parameters:
      ratedPowerKVA - rated power in kVA
    • getPrimaryVoltageV

      public double getPrimaryVoltageV()
      Get primary voltage in V.
      Returns:
      primary voltage in V
    • setPrimaryVoltageV

      public void setPrimaryVoltageV(double primaryVoltageV)
      Set primary voltage in V.
      Parameters:
      primaryVoltageV - primary voltage in V
    • getSecondaryVoltageV

      public double getSecondaryVoltageV()
      Get secondary voltage in V.
      Returns:
      secondary voltage in V
    • setSecondaryVoltageV

      public void setSecondaryVoltageV(double secondaryVoltageV)
      Set secondary voltage in V.
      Parameters:
      secondaryVoltageV - secondary voltage in V
    • getEfficiencyPercent

      public double getEfficiencyPercent()
      Get efficiency in percent.
      Returns:
      efficiency percent
    • getImpedancePercent

      public double getImpedancePercent()
      Get impedance in percent.
      Returns:
      impedance percent
    • getTotalLossKW

      public double getTotalLossKW()
      Get total losses in kW.
      Returns:
      total losses in kW
    • getVectorGroup

      public String getVectorGroup()
      Get vector group.
      Returns:
      vector group
    • setVectorGroup

      public void setVectorGroup(String vectorGroup)
      Set vector group.
      Parameters:
      vectorGroup - vector group
    • getCoolingType

      public String getCoolingType()
      Get cooling type.
      Returns:
      cooling type (ONAN, ONAF, OFAF)
    • getWeightKg

      public double getWeightKg()
      Get weight in kg.
      Returns:
      weight in kg
    • getEstimatedCostUSD

      public double getEstimatedCostUSD()
      Get estimated cost in USD.
      Returns:
      estimated cost in USD
    • setFrequencyHz

      public void setFrequencyHz(double frequencyHz)
      Set frequency in Hz.
      Parameters:
      frequencyHz - frequency in Hz
    • getFrequencyHz

      public double getFrequencyHz()
      Get frequency in Hz.
      Returns:
      frequency in Hz