Entropy generation characteristics of thermoacoustic stacks and heat exchangers