|
[Sponsors] |
May 16, 2019, 07:13 |
maximum number of iterations exceeded
|
#1 |
Senior Member
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7 |
Hello Everyone,
I am using chtMultiRegionSimpleFoam and my OpenFoam version is 4.1. My geometry has a box, and inside this box, there is a fluid region. The inlet and outlet of the fluid region is at two faces of the box. I have to specify a flow rate at the inlet. And according to that I set my boundary conditions like below: Code:
boundary { inlet { type patch; } outlet { type patch; } defaultFaces { type patch; } } U { internalField uniform (1e-3 0 0); boundaryField { inlet { type flowRateInletVelocity;//fixedValue;//pressureInletVelocity; volumetricFlowRate 0.066; extrapolateProfile yes; value uniform (1 0 0); } outlet { type zeroGradient; //value uniform (0 0 0);//$internalField; } defaultFaces { type zeroGradient; } "fluid_to_box" { type noSlip; } } } T { internalField uniform 300; boundaryField { inlet { type fixedValue; value $internalField; } outlet { type zeroGradient;//inletOutlet; value $internalField; //inletValue $internalField; } defaultFaces { type zeroGradient; } "fluid_to_box" { type compressible::turbulentTemperatureCoupledBaffleMixed; Tnbr T; kappaMethod fluidThermo; value uniform 300; } } } epsilon { internalField uniform 0.01; boundaryField { inlet { type fixedValue; value uniform 0.01; } outlet { type inletOutlet; inletValue uniform 0.01; } ".*" { type epsilonWallFunction; value uniform 0.01; } } } k { internalField uniform 0.1; boundaryField { inlet { type inletOutlet; inletValue uniform 0.1; } outlet { type zeroGradient; value uniform 0.1; } ".*" { type kqRWallFunction; value uniform 0.1; } } } p_rgh { internalField uniform 0; boundaryField { inlet { type zeroGradient; value uniform 0; } outlet { type fixedValue; value uniform 0; } ".*" { type fixedFluxPressure; value uniform 0; } } } p { internalField uniform 0; boundaryField { ".*" { type zeroGradient; //value uniform 0; } } } Code:
--> FOAM FATAL ERROR: Maximum number of iterations exceeded From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hConstThermo<Foam::rhoConst<Foam::specie> >; Type = Foam::sensibleEnthalpy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy>] in file /home/ubuntu/OpenFOAM/OpenFOAM-4.1/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 66. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > > >::calculate() at ??:? #3 Foam::heRhoThermo<Foam::rhoThermo, Foam::pureMixture<Foam::constTransport<Foam::species::thermo<Foam::hConstThermo<Foam::rhoConst<Foam::specie> >, Foam::sensibleEnthalpy> > > >::correct() at ??:? #4 ? at ??:? #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #6 ? at ??:? Aborted (core dumped) Log file of solver is also attached. Can someone please guide me where I am doing mistake? I shall be very thankful if someone can help me out in this. Thank you |
|
July 15, 2019, 17:07 |
|
#2 |
New Member
Abdulaziz Alkandari
Join Date: Apr 2019
Posts: 6
Rep Power: 7 |
Did you manage to fix the problem? If so can you explain please.
|
|
July 16, 2019, 04:05 |
|
#3 | |
Member
Priyanka P
Join Date: Apr 2019
Location: Germany
Posts: 40
Rep Power: 7 |
Quote:
First, please RUN checkMesh to check if you have any non-orthogonal faces in your mesh. For me, I was getting this error due to my mesh because I had non-orthogonal faces in my mesh, I refined my mesh to remove the non-orthogonality and then I didn't get this error. If you can't refine your mesh, then you should add nonOrthoCorrectors in your fvSolution file. OR, you can also modify your fvSchemes to compensate the non-orthogonality. You can check the link below about the modification of fvSchemes. https://cfd.direct/openfoam/user-guide/v6-fvschemes/ Hope this helps. Best, Priyanka |
||
Tags |
boundary conditions, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
HeatSource BC to the whole region in chtMultiRegionHeater | xsa | OpenFOAM Running, Solving & CFD | 3 | November 7, 2016 06:07 |
Floating point exception error | lpz_michele | OpenFOAM Running, Solving & CFD | 53 | October 19, 2015 03:50 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 14:12 |