Final answer:
The statement that is correct about the energy equation is that it is valid only if the flow is steady.
Step-by-step explanation:
Statement 2 is correct: The energy equation is valid only if the flow is steady.
Statements 1, 3, and 4 are incorrect:
- The energy equation is not valid for both compressible and incompressible flow. It is valid for incompressible flow, but caution must be taken when applying it to compressible flow.
- The energy equation is not valid for viscous flow. It is based on the assumption of frictionless flow.
- The energy equation is valid, even when shaft work is not present. The equation describes the conservation of energy in fluid flow, regardless of whether shaft work is involved or not.