CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] using waves2foam in OF2.3.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2017, 15:52
Default using waves2foam in OF2.3.0
  #1
New Member
 
bangun
Join Date: Feb 2015
Posts: 16
Rep Power: 11
eb19 is on a distinguished road
Dear All,

I want to simulate a cylinder in a numerical wave tank and I've been using OF2.3.0. Previously I got no error when implementing this solver in a two-dimensional problem, but now in this 3D case, I have this following error:


wrong token type - expected Scalar, found on line 0 the word 'nan'M FATAL IO ERROR:
[23] wrong token type - expected Scalar, found on line 0 the word 'nan'
[23]
[23] file: /scratch1/ele12/OpenFOAM/a04f1v3/processor23/system/data.solverPerformance.p_rgh at line 0.
file: /scratch1/ele12/OpenFOAM/a04f1v3/processor23/system/data.solverPerformance.p_rgh at line 0.

In OF2.3.0, the p_rgh boundary condition imposed for a no-slip boundary is fixedFluxPressure, with value uniform 0. But often from a tutorial case of wave2foam, I noticed the p_rgh boundary condition imposed on a wall surface is zeroGradient.

I think both terms have the same physical meaning. If not, could this be one of the reasons causing the above error? My mesh is okay as I did check the mesh.

Could anyone give me a hint or suggestion please?

Regards
eb19
eb19 is offline   Reply With Quote

Old   November 25, 2017, 02:11
Default
  #2
Member
 
Ahmed Elhanfi
Join Date: Nov 2014
Posts: 30
Rep Power: 11
Ahmed Elhanafi is on a distinguished road
Quote:
Originally Posted by eb19 View Post
Dear All,

I want to simulate a cylinder in a numerical wave tank and I've been using OF2.3.0. Previously I got no error when implementing this solver in a two-dimensional problem, but now in this 3D case, I have this following error:


wrong token type - expected Scalar, found on line 0 the word 'nan'M FATAL IO ERROR:
[23] wrong token type - expected Scalar, found on line 0 the word 'nan'
[23]
[23] file: /scratch1/ele12/OpenFOAM/a04f1v3/processor23/system/data.solverPerformance.p_rgh at line 0.
file: /scratch1/ele12/OpenFOAM/a04f1v3/processor23/system/data.solverPerformance.p_rgh at line 0.

In OF2.3.0, the p_rgh boundary condition imposed for a no-slip boundary is fixedFluxPressure, with value uniform 0. But often from a tutorial case of wave2foam, I noticed the p_rgh boundary condition imposed on a wall surface is zeroGradient.

I think both terms have the same physical meaning. If not, could this be one of the reasons causing the above error? My mesh is okay as I did check the mesh.

Could anyone give me a hint or suggestion please?

Regards
eb19
Hi eb19,

I have the same problem as you. I'm using OF2.3.0 and apply zeroGradient for the pressure boundary condition on the cylinder surface. I think the problem is related to the volume fraction (alpha) that goes to a very large number (10^5....). You can see this in your .log file for your simulation.
Are you using adjustable timestep?. This can fix up your problem but will increase the computation time due to the very small time step for a Courant number less than 1.
Another thing that you could try is to use a relaxation factor, but this could affect your final results at each time step, as far as I understand.

Kind Regards,
Ahmed
Ahmed Elhanafi 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
[waves2Foam] Mooring Lines waves2Foam How To mhasif02 OpenFOAM Community Contributions 12 December 27, 2023 01:59
[waves2Foam] combined set of waves with waves2Foam blaise OpenFOAM Community Contributions 7 December 16, 2023 08:33
[waves2Foam] waves2foam for of1706 cfd_hchen OpenFOAM Community Contributions 0 November 25, 2017 07:55
Segmentation fault running waveDyMFoam solver (mod. interDyMFoam solver - waves2Foam) Ed R OpenFOAM Running, Solving & CFD 5 July 2, 2013 11:36


All times are GMT -4. The time now is 20:22.