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

p equation error when restart calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2024, 08:23
Question p equation error when restart calculation
  #1
New Member
 
wlz
Join Date: Mar 2024
Posts: 3
Rep Power: 2
6120217 is on a distinguished road
When I use an FGM solver in OpenFOAM to calculate an LES case, I found that if I calculate without interrupting, the result will be right. But whenever I restart the calculation from my latest result, the p equation will be extremely strange from the first iteration and the initial residual will be close to 1. I am very certain that the p feild of the result I restart calculation from has no problem.

I am very confused about this situation. I will appreciate it very much if someone can help me haddle this problem.

I attach a txt containing part of my output file.
Attached Files
File Type: txt out.txt (46.5 KB, 2 views)
6120217 is offline   Reply With Quote

Old   March 6, 2024, 08:28
Default
  #2
New Member
 
wlz
Join Date: Mar 2024
Posts: 3
Rep Power: 2
6120217 is on a distinguished road
If there is a need to view my case or solver, I will upload them.
6120217 is offline   Reply With Quote

Old   March 6, 2024, 09:07
Default
  #3
New Member
 
wlz
Join Date: Mar 2024
Posts: 3
Rep Power: 2
6120217 is on a distinguished road
here is my fvscheme file

ddtSchemes
{
default backward;
}

gradSchemes
{
default cellLimited Gauss linear 1;
grad(U) cellLimited Gauss linear 1;
}

divSchemes
{
default none;
div(phi,U) Gauss linearUpwindV grad(U);
div(phi,k) Gauss upwind;
div(phi,epsilon) Gauss upwind;
div((nuEff*dev(T(grad(U))))) Gauss linear;
//added for FGMFoam:
div(phi,Z) Gauss upwind;
div(phi,PV) Gauss upwind;
div(phi,varZ) Gauss upwind;
div(phi,varPV) Gauss upwind;
div(phi,K) Gauss upwind;
div(phi,Yi_h) Gauss limitedLinear 1;
div(phi,nuTilda) Gauss limitedLinear 1;
div((muEff*dev2(T(grad(U))))) Gauss linear;
div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear;
div(phid,p) Gauss limitedLinear 1;
}

laplacianSchemes
{
default Gauss linear limited 1;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default limited1;
}

fluxRequired
{
default no;
p;
}

and fvSolution file

solvers
{
"(rho|rhoFinal)"
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-7;
relTol 0;
nSweeps 1;
};
p
{
solver GAMG;
tolerance 1e-8;
relTol 0.1;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;

}

pFinal
{
$p;
tolerance 1e-8;
relTol 0;
}

pd
{
solver PCG;
preconditioner DIC;
tolerance 1e-8;
relTol 0;
}

pdFinal
{
$p;
tolerance 1e-8;
relTol 0;
}

"(U|h|Z|PV|k|epsilon|varZ|varPV)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-7;
relTol 0.01;
}

"(U|h|Z|PV|k|epsilon|varZ|varPV)Final"
{
$U;
relTol 0;
}

Yi
{
$hFinal;
}
}
6120217 is offline   Reply With Quote

Old   March 12, 2024, 12:59
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 668
Rep Power: 14
Tobermory will become famous soon enough
Hmmm ... it looks like the normalisation factor has changed on restart (remember that all of the residuals are normalised - refer to https://doc.cfd.direct/notes/cfd-gen...x130-166004r11). Not sure why this is happening, but it is occurring on just the first PIMPLE iteration, so shouldn't affect your solution ...
Tobermory is offline   Reply With Quote

Reply


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
G equation set up MadMaggot CONVERGE 2 August 16, 2023 03:18
Time-accurate solution restart from steady state solution jyotir SU2 6 December 8, 2021 08:34
How to continue calculation in ANSYS Workbench with System Coupling after unsave WangYihuHRB Fluent Multiphase 0 March 30, 2021 10:50
Viscosity and the Energy Equation Rich Main CFD Forum 0 December 16, 2009 14:01
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 15:24.