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

LaunderSharmaKE diverges and return 'nan' error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vcvedant

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2017, 16:02
Default LaunderSharmaKE diverges and return 'nan' error
  #1
Member
 
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9
vcvedant is an unknown quantity at this point
Hello,

I am simulating turbulent flow over flat plate using low Reynolds number model: LaunderSharmaKE.

Boundary conditions:
Inlet: U (30, 0 ,0), p 0, k 0.13, epsilon 2.56, nut calculated.
Outlet: zeroGradient
top: zeroGradient
plate: U (0 0 0), p - zeroGradient, k 1e-10, epsilon 1e-8, nut 0.

I am using simpleFoam solver but after running for 14 iterations my solution diverges and I receive an error:
wrong toke type - expected Scalar, found on line 0 the work 'nan'.
When I checked the log files I found that k and epsilon have very large min and max bounds.

Can someone help me resolve this or guide me in the write direction?

Thanks,
Vedant
atulkjoy likes this.
vcvedant is offline   Reply With Quote

Old   July 29, 2017, 09:00
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
You might want to check the following points:
1. [Mesh] Y+ value should be at most order of 1 on the plate boundary.
2. [Boundary Condition] Inlet: p zeroGradient, Outlet: p 0

Best regards,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Old   July 29, 2017, 10:29
Default
  #3
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
Hello.
Have You tried to set relaxations factor?
Check my post:
Sudden divergence of simulation
Or it could be the mesh problem too.


EDIT:
'nan' means not a number.

Last edited by sheaker; July 29, 2017 at 15:50. Reason: new thought
sheaker is offline   Reply With Quote

Old   July 29, 2017, 15:53
Default
  #4
Member
 
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9
vcvedant is an unknown quantity at this point
Thank you all for your reply.
I think it was a mesh problem. I created a mesh in pointwise for OpenFOAM and used that which was giving me errors. I created a new mesh (using the same parameters as pointwise) using blockMeshDict which was able to converge.
I checked the mesh imported from pointwise using checkMesh and found no errors. My y+ was 0.3. So, I don't understand what was the problem with the previous mesh?
vcvedant is offline   Reply With Quote

Reply

Tags
divergence, low re k-e, openfoam 2.2.2, turbulence modeling


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



All times are GMT -4. The time now is 07:13.