I'm writing a basic gear train simulation, where it is possible for every gear to be attached to a source of torque/angular friction. All the online resources I've found only deal with systems where a single gear is powered and all others simply accept torque from that gear, so I've kind of had to build the equations from scratch. This is what I've come up with so far:
I started by modeling gears as levers, and looking at the force they exerted on one another.
$$F_n=\frac{\tau_n}{r_n}\\ F_{net12}=F_1+F_2=\frac{\tau_1}{r_1}+\frac{\tau_2}{r_2}$$
Then I converted to torque and found the angular acceleration: $$\tau_{net_1}=F_{net12}*r_1,\ \tau_{net_2}=F_{net12} * r_2\\ \alpha_n=\frac{\tau_{net_n}}{m_n*r_n^2}\\ a_n=\alpha_n*r_n$$ (I'm considering gears as perfect disks for simplification here)
But if you substitute in, the $r_n$'s in $\tau_n$ and $a_n$ cancel out those in $\alpha_n$, leaving you just with $$a_n=\frac{F_{net12}}{m_n}$$
And therefore the equation for a system of many gears is $$F_{net}=\sum_n \frac{\tau_n}{r_n}\\ a_0=a_1=a_2=\ ...\ =\frac{F_{net}}{\sum_n m_n}$$
I have two questions:
First of all, is my reckoning correct? It seems strange that the evolution of a rotational system is expressed only in linear units. But since the radius of each gear could be different, there can't be some global sum torque acting on all of them equally, which means there has to be a global sum force.
Secondly, if it is correct, how could I elegantly extend this model to a system that allows for multiple gears on an axle? And how could I (preferably numerically, rather than logically or analytically) check for impossible systems, like this one?