|
[Sponsors] |
Nonlinear Inner Iterations Not Using Updated Values |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 24, 2012, 11:32 |
Nonlinear Inner Iterations Not Using Updated Values
|
#1 |
New Member
Tyler V
Join Date: Jul 2012
Posts: 24
Rep Power: 14 |
I am trying to solve a problem which has a nonlinear source term. For simplicity in this example I am not linearizing it. I have defined a function to calculate the explicit source term as
Code:
tmp<volScalarField> fSu(volScalarField& y) { return y + y*y + y*y*y; } Code:
while( yRes > resmin ) { volScalarField Su = fSu(y); fvScalarMatrix yEqn ( fvm::ddt(y) == fvm::laplacian(y) + Su ); Info<<"Before solve: " << average(y) << endl; yEqn.relax(); lduMatrix::solverPerformance sp = yEqn.solve(); Info<<"After solve: " << average(y) << endl; yRes = sp.initialResidual(); } Code:
Before solve: average(y) [0 0 0 0 0 0 0] 0.0445286 GAMG: Solving for y, Initial residual = 0.433038, Final residual = 0.0109313, No Iterations 3 After solve: average(y) [0 0 0 0 0 0 0] 0.0444641 Before solve: average(y) [0 0 0 0 0 0 0] 0.0445286 GAMG: Solving for y, Initial residual = 0.433038, Final residual = 0.0109313, No Iterations 3 After solve: average(y) [0 0 0 0 0 0 0] 0.0444641 (... dozens more times ...) Before solve: average(y) [0 0 0 0 0 0 0] 0.0445286 GAMG: Solving for y, Initial residual = 0.433038, Final residual = 0.0109313, No Iterations 3 After solve: average(y) [0 0 0 0 0 0 0] 0.0444641 |
|
Tags |
nonlinear iterations, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transsonic nozzle with rhoSimpleFoam | Unseen | OpenFOAM Running, Solving & CFD | 8 | July 1, 2022 07:54 |
Velocity blows up suddenly after 30,000+ iterations | lordvon | OpenFOAM Running, Solving & CFD | 15 | October 19, 2015 14:52 |
SLTS+rhoPisoFoam: what is rDeltaT??? | nileshjrane | OpenFOAM Running, Solving & CFD | 4 | February 25, 2013 05:13 |
Full pipe 3D using icoFoam | cyberbrain | OpenFOAM | 4 | March 16, 2011 10:20 |
MRFSimpleFOAM goes divergenced! | renyun0511 | OpenFOAM Running, Solving & CFD | 0 | November 19, 2009 03:11 |