ostk.physics.unit.Derived¶
- class Derived(
- self: ostk.physics.unit.Derived,
- arg0: ostk.core.type.Real,
- arg1: ostk::physics::unit::Derived::Unit,
- arg0: ostk.core.type.Real,
Bases:
pybind11_object
Derived unit.
Constructor.
- Parameters:
aValue (Real) -- Value
aUnit (Unit) -- Unit
Methods
Get unit.
Convert to unit.
Check if the derived unit is defined.
Get string from unit.
Get symbol from unit.
Convert to string.
Create an undefined derived unit.
- class Order(*args, **kwargs)¶
Bases:
pybind11_object
SI unit order.
Overloaded function.
__init__(self: ostk.physics.unit.Derived.Order, arg0: int) -> None
Constructor.
- Args:
aValue (int): Value.
__init__(self: ostk.physics.unit.Derived.Order, arg0: int, arg1: int) -> None
Constructor.
- Args:
aNumerator (int): Numerator. aDenominator (int): Denominator.
- get_denominator(self: ostk.physics.unit.Derived.Order) int ¶
Get denominator.
- Returns:
Denominator.
- Return type:
- get_numerator(self: ostk.physics.unit.Derived.Order) int ¶
Get numerator.
- Returns:
Numerator.
- Return type:
- get_value(self: ostk.physics.unit.Derived.Order) ostk.core.type.Real ¶
Get value.
- Returns:
Value.
- Return type:
- is_unity(self: ostk.physics.unit.Derived.Order) bool ¶
Check if the order is unity.
- Returns:
True if unity.
- Return type:
- is_zero(self: ostk.physics.unit.Derived.Order) bool ¶
Check if the order is zero.
- Returns:
True if zero.
- Return type:
- static one() ostk.physics.unit.Derived.Order ¶
Create a unity order.
- Returns:
Order.
- Return type:
- to_string(self: ostk.physics.unit.Derived.Order) ostk.core.type.String ¶
Convert to string.
- Returns:
String representation.
- Return type:
- static two() ostk.physics.unit.Derived.Order ¶
Create a two order.
- Returns:
Order.
- Return type:
- static zero() ostk.physics.unit.Derived.Order ¶
Create a zero order.
- Returns:
Order.
- Return type:
- class Unit¶
Bases:
pybind11_object
__init__(self: ostk.physics.unit.Derived.Unit, arg0: ostk.physics.unit.Length.Unit, arg1: ostk.physics.unit.Derived.Order, arg2: ostk.physics.unit.Mass.Unit, arg3: ostk.physics.unit.Derived.Order, arg4: ostk.physics.unit.Time.Unit, arg5: ostk.physics.unit.Derived.Order, arg6: ostk.physics.unit.ElectricCurrent.Unit, arg7: ostk.physics.unit.Derived.Order, arg8: ostk::physics::unit::Angle::Unit, arg9: ostk.physics.unit.Derived.Order) -> None
- static acceleration(
- length: ostk.physics.unit.Length.Unit,
- time: ostk.physics.unit.Time.Unit,
Create an acceleration unit.
- Parameters:
length (Length::Unit) -- Length unit.
time (Time::Unit) -- Time unit.
- Returns:
Unit.
- Return type:
- static angular_velocity(
- angle: ostk::physics::unit::Angle::Unit,
- time: ostk.physics.unit.Time.Unit,
Create an angular velocity unit.
- Parameters:
angle (Angle::Unit) -- Angle unit.
time (Time::Unit) -- Time unit.
- Returns:
Unit.
- Return type:
- static cubic_meter() ostk.physics.unit.Derived.Unit ¶
Create a cubic meter unit.
- Returns:
Unit.
- Return type:
- static force(
- mass: ostk.physics.unit.Mass.Unit,
- length: ostk.physics.unit.Length.Unit,
- time: ostk.physics.unit.Time.Unit,
- length: ostk.physics.unit.Length.Unit,
Create a force unit.
- Parameters:
mass (Mass::Unit) -- Mass unit.
length (Length::Unit) -- Length unit.
time (Time::Unit) -- Time unit.
- Returns:
Unit.
- Return type:
- get_symbol(self: ostk.physics.unit.Derived.Unit) ostk.core.type.String ¶
Get symbol.
- Returns:
Symbol.
- Return type:
- static gravitational_parameter(
- length: ostk.physics.unit.Length.Unit,
- time: ostk.physics.unit.Time.Unit,
Create a gravitational parameter unit.
- Parameters:
length (Length::Unit) -- Length unit.
time (Time::Unit) -- Time unit.
- Returns:
Unit.
- Return type:
- static hertz() ostk.physics.unit.Derived.Unit ¶
Create a hertz unit.
- Returns:
Unit.
- Return type:
- is_compatible_with(
- self: ostk.physics.unit.Derived.Unit,
- arg0: ostk.physics.unit.Derived.Unit,
- is_defined(self: ostk.physics.unit.Derived.Unit) bool ¶
- static kilogram_per_second() ostk.physics.unit.Derived.Unit ¶
Create a kilogram per second unit.
- Returns:
Unit.
- Return type:
- static mass_density(
- mass: ostk.physics.unit.Mass.Unit,
- length: ostk.physics.unit.Length.Unit,
Create a mass density unit.
- Parameters:
mass (Mass::Unit) -- Mass unit.
length (Length::Unit) -- Length unit.
- Returns:
Unit.
- Return type:
- static mass_flow_rate(
- mass: ostk.physics.unit.Mass.Unit,
- time: ostk.physics.unit.Time.Unit,
Create a mass flow rate unit.
- Parameters:
mass (Mass::Unit) -- Mass unit.
time (Time::Unit) -- Time unit.
- Returns:
Unit.
- Return type:
- static meter_cubed_per_second_squared() ostk.physics.unit.Derived.Unit ¶
Create a meter cubed per second squared unit.
- Returns:
Unit.
- Return type:
- static meter_per_second() ostk.physics.unit.Derived.Unit ¶
Create a meter per second unit.
- Returns:
Unit.
- Return type:
- static meter_per_second_squared() ostk.physics.unit.Derived.Unit ¶
Create a meter per second squared unit.
- Returns:
Unit.
- Return type:
- static newton() ostk.physics.unit.Derived.Unit ¶
Create a newton unit.
- Returns:
Unit.
- Return type:
- static radian_per_second() ostk.physics.unit.Derived.Unit ¶
Create a radian per second unit.
- Returns:
Unit.
- Return type:
- static revolution_per_day() ostk.physics.unit.Derived.Unit ¶
Create a revolution per day unit.
- Returns:
Unit.
- Return type:
- static square_meter() ostk.physics.unit.Derived.Unit ¶
Create a square meter unit.
- Returns:
Unit.
- Return type:
- static tesla() ostk.physics.unit.Derived.Unit ¶
Create a tesla unit.
- Returns:
Unit.
- Return type:
- to_string(self: ostk.physics.unit.Derived.Unit) ostk.core.type.String ¶
Convert to string.
- Returns:
String representation.
- Return type:
- static undefined() ostk.physics.unit.Derived.Unit ¶
Create an undefined unit.
- Returns:
Unit.
- Return type:
- static velocity(
- length: ostk.physics.unit.Length.Unit,
- time: ostk.physics.unit.Time.Unit,
Create a velocity unit.
- Parameters:
length (Length::Unit) -- Length unit.
time (Time::Unit) -- Time unit.
- Returns:
Unit.
- Return type:
- static watt() ostk.physics.unit.Derived.Unit ¶
Create a watt unit.
- Returns:
Unit.
- Return type:
- get_unit(self: ostk.physics.unit.Derived) ostk::physics::unit::Derived::Unit ¶
Get unit.
- Returns:
Unit.
- Return type:
- in_unit(
- self: ostk.physics.unit.Derived,
- arg0: ostk::physics::unit::Derived::Unit,
Convert to unit.
- Returns:
Value in unit.
- Return type:
- is_defined(self: ostk.physics.unit.Derived) bool ¶
Check if the derived unit is defined.
- Returns:
True if defined.
- Return type:
- static string_from_unit(
- arg0: ostk::physics::unit::Derived::Unit,
Get string from unit.
- static symbol_from_unit(
- arg0: ostk::physics::unit::Derived::Unit,
Get symbol from unit.
- to_string(
- self: ostk.physics.unit.Derived,
- aPrecision: ostk.core.type.Integer = Undefined,
Convert to string.
- static undefined() ostk.physics.unit.Derived ¶
Create an undefined derived unit.
- Returns:
Derived unit.
- Return type: