The heart of a shrimp is located in the thorax, specifically in the dorsal part of the thoracic cavity. Shrimp, like other crustaceans, have an open circulatory system where the heart pumps hemolymph (a fluid similar to blood) into the body cavity. The heart of a shrimp is a tubular structure that pumps the hemolymph through the arteries, and then it diffuses back into the body cavity and tissues before returning to the heart.