CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Technical] How to know if blockMesh is successful

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2022, 08:49
Default How to know if blockMesh is successful
  #1
New Member
 
chen yu Huang
Join Date: Nov 2019
Posts: 18
Rep Power: 7
chenu is on a distinguished road
Hello,
Sometimes we execute OpenFOAM and we can read messages from .log file if an error occurs. Is there any way to know if blcokMesh is successfully executed? For example, we could check a value return from OpenFOAM, 1 means some errors occur, otherwise returns 0.
I will be grateful for any suggestions.
chenu is offline   Reply With Quote

Old   August 23, 2022, 05:25
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12
AtoHM is on a distinguished road
Not a bad idea, I dont know of a return value. But looking at my logs, all aplication parts of meshing (blockMesh, snappy, reconstruction, surfaceFeatures, ...) write "End" to the end of the log. I think if some critial error occurs, it will be "FOAM EXITING". Then, can you just look into the log from a script and catch the case when there is no "End" statement and assume something went wrong?
AtoHM is offline   Reply With Quote

Old   August 23, 2022, 05:46
Default
  #3
New Member
 
chen yu Huang
Join Date: Nov 2019
Posts: 18
Rep Power: 7
chenu is on a distinguished road
Hello,
that will be a good suggestion, I will try it. Thank you.

Quote:
Originally Posted by AtoHM View Post
Not a bad idea, I dont know of a return value. But looking at my logs, all aplication parts of meshing (blockMesh, snappy, reconstruction, surfaceFeatures, ...) write "End" to the end of the log. I think if some critial error occurs, it will be "FOAM EXITING". Then, can you just look into the log from a script and catch the case when there is no "End" statement and assume something went wrong?
chenu 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
[blockMesh] OpenFOAM blockMesh bus error BRH OpenFOAM Meshing & Mesh Conversion 0 April 12, 2021 12:02
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
Installation/Tutorial - libraries not found (blockMesh) bernarde OpenFOAM 3 June 19, 2009 13:36
IcoFoam Not Installed and blockMesh command not found cesarbz OpenFOAM Installation 6 July 4, 2008 05:44
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 12:59


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