CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to make rhoCentralFoam to write continuity residuals?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2013, 16:30
Default how to make rhoCentralFoam to write continuity residuals?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   May 2, 2013, 14:49
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   May 3, 2013, 06:31
Default
  #3
Member
 
Join Date: Nov 2012
Posts: 83
Rep Power: 13
Henning86 is on a distinguished road
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.
Henning86 is offline   Reply With Quote

Old   May 3, 2013, 07:30
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   May 3, 2013, 07:59
Default
  #5
Member
 
Join Date: Nov 2012
Posts: 83
Rep Power: 13
Henning86 is on a distinguished road
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.
Henning86 is offline   Reply With Quote

Old   May 3, 2013, 08:49
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   April 18, 2018, 04:56
Default
  #7
Member
 
K
Join Date: Jul 2017
Posts: 97
Rep Power: 8
mkhm is on a distinguished road
What is the criteria of convergence in this case ?
mkhm is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:41.