|
[Sponsors] |
how to make rhoCentralFoam to write continuity residuals? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 30, 2013, 16:30 |
how to make rhoCentralFoam to write continuity residuals?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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; } 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; }
__________________
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, 14:49 |
|
#2 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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, 06:31 |
|
#3 |
Member
Join Date: Nov 2012
Posts: 83
Rep Power: 14 |
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, 07:30 |
|
#4 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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, 07:59 |
|
#5 |
Member
Join Date: Nov 2012
Posts: 83
Rep Power: 14 |
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, 08:49 |
|
#6 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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. |
|
April 18, 2018, 04:56 |
|
#7 |
Member
K
Join Date: Jul 2017
Posts: 97
Rep Power: 9 |
What is the criteria of convergence in this case ?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mesh file for flow over a circular cylinder | Ardalan | Main CFD Forum | 7 | December 15, 2020 14:06 |
How to write out residuals?? | farbfilm | FLUENT | 3 | April 20, 2018 12:43 |
Problem with residuals, especially continuity | Ozgur_ | FLUENT | 2 | December 3, 2013 06:48 |
Is there a simple way to make refineMesh write the cellLevel | chtrapp | OpenFOAM Pre-Processing | 0 | February 16, 2009 11:25 |
a way to make lots of money quick and easy no lies | Dob | Main CFD Forum | 0 | October 10, 2006 17:45 |