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

OpenFOAM Termination

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2019, 05:06
Default OpenFOAM Termination
  #1
New Member
 
Raj Chaudhary
Join Date: Aug 2019
Posts: 1
Rep Power: 0
thoughtspeed7 is on a distinguished road
I have a bash script which executes OpenFOAM and later kills the Virtual Machine once OpenFOAM gets done even if OpenFOAM results in an error. But for this particular case / error, the Virtual Machine never gets killed and is stuck at OpenFOAM even though OpenFOAM logs reveal an error and OpenFOAM processing being stuck. I guess it's because OpenFOAM never exits? Not sure.

My bash script looks similar to below:

echo openfoam started
mpirun --allow-run-as-root -np 4 simpleFoam -parallel &>> log.txt
echo openfoam ended
# VM termination commands go here

Also find attached log.txt which logs OpenFOAM output.

What is the best way to know that OpenFOAM is stuck with some error and has stopped processing and I should go ahead and kill the Virtual Machine from bash?

And why does this script work for all other cases even when they result in an error but fails with this particular case?

Thanks in advance.
Attached Files
File Type: txt log.txt (74.8 KB, 2 views)
thoughtspeed7 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
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 5, 2018 23:48
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
The OpenFOAM extensions project mbeaudoin OpenFOAM 16 October 9, 2007 09:33


All times are GMT -4. The time now is 06:38.