I'm going by what is observable onscreen in the tv show episodes and movies, fyi. Also, I am not using the recent reboot film as a guide, but if I did, the 20K dton figure would be wildly inaccurate (the new Enterprise outmasses the old version quite spectacularly) as would the weapon systems.
Klaus Kipling said:
The TOS era Enterprise is approximately 20,000dTons, with a good portion of that in the nacelles, as in more volume than taken up by the jump/warp drives.
How did you come by that figure?
With a great deal of luxuries, emergency power, hull and structure buffering, there's still room for whatever the shield system would look like.
In Traveller terms, it would be a white globe system.
Armaments would be 16 100dTon Particle Beam Bays and 4 100dTon Torpedo Bays.
16? Presumably for the phasers. I'm sorry, but I don't think the Enterprise has 16 phaser banks.
There's at least 3 on the ventral side of the saucer section, and 3 on the top. I don't know where the other 10 are supposed to be.
It also has 1 (or I suppose you can consider it 2) forward facing torpedo launchers, not 4.
Either the D7 is a fair bit smaller, or it has more firepower than a Constitution class, at least according to the MGT system...
The Enterprise outguns the D7, as per the episode "Elaan of Troyius", which had a sabotaged Enterprise nevertheless prevailing upon a D7 in a fight (fortunately the power plant was repaired in time to give a good hit on the D7 ship that was attacking, forcing it to break off).
D7s have two forward facing disruptors on the two 'wing' nacelles, and the forward facing torpedo tube.
It may seem that Star Trek ships are undergunned by Traveller standards, however note that the TL is 17-18. Antimatter power generation, antimatter warheads, phasers that can be used to stun or disintegrate, transporters, replicators, tractor beams and force fields - perhaps the power requirements for these systems preclude having many batteries of weapons.