mixing layer code for PhD