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, 07:49
Default How to know if blockMesh is successful
  #1
New Member
 
chen yu Huang
Join Date: Nov 2019
Posts: 18
Rep Power: 6
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, 04:25
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
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, 04:46
Default
  #3
New Member
 
chen yu Huang
Join Date: Nov 2019
Posts: 18
Rep Power: 6
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 11:02
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
Installation/Tutorial - libraries not found (blockMesh) bernarde OpenFOAM 3 June 19, 2009 12:36
IcoFoam Not Installed and blockMesh command not found cesarbz OpenFOAM Installation 6 July 4, 2008 04:44
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 11:59


All times are GMT -4. The time now is 05:55.