|
[Sponsors] | |||||
|
|
|
#1 | |
|
Member
L S
Join Date: Apr 2016
Posts: 63
Rep Power: 11 ![]() |
Hi,
I am trying to simulate condensation problem using phaseChangeHeatFoam using Dynamic Mesh. But, I am getting following error. Where Value of alpha is going -751. WHich is non physical. Quote:
Code: Code:
ddtSchemes
{
default Euler;
}
gradSchemes
{
default Gauss linear;
}
divSchemes
{
div(rho*phi,U) Gauss upwind;
div(rhoPhi,U) Gauss vanLeerV;
div(phi,T) Gauss vanLeer;
div(rhoPhi,T) Gauss vanLeer;
div(phi,alpha) Gauss vanLeer01;
div(phirb,alpha) Gauss interfaceCompression;
div((muEff*dev(T(grad(U))))) Gauss linear;
}
laplacianSchemes
{
default Gauss linear corrected;
}
interpolationSchemes
{
default linear;
}
snGradSchemes
{
default corrected;
}
fluxRequired
{
default no;
p_rgh;
pcorr;
alpha;
}
Code:
solvers
{
alpha1
{
maxUnboundedness 1e-5;
CoCoeff 2;
maxIter 5;
nLimiterIter 2;
solver PBiCG;
preconditioner DILU;
tolerance 1e-12;
relTol 0.01;
};
"(U|UFinal|T|TFinal)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-06;
relTol 0;
};
"(p_rgh|p)"
{
solver PCG;
preconditioner
{
preconditioner GAMG;
tolerance 1e-08;
relTol 0;
nVcycles 2;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
nFinestSweeps 2;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
tolerance 1e-08;
relTol 0.001;
maxIter 20;
};
pcorr
{
solver PCG;
preconditioner
{
preconditioner GAMG;
tolerance 0.001;
relTol 0;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
nFinestSweeps 2;
cacheAgglomeration false;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
tolerance 0.0001;
relTol 0;
maxIter 100;
};
"(p_rghFinal|pFinal)"
{
solver PCG;
preconditioner
{
preconditioner GAMG;
tolerance 1e-08;
relTol 0;
nVcycles 2;
smoother GaussSeidel;
nPreSweeps 2;
nPostSweeps 0;
nFinestSweeps 2;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
tolerance 1e-08;
relTol 0;
};
p_rgh
{
solver GAMG;
tolerance 1e-08;
relTol 0.05;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
nFinestSweeps 2;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
p_rghFinal
{
solver PCG;
preconditioner
{
preconditioner GAMG;
tolerance 1e-08;
relTol 0;
nVcycles 2;
smoother GaussSeidel;
nPreSweeps 0;
nPostSweeps 2;
nFinestSweeps 2;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}
tolerance 1e-08;
relTol 0;
maxIter 20;
}
U
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-06;
relTol 0;
nSweeps 1;
}
"(k|B|nuTilda)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-08;
relTol 0;
}
/* T //add
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-10;
relTol 0;
};
/*TFinal //added
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-10;
relTol 0;
}; */
"(T|TFinal)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-10;
relTol 0;
};
rho //add
{
solver Diagonal;
tolerance 1e-8;
relTol 0;
};
}
relaxationFactors
{
T 0.3
U 0.3
p 0.3;
}
"(PISO|PIMPLE)"
{
momentumPredictor yes;
nCorrectors 3;
nNonOrthogonalCorrectors 0;
nAlphaCorr 1;
nAlphaSubCycles 3;
cAlpha 1;
pRefPoint (0.51 0.51 0.51);
pRefValue 0;
smoothItr 2;
kSmoothItr 0;
}
|
||
|
|
|
||
|
|
|
#2 |
|
Senior Member
Artur
Join Date: May 2013
Location: Southampton, UK
Posts: 372
Rep Power: 21 ![]() |
Hi,
In my experience this type of problem with phase change solvers has to do with incorrect initial and/or boundary conditions. Are you sure you got those right? May be worth also running the simulation with the phase change switched off for a while to see if the initial condition alone does not crash. By the way, the thread belongs in the "Running solving and CFD" sub-forum rather than here. All the best A |
|
|
|
|
|
![]() |
| Tags |
| adaptive meshing, dynamic meshing, interdymfoam, openfoam, phasechangeheatfoam |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
| [blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
| [blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
| [blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
| [blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |