Class CurrentSource
java.lang.Object
org.episteme.natural.physics.classical.waves.electromagnetism.components.CurrentSource
- All Implemented Interfaces:
CircuitComponent
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurrent(Real voltageAcross, Real dt) Calculates the current flowing through the component given the voltage across it.
-
Constructor Details
-
CurrentSource
public CurrentSource(double current) -
CurrentSource
-
-
Method Details
-
getCurrent
Description copied from interface:CircuitComponentCalculates the current flowing through the component given the voltage across it.- Specified by:
getCurrentin interfaceCircuitComponent- Parameters:
voltageAcross- Voltage across the component (Volts)dt- Time step (Seconds) - used for dynamic components- Returns:
- Current (Amperes)
-
getCurrent
-