Class CurrentSource

java.lang.Object
org.episteme.natural.physics.classical.waves.electromagnetism.components.CurrentSource
All Implemented Interfaces:
CircuitComponent

public class CurrentSource extends Object implements CircuitComponent
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • CurrentSource

      public CurrentSource(double current)
    • CurrentSource

      public CurrentSource(Real current)
  • Method Details

    • getCurrent

      public Real getCurrent(Real voltageAcross, Real dt)
      Description copied from interface: CircuitComponent
      Calculates the current flowing through the component given the voltage across it.
      Specified by:
      getCurrent in interface CircuitComponent
      Parameters:
      voltageAcross - Voltage across the component (Volts)
      dt - Time step (Seconds) - used for dynamic components
      Returns:
      Current (Amperes)
    • getCurrent

      public Real getCurrent()