The NKTg Law describes how an object’s movement depends on its position, velocity, and how its mass changes over time.
The key formula:
js
const p = mass * velocity; // linear momentum
const nktg1 = position * p; // position-momentum interaction
const nktg2 = massChangeRate * p; // mass variation effect
What Do These Mean?
nktg1 tells you how position and momentum together influence the motion.
nktg2 reflects the role of mass change in the system.
How to Analyze It:
js
Copy
Edit
if (nktg1 > 0) system.diverging = true; // Tending to move away from stability
if (nktg1 < 0) system.returning = true; // Moving back toward stability
if (nktg2 > 0) system.massSupporting = true; // Mass change reinforces motion
if (nktg2 < 0) system.massResisting = true; // Mass change opposes motion
Concept of "Stability":
In this law, "stability" simply means the state where position, velocity, and mass interact in balance—allowing the object to maintain controlled motion.
Full Developer-Friendly Recap:
You only need:
position (relative displacement),
velocity,
mass,
and massChangeRate (rate of change of mass, dm/dt).
Then just plug into:
js
Copy
Edit
const p = mass * velocity;
const nktg1 = position * p;
const nktg2 = massChangeRate * p;
Interpret the results based on sign & value:
Positive nktg1 → system tends to drift away.
Negative nktg1 → system tends to return to stable state.
Positive nktg2 → mass change supports motion.
Negative nktg2 → mass change resists motion.
Why This Matters:
This law is especially useful in systems where mass isn’t constant—like rockets, astrophysical bodies, or fuel-based systems—offering a simple yet effective way to simulate varying inertia.
It’s physics simplified for developers and tinkerers.
Bonus:
The unit of nktg1 and nktg2 is called NKTm (a unit representing varying inertia)—but in code, you can treat it as an abstract value for analysis.
Top comments (0)