Algorithmic techniques optimize phase plug shape for compression drivers, considering viscothermal losses.