# how to make rhoCentralFoam to write continuity residuals?

 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 30, 2013, 15:30 how to make rhoCentralFoam to write continuity residuals? #1 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 although rhoPimpleFoam writes residuals of continuity equation but rhoCentralFoam doesn't. how can change rhoCentralFoam to write continuity 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. __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

 May 2, 2013, 13:49 #2 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 is this work very difficult to do? __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

 May 3, 2013, 05:31 #3 Member   Join Date: Nov 2012 Posts: 67 Rep Power: 5 what do you mean with residuals? 1. Like in rhoSimpleFoam 2. like in anyother Solver Solution for 1: you only have to include 2 files from the rhoSimpleFoam solver, put it in rhosimpleFoam and change the option-file Solution for 2: the inviscid part of the rhoCentralfoam is writen explicit so they are no residuals because the are no off diagonal elements.

 May 3, 2013, 06:30 #4 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 Hi thanks what are you intending by put two files in rhoSimpleFoam? my case is viscous,but rhoCentralFoam doen't display any continuity residuals in terminal. __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

 May 3, 2013, 06:59 #5 Member   Join Date: Nov 2012 Posts: 67 Rep Power: 5 do you mean that with residuals? rhoCentralFoam 2.) diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUz, Initial residual = 0, Final residual = 0, No Iterations 0 smoothSolver: Solving for Ux, Initial residual = 1.95048866651e-10, Final residual = 1.95048866651e-10, No Iterations 0 smoothSolver: Solving for Uy, Initial residual = 9.73681566024e-10, Final residual = 9.73681566024e-10, No Iterations 0 smoothSolver: Solving for Uz, Initial residual = 1.47465149533e-08, Final residual = 5.51042146969e-17, No Iterations 2 diagonal: Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0 smoothSolver: Solving for e, Initial residual = 9.40976717204e-10, Final residual = 6.94520062811e-16, No Iterations 2 ExecutionTime = 613.71 s ClockTime = 625 s rhoSimpleFoam 1.): time step continuity errors : sum local = 26.0848, global = -19.5881, cumulative = -19.5881 if you want to have like it is in rhoSimpleFoam you have to modify the solver just take a look a both solvers.

 May 3, 2013, 07:49 #6 Senior Member     Ehsan Join Date: Oct 2012 Location: Iran Posts: 2,209 Rep Power: 18 but what parts of code i have to change?I have no any idea! __________________ Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Ozgur_ FLUENT 2 December 3, 2013 06:48 Ardalan Main CFD Forum 6 April 17, 2010 23:40 farbfilm FLUENT 1 September 23, 2009 04:25 chtrapp OpenFOAM Pre-Processing 0 February 16, 2009 11:25 Dob Main CFD Forum 0 October 10, 2006 16:45

All times are GMT -4. The time now is 22:34.