The problem - turn a cubesat using a reaction wheel.
In physics, conservation laws are very useful, as it enables you to cut through lots of error-prone and confusing calculation, and find the important thing at once.
Consider the following abstract diagram of a CubeSat and its reaction wheel (motor between them not shown)(yes, I have thought about the rotation sign convention for the diagram)(lengths of vectors not to scale)
Assuming no external torques (secular or magnetorquing), then at all times the sum of their angular momenta will be zero by the Conservation of Angular Momentum
$$ L_{cubesat} + L_{reaction} = 0 $$
As the angular momentum = angular speed x Moment of Inertia, we can also write $$ w_{cubesat}J_{cubesat} + w_{reaction}J_{reaction} = 0 $$
If we want to spin the reaction wheel, keeping its speed less than some limiting speed (mechanical and policy), in order to spin the cubesat at at least some speed, then we can re-write this as $$ \frac {J_{reaction}}{J_{cubesat}} >= \frac {w_{cubesat}}{w_{reaction}} $$
For the numbers used in the other post, we want to turn the cubsat through 90 degrees in 30 seconds.
There are several ways to do this, a few exemplars are illustrated below
At one extreme, the blue curve is the conceptually simplest, to accelerate the cubesat as quickly as possible with an impulse of torque, and then allow it to coast at constant speed for 30 seconds, before braking it hard at the end. The area under the speed curve is the angle turned. Half a minute at 0.5 rpm is one quarter of a turn, or 90 degrees.
Other trajectories are possible that have the same width (30 seconds) and same area under the curve (quarter turn).
At the other extreme, the red curve shows the lowest acceleration trajectory possible. In order to get the same area under the curve, we need twice the peak angular velocity.
The yellow curve uses less torque (ie motor current) than the blue trajectory, and a lower peak speed than the red one.
The green curve is what we would see if the motor was actually unpowered during the 'coast' phase, bearing friction would slow it slightly, which would produce a small braking torque on the cubesat rotation.
Which of these trajectories is preferable depends on system mass, energy consumption, and possibly a few personal preferences. As a rule of thumb, the optimum is not to be found at either extreme.
We can calculate the required flywheel inertia and the motor torque independently.
The calculation is somewhat pre-empted by the motor having already been chosen. It has a max speed of 6k rpm, a max torque of 3.5m, and a MOI of 800n.
Flywheel Moment of Inertia
The published Jcubesat is 30m kgm2.
As an assumption, the maximum motor speed permitted for this manouevre is 3k rpm, to allow a little in hand. Other max motor speed choices can be accommodated by simply changing the MOI of the flywheel.
If we want to support a peak cubesat speed of 0.5rpm, Jreaction must be at least 1/6000th of Jcubesat, at 5u kgm2, so Jflywheel needs to be at least 4.2m kgm2.
If we want to support the slow acceleration manouever with a peak cubesat speed of 1rpm, then Jreaction must be at least 1/3000th of Jcubesat, at 10u kgm2, so a Jflywheel greater than 9.2u kgm2.
Motor Torque
We can calculate the motor torque either with respect to the cubesat or the flywheel, we don't need to do both, as we know they each have the same magnitude of angular momentum. Let's do it with respect to the cubesat.
First calculate how close we can get to the impulses trajectory
With the rated motor torque of 3.5m Nm operating into 30m Jcubesat, the acceleration is 3.5m/30m = 117m rad/s2. The required final cubesat speed is 0.5rpm = 52m rad/s. This gives an acceleration time of 52m/117m = 444mS. This time is so much less than 30 seconds, that it's not unreasonable to call this an 'impulse'.
Now calculate torque required for the lowest torque trajectory.
The final cubesat speed is 1 rpm = 104m rad/s, obtained in 15 seconds. That's an acceleration of 104m/15 = 6.9m rad/s2. The torque required to accelerate the J of 30m kgm2 at an acceleration of 6.9m is 30m x 6.9m = 207u Nm, a fraction of the motor's rated torque.
Less than twice this torque is required to get the yellow trajectory, with its corresponding saving in peak speed and so flywheel mass.