Units
Units
- class farms_core.units.SimulationUnitScaling(meters=1, seconds=1, kilograms=1)
Bases:
farms_core.options.Options
Simulation scaling
1 [m] in reality = self.meters [m] in simulation 1 [s] in reality = self.seconds [s] in simulation 1 [kg] in reality = self.kilograms [kg] in simulation
- Parameters
meters (
float
, default:1
) –seconds (
float
, default:1
) –kilograms (
float
, default:1
) –
- property acceleration: float
Acceleration
Scaled as self.gravity = self.meters/self.seconds**2
- Return type
float
- property angular_damping: float
Angular damping
Scaled as self.angular_damping = self.torques/self.angular_velocity
- Return type
float
- property angular_velocity: float
Angular velocity
Scaled as self.angular_velocities = 1/self.seconds
- Return type
float
- property damping: float
Damping
Scaled as self.damping = self.torques/self.angular_velocity
- Return type
float
- property density: float
Density
Scaled as self.density = self.kilograms/self.meters**3
- Return type
float
- property gravity: float
Gravity
Scaled as self.gravity = self.meters/self.seconds**2
- Return type
float
- property hertz: float
Hertz (frequency)
Scaled as self.hertz = 1/self.seconds
- Return type
float
- property inertia: float
Inertia
Scaled as self.inertia = self.kilograms*self.meters**2
- Return type
float
- property newtons: float
Newtons
Scaled as self.newtons = self.kilograms*self.meters/self.time**2
- Return type
float
- property torques: float
Torques
Scaled as self.torques = self.kilograms*self.meters**2/self.time**2
- Return type
float
- property velocity: float
Velocity
Scaled as self.velocities = self.meters/self.seconds
- Return type
float
- property volume: float
Volume
Scaled as self.volume = self.meters**3
- Return type
float