rhoSimpleFoam error
Hello Dear users;
I am starting a compressible flow through a nozzle with the rhoSimpleFoam solver but I face an error like this: --> FOAM FATAL ERROR: Maximum number of iterations exceeded From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scal ar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type >::*)(Foam::scalar, Foam::scalar)const, Foam::scalar (Foam::species::thermo<Ther mo, Type>::*)(Foam::scalar, Foam::scalar)const, Foam::scalar (Foam::species::the rmo<Thermo, Type>::*)(Foam::scalar)const) const [with Thermo = Foam::hConstTherm o<Foam::perfectGas<Foam::specie> >; Type = Foam::sensibleInternalEnergy; Foam::s calar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam ::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy>] in file /home/buzz2/pawan/OpenFOAM/OpenFOAM-v1612+/src/thermophysicalModels/ specie/lnInclude/thermoI.H at line 66. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/opt/OpenFOAM/OpenFOAM-v1612+/pl atforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccD PInt32Opt/lib/libOpenFOAM.so" #2 Foam::species::thermo<Foam::hConstThermo<Foam::per fectGas<Foam::specie> >, F oam::sensibleInternalEnergy>::TEs(double, double, double) const in "/opt/OpenFOA M/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libfluidThermophysicalModel s.so" #3 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Fo am::species::thermo<Foam::hConstThermo<Foam::perfe ctGas<Foam::specie> >, Foam::s ensibleInternalEnergy> > > >::calculate() in "/opt/OpenFOAM/OpenFOAM-v1612+/plat forms/linux64GccDPInt32Opt/lib/libfluidThermophysicalModels.so" #4 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Fo am::species::thermo<Foam::hConstThermo<Foam::perfe ctGas<Foam::specie> >, Foam::s ensibleInternalEnergy> > > >::correct() in "/opt/OpenFOAM/OpenFOAM-v1612+/platfo rms/linux64GccDPInt32Opt/lib/libfluidThermophysicalModels.so" #5 ? in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/bin/rhoSi mpleFoam" #6 __libc_start_main in "/lib64/libc.so.6" #7 ? in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/bin/rhoSi mpleFoam" Aborted I have tried many boundary condition but still I face this error. my inlet condition: pressure: 40 bar velocity:34.7 m/s in x direction. outlet: pressure: 100 kpa pressure boundary condition: dimensions [1 -1 -2 0 0 0 0]; internalField uniform 100000; boundaryField { nozzle { type zeroGradient; } outlet { type fixedValue; value 100000; } inlet { type totalPressure; rho rho; psi thermo:psi; gamma 1.4; p0 uniform 4e+06; value uniform 4e+06; } frontAndBackPlanes { type empty; } velocity boundary: dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { nozzle { type slip; value (0 0 0 ); } outlet { type pressureInletOutletVelocity; inletValue uniform (0 0 0); value uniform (0 0 0); } inlet { type pressureInletVelocity;//fixedValue; value uniform (34.7 0 0); } frontAndBackPlanes { type empty; } } thermophysical properties: thermoType { type heRhoThermo; mixture pureMixture; transport const; thermo hConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } mixture { specie { nMoles 1; molWeight 28.9; } thermodynamics { Cp 1007; Hf 0; } transport { mu 1.8e-05; Pr 0.7; } } fvschemes: ddtSchemes { default steadyState; } gradSchemes { default Gauss linear; } divSchemes { default none; div(phi,U) bounded Gauss upwind; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; div(phi,e) bounded Gauss upwind; div(phi,epsilon) bounded Gauss upwind; div(phi,k) bounded Gauss upwind; div(phid,p) Gauss upwind; div(phi,Ekp) bounded Gauss upwind; div((phi|interpolate(rho)),p) Gauss upwind; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } fvsolution file: solvers { p { solver GAMG; tolerance 1e-08; relTol 0.1; smoother GaussSeidel; nCellsInCoarsestLevel 20; } "(U|e|k|epsilon)" { solver GAMG; tolerance 1e-08; relTol 0.1; smoother GaussSeidel; nCellsInCoarsestLevel 20; } } SIMPLE { nNonOrthogonalCorrectors 0; rhoMin 0.1; rhoMax 1.0; transonic yes; consistent yes; residualControl { p 1e-3; U 1e-4; e 1e-3; // possibly check turbulence fields "(k|epsilon|omega)" 1e-3; } } relaxationFactors { fields { p 0.1; rho 0.1; } equations { p 0.5; U 0.5; e 0.5; k 0.5; epsilon 0.5; } } I hope someone help me to solve it. |
I have come across this too. What type of case it this?
Cheers, Jay |
nozzle geometry
Hi Dear Jay;
It is a simple nozzle geometry with an inlet and outlet. do you know what is the problem? |
anybody can solve this problem?
Is it a bug in rhoSimpleFoam solver or there is a mistake in my setting? I use a windows version of 1612. |
Quote:
Hi, Could you attached your case in a zip file? Let me try it out. Cheers :-) Jay |
always bugging
Dear users,
I have a problem with a simulation using rhoSimpleFoam. I tried many different ways, most of them were suggestions from this forum. Basically, I have an internal flow in two manifolds with some tubes between them. I already tried running with rhoPimpleFoam and it runs with no particular problem. However, it would take way more time to reach a steady-state. Nevertheless, when using the intermediate result from rhoPimpleFoam, the same problem continues. I would think that since the flow is more "physical" it would have a positive influence when trying to solve with rhoSimpleFoam. I am using OpenFOAM 9. This is an intermediate simulation since I would continue the simulation using tabulated thermophysical properties. (Thus the constant rho in the current simulation). The error varies between
Any suggestions for what could be the problem? Thanks in advance. ------------------ T: Code:
FoamFile Code:
FoamFile Code:
FoamFile Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
FoamFile Code:
/*--------------------------------*- C++ -*----------------------------------*\ checkMesh Code:
/*---------------------------------------------------------------------------*\ |
Hi,
Adding limits for the temperature in fvOptions should solve the issue. Please follow this link: https://www.openfoam.com/documentati...mperature.html |
Already tried that (and limitPressure). Even though it does not result in the same error, the flow becomes "unphysical" with adjacent cells varying between min and max temperature/pressure limit
|
Ok, you can try to deactivate consistent and remove potentialfoam.
|
All times are GMT -4. The time now is 01:03. |