|
[Sponsors] |
February 1, 2017, 23:02 |
NACA0012 rhoSimpleFoam
|
#1 |
New Member
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9 |
So I'm relatively new to OpenFoam and been trawling the site for answers. I'm using the NASA grids for NACA0012 (10 degs AOA) and while 0 degree angle of attack works, I have been unable to get the problem working with anything other than the 113x33 grids.
Unless I use some sort of pressure relaxation, I'm unable to do even the 113x33 grid problem which doesn't make sense since I'm using SIMPLEC. I have also done the Zero Gradient Flat plate and have used totalPressure,totalTemperature and pressuredirectedvelocity well there and wonder if there is any way to do something similar for this case. Right now for the airfoil, I'm using freestream and freestreamPressure for all conditions since it allows me to vector U for 10 degrees AOA. Specifying pressuredirectedinletvelocity's inlet direction doesn't seem to provide the freestream angle vectoring effect for 10 degrees. Error I'm getting, Code:
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::perfectGas<Foam::specie> >; Type = Foam::sensibleInternalEnergy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy>] in file /opt/OpenFOAM/OpenFOAM-3.0.x/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 66. https://drive.google.com/open?id=0B4...EEyOU9lSkgwV0k |
|
February 16, 2017, 06:46 |
|
#2 |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
Hello Joshua,
Actually, I came across the same problem of you. After searching the relevant threads in this forum, I realized that this error resulted from many many factors. The reason it occurs is that the solver iterates to get T from the correlation of h (enthalpy) and T. However, it fails to obtain the temperature even the maximum iteration is exceeded. As a result, the error information pops up. Please see following threads to solve your problems: 1. FOAM FATAL ERROR Maximum number of iterations exceeded 2. Maximum number of iterations exceeded I have to mention that the discussions above do not necessarily eliminate your problem. For me, the poor quality of grid is to be blamed. And NACA0012 is running well in my computer (the mesh was generated by myself). Hope this will help. Best regards, Peter |
|
February 16, 2017, 20:06 |
|
#3 |
New Member
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9 |
Hello Peter, thanks for your reply. I'm about to try using my own generated meshes but its strange that the mesh quality would be poor(since it looks really good) with the exception of the extremely high aspect ratio.
May I just ask how are you defining your boundaries for the problem? Is using velocity conditions on the farfield okay with rhosimplefoam? Thanks for listening! |
|
February 16, 2017, 20:28 |
|
#4 | |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
Quote:
The attachment is my setting for rhoSimpleFoam. At least, it runs well using my own grid. As a remainder, I did not employ any of wall functions, since my y+ is around 5. Certainly, you can use wall function when your y+ is larger than 30. High-aspect ratio cell is not a good news, I suggest you re-generate your mesh until everything is fine. Actually, I am struggling with rhoSimpleFoam either, however at least my program can run for simple case of NACA0012, while I am calculating high-lift devices. Best, Peter |
||
March 15, 2017, 02:57 |
|
#5 |
New Member
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9 |
A quick update. I successfully got the case running with your files and it turns out its the numerics schemes in fvschemes that are the culprit in my case. Implemented cellLimited schemes to get it to be pretty stable. Hope that helps someone!
|
|
March 15, 2017, 05:13 |
|
#6 | |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
Quote:
Best, Peter |
||
March 18, 2017, 10:34 |
|
#7 | |
New Member
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9 |
Quote:
On 2 levels of refinement of the same mesh I posted earlier, my drag error is about a 2.5% currently and is on track compared to my solution on simpleFoam(which is using no limiters). Just to add, I'm using FaceLimited as well for finer meshes but I get non-physical results on the converged solution, the fix is to switch to CellLimited after for a valid solution. |
||
June 4, 2018, 06:18 |
|
#8 | |
New Member
Khanh
Join Date: Dec 2015
Posts: 4
Rep Power: 10 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transsonic nozzle with rhoSimpleFoam | Unseen | OpenFOAM Running, Solving & CFD | 8 | July 1, 2022 06:54 |
rhoSimpleFoam angledDuctExplicitFixedCoeff tutorial fails in parallel | donQi | OpenFOAM Running, Solving & CFD | 1 | February 22, 2016 19:47 |
rhoSimpleFoam. patchField error. | 123 | OpenFOAM Running, Solving & CFD | 4 | June 6, 2014 15:22 |
Question about rhoSimpleFoam "if (transonic)" | universez | OpenFOAM | 4 | April 17, 2010 10:21 |
I want NACA0012 simulation datas | Santana | Main CFD Forum | 2 | December 28, 2004 11:58 |