What one needs is momentum, and one can estimate how much momentum that one can get for some energy input.
Let us consider kinetic energy, since that is the sort of energy most directly related to momentum. The math:
Reaction mass: m
Its velocity: v
Its momentum: p = m * v
Its kinetic energy: T = (1/2) * m * v^2
Let us see what momentum one can get for some amount of kinetic energy:
v = sqrt(2*T/m)
p = sqrt(2*m*T)
So if one has some amount of energy available, one needs to increase the reaction mass m of one's asteroid kicker. This mass can come from the asteroid itself if necessary.
So if one wants to use a nuclear bomb, one ought to dig a pit in the asteroid, place the bomb at the base of the pit, then bury that bomb with the removed material from digging that pit. Exploding the bomb will accelerate this rubble, thus producing a much bigger kick than what one can get from the bomb by itself.
W80 (nuclear warhead) has some numbers.
- Mass: 290 lb (130 kg)
- Length: 31.4 inches (80 cm)
- Diameter: 11.8 in (30 cm)
- Blast yield: 5 or 150 kilotonnes of TNT (21 or 628 TJ)
So it should be easy to carry aboard a spacecraft.
The best case, conversion of its explosion energy into a single direction of motion, gives a momentum kick of 4*10
8 kg * (m/s) at 3.1*10
6 m/s. If it was buried under 1,300 metric tons of rubble, one gets 4*10
10 kg * (m/s) at 3.1*10
4 m/s. That means a pit some 8 - 10 meters deep.
In actual fact, the efficiency will be much lower, from imperfect conversion of thermal into kinetic energy, and from imperfect directionality. Using a factor of 2 for each factor gives a momentum about half as large: 2*10
8 kg * (m/s) by itself and 2*10
10 kg * (m/s) for 1,300 tons of rubble.
Using my earlier estimates for the masses of Dimorphos and Didymos, 5.2*10
9 kg and 5.40*10
11 kg, I find 0.038 m/s and 0.00037 m/s for a nuclear bomb by itself and 3.8 m/s and 0.037 m/s for a buried nuclear bomb.
Relative to their orbital velocity around the Sun, an average of 23 km/s, that is a relative velocity change of 1.6*10
-6 and 1.6*10
-8 for a bomb by itself and 1.6*10
-4 and 1.6*10
-6 for a buried bomb.
Using 1 AU of distance, 1.5*10
8 km, I find 250 km and 2.4 km for a bomb by itself, and 25,000 km and 240 km for a buried bomb.
So a nuclear bomb will work, at least if one uses it far enough in advance.