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