Skip to main content

Crate force_electric

Crate force_electric 

Source
Expand description

Typed calculations for ideal scalar DC electricity.

DcOperatingPoint applies Ohm’s law and DC power relationships, while series_resistance, parallel_resistance, and Energy connect the same validated quantities to resistance networks and usage over time.

Structs§

Current
A finite, non-negative electric current in amperes.
DcOperatingPoint
A complete ideal DC operating point satisfying Ohm’s law.
Duration
A finite, non-negative duration stored in seconds.
Energy
A finite, non-negative amount of energy stored in joules.
Power
A finite, non-negative power in watts.
Resistance
A finite, positive electrical resistance in ohms.
Voltage
A finite, non-negative electric potential in volts.

Enums§

ElectricError
Invalid electrical input or a calculation outside finite numeric range.

Functions§

parallel_resistance
Calculates the equivalent resistance of a non-empty parallel network.
series_resistance
Calculates the equivalent resistance of a non-empty series network.