Building reynolds stress code generation