Introducing the NKTg Law: Modeling Varying Inertia in Motion Dynamics

Hi Flutter community,

I’d like to present a conceptual physics model—the NKTg Law—which explores how motion is influenced when an object’s mass changes over time. This could be an interesting theoretical experiment or visualization using Dart/Flutter.

Core Concept

  • Variables:
    • x: position
    • v: velocity
    • m: mass (which can change dynamically)
  • Derived Quantities:
    • NKTg1 = x * p
    • NKTg2 = (dm/dt) * p
      Where:

p = m * v // momentum
dm/dt // rate of mass change


---

#### Interpretation

|Condition|Meaning|
| --- | --- |
|`NKTg1 > 0`|Moves away from equilibrium|
|`NKTg1 < 0`|Moves toward equilibrium|
|`NKTg2 > 0`|Mass change supports motion|
|`NKTg2 < 0`|Mass change resists motion|

---

#### Why This Forum?

The Flutter Forum encourages thoughtful technical discussions and simulations. Discourse is ideal for organizing such content in a searchable way, just like other conceptual discussions here [Flutter Forum](https://forum.itsallwidgets.com/t/welcome-to-the-flutter-forum/5?utm_source=chatgpt.com).

---

#### Community Questions

* Could someone help turn this into a **Flutter visualization** (e.g., animating `x`, `v`, `m` over time, and showing how `NKTg1`, `NKTg2` evolve)?
* Which Flutter or Dart libraries would be ideal? (e.g., **flutter_hooks**, **Flame**, **charts_flutter**)
* Suggestions for modeling or UI patterns welcome!

A while back, I was playing around with performance differences between C and Dart. I ended up experimenting with a very simple n-body simulation (I don’t have the knowledge to do anything more complex :slight_smile: ). It’s simply a simulation of bodies with static mass and velocity attracted to each other.

Here the repo GitHub - alnitak/flutter_nbody_simulation: N-Body simulation to test performances of c/c++ using FFI