For non-fluid or more complex systems there will be a different collection of variables describing the work term, but the principle is the same. The above equation may be solved for the entropy density: d s = 1 T d u + − − μ μ T d ρ ρ