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

NACA0012 rhoSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2017, 23:02
Default NACA0012 rhoSimpleFoam
  #1
New Member
 
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9
firev1 is on a distinguished road
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.
Case attached here
https://drive.google.com/open?id=0B4...EEyOU9lSkgwV0k
firev1 is offline   Reply With Quote

Old   February 16, 2017, 06:46
Default
  #2
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
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
PeterShi is offline   Reply With Quote

Old   February 16, 2017, 20:06
Default
  #3
New Member
 
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9
firev1 is on a distinguished road
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!
firev1 is offline   Reply With Quote

Old   February 16, 2017, 20:28
Default
  #4
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by firev1 View Post
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!
Hi Joshua,

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
Attached Files
File Type: zip rhoSimpleFoam.zip (7.6 KB, 71 views)
PeterShi is offline   Reply With Quote

Old   March 15, 2017, 02:57
Default
  #5
New Member
 
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9
firev1 is on a distinguished road
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!
firev1 is offline   Reply With Quote

Old   March 15, 2017, 05:13
Default
  #6
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by firev1 View Post
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!
Glad to hear that. However, CellLimited scheme will reduce the accuracy while do increase the stability, at least according to my experience. Have you compare your result with the experimental data?

Best,
Peter
PeterShi is offline   Reply With Quote

Old   March 18, 2017, 10:34
Default
  #7
New Member
 
Joshua
Join Date: Oct 2016
Posts: 5
Rep Power: 9
firev1 is on a distinguished road
Quote:
Originally Posted by PeterShi View Post
Glad to hear that. However, CellLimited scheme will reduce the accuracy while do increase the stability, at least according to my experience. Have you compare your result with the experimental data?

Best,
Peter
Indeed it does but it appears to have limited effect with my case since mesh error seems to be the more dominant source of error.

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.
firev1 is offline   Reply With Quote

Old   June 4, 2018, 06:18
Default
  #8
New Member
 
Khanh
Join Date: Dec 2015
Posts: 4
Rep Power: 10
khanhrovip is on a distinguished road
Quote:
Originally Posted by firev1 View Post
Indeed it does but it appears to have limited effect with my case since mesh error seems to be the more dominant source of error.

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.
Hi Joshua, can you share your case? Thank you!
khanhrovip 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
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


All times are GMT -4. The time now is 00:51.