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/)
-   -   convergenceCeck pUcoupledFoam (https://www.cfd-online.com/Forums/openfoam-programming-development/142994-convergencececk-pucoupledfoam.html)

fabian_roesler October 14, 2014 02:25

convergenceCeck pUcoupledFoam
 
2 Attachment(s)
Hi Folks,

I implemented a convergenceCheck to pUCoupledFoam. Just one hour of work but maybe one of you can use it. The convergenceCheck is the same as in simpleFoam. Just compile the solver pUConvergedCoupledFoam add

Code:

blockSolver
{
    convergence 1e-4;
}

to fvSolution. Attached you find the solver (foam-extend-3.1) and a basic cavity case.

Cheers

Fabian

hjasak October 15, 2014 06:09

Dear Fabian,

Thanks for that - with your permission, I would like to include this into foam-extend-3.2. I have done some minor changes, the most important is elegance:

maxResidual = cmptMax(UpEqn.solve().initialResidual());

Perharps we should do some Master Classes for FOAM programmers... Would anyone be interested? We can run this at Uni Zagreb for academia and at Wikki for industrial users.

Hrv

fabian_roesler October 15, 2014 10:10

PERMISSION GRANTED! :)

Thanks for highlighting your changes. Indeed, your code is much more elegant. A programmes course would be great.

Cheers Fabian

markusrehm November 4, 2015 09:34

Hi,

how can I switch on the residual output of the solver? At the moment I just have a line for continuity errors and execution time for each iteration.

Regards, Markus.


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