Files
solver/MbDCode/Units.cpp
2023-07-30 12:08:39 -06:00

27 lines
504 B
C++

#include "Units.h"
MbD::Units::Units()
{
}
MbD::Units::Units(double unitTime, double unitMass, double unitLength, double unitAngle) : time(unitTime), mass(unitMass), length(unitLength), angle(unitAngle)
{
calc();
}
void MbD::Units::initialize()
{
}
void MbD::Units::calc()
{
//"Calculate derived units."
aJ = mass * length * length;
velocity = length / time;
omega = angle / time;
acceleration = velocity / time;
alpha = omega / time;
force = mass * acceleration;
torque = force * length;
}