ostk.physics.unit.ElectricCurrent¶
- class ElectricCurrent(
- self: ostk.physics.unit.ElectricCurrent,
- arg0: ostk.core.type.Real,
- arg1: ostk::physics::unit::ElectricCurrent::Unit,
- arg0: ostk.core.type.Real,
Bases:
pybind11_object
Electric current.
https://en.wikipedia.org/wiki/Electric_current
Constructor.
- Parameters:
aReal (Real) -- A real number.
aUnit (ElectricCurrent.Unit) -- An electric current unit.
Methods
Construct an electric current in amperes.
Get the electric current unit.
Get the electric current in amperes.
Get the electric current in a given unit.
Check if the electric current is defined.
Get the string representation of an electric current unit.
Get the symbol of an electric current unit.
Get the string representation of the electric current.
Get an undefined electric current.
- class Unit(self: ostk.physics.unit.ElectricCurrent.Unit, value: int)¶
Bases:
pybind11_object
Members:
- Undefined :
Undefined.
- Ampere :
Ampere (SI).
- property name¶
- static amperes(arg0: ostk.core.type.Real) ostk.physics.unit.ElectricCurrent ¶
Construct an electric current in amperes.
- Returns:
An electric current in amperes.
- Return type:
- get_unit( ) ostk::physics::unit::ElectricCurrent::Unit ¶
Get the electric current unit.
- Returns:
The electric current unit.
- Return type:
- in_amperes( ) ostk.core.type.Real ¶
Get the electric current in amperes.
- Returns:
The electric current in amperes.
- Return type:
- in_unit(
- self: ostk.physics.unit.ElectricCurrent,
- arg0: ostk::physics::unit::ElectricCurrent::Unit,
Get the electric current in a given unit.
- Returns:
The electric current in the given unit.
- Return type:
- is_defined(self: ostk.physics.unit.ElectricCurrent) bool ¶
Check if the electric current is defined.
- Returns:
True if defined.
- Return type:
- static string_from_unit(
- arg0: ostk::physics::unit::ElectricCurrent::Unit,
Get the string representation of an electric current unit.
- Returns:
The string representation.
- Return type:
- static symbol_from_unit(
- arg0: ostk::physics::unit::ElectricCurrent::Unit,
Get the symbol of an electric current unit.
- Returns:
The symbol.
- Return type:
- to_string(
- self: ostk.physics.unit.ElectricCurrent,
- aPrecision: ostk.core.type.Integer = Undefined,
Get the string representation of the electric current.
- static undefined() ostk.physics.unit.ElectricCurrent ¶
Get an undefined electric current.
- Returns:
An undefined electric current.
- Return type: