Clams are broadcast spawners, and two or more (of different genders) are needed to do this.
Sometimes clams of adult size are intentionally stressed to induce spawning.
To have a clam spawn in the home aquarium, I think, is a rare event... and that's a good thing. In an enclosed space such as a fishtank, thew clam's copious spawning material would choke it and perhaps everything else in the tank.