CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   how to modify rhoCentralFoam to write continuity residuals? (https://www.cfd-online.com/Forums/openfoam-programming-development/117073-how-modify-rhocentralfoam-write-continuity-residuals.html)

immortality May 1, 2013 12:44

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; }
rhoPimpleFoam:
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; }
looks like the same.


All times are GMT -4. The time now is 08:59.