how to modify rhoCentralFoam to write continuity residuals?
although rhoPimpleFoam writes residuals of continuity equation but rhoCentralFoam doesn't (why?).
then how can change rhoCentralFoam to write continuity residuals like variable residuals? writing part of them is like below: rhoCentralFoam: Code:
turbulence->correct(); runTime.write(); Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; } Info<< "End\n" << endl; return 0; } Code:
if (pimple.turbCorr()) { turbulence->correct(); } } runTime.write(); Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" << " ClockTime = " << runTime.elapsedClockTime() << " s" << nl << endl; } Info<< "End\n" << endl; return 0; } |
All times are GMT -4. The time now is 08:59. |