for (label i=startTime; i thermo ( basicThermo::New(mesh) ); volScalarField Cp = thermo->Cp(); volScalarField Cv = thermo->Cv(); volScalarField Ma ( IOobject ( "Ma", runTime.timeName(), mesh ), mag(U)/(sqrt((Cp/Cv)*(Cp - Cv)*thermo->T())) ); Info << "Max Mach number: " << max(Ma.internalField()) << endl; Ma.write(); } else { Info<< " No U" << endl; } }