CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Elapsed Wall Clock Time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2014, 05:22
Question Elapsed Wall Clock Time
  #1
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 14
JuPa is on a distinguished road
Hi,

Is there a way to tell CFX to stop the simulation after 11 hours of wall clock run time? I submit jobs to a high end computer node, which the maximum allowed run time is 12 hours. Before the computer kicks me out and aborts my job I want to write a results file at the 11th hour.

I thought the "Elapsed Wall Clock Time Control" option might have done this but after reading the CFX Pre guide it seems I'm wrong.

I did a search, and read a comment by ghorrocks in this thread who said
Quote:
Originally Posted by ghorrocks View Post
Another thing to consider - you can use the cfx5stop command to stop a run in progress. It will shut down the slover and write a complete results file of whereever it got to. If you want to be clever you can set up a timed job (maybe using cron) to execute cfx5stop just before your time is up. Make sure you give it enough time to complete the timestep it is working on and write the results file.
This sounds like what I want. Does anyone know of a way to implement this?

Thank you
JuPa is offline   Reply With Quote

Old   February 12, 2014, 05:28
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
I had the same problem a few years ago and as far as I remember, the elapsed wall clock time control was exactly what I needed.
flotus1 is offline   Reply With Quote

Old   February 12, 2014, 05:35
Default
  #3
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
I've had problems getting the elapsed wall clock time control to work, especially if Im using many cores for the simulation. It seems that it never kicks in, even though the wall clock time has expired. If I have to stop a simulation, I just run cfx5stop manually. Im sure there are ways to do it more efficiently, e.g. using cron as mentioned by Glenn.
Lance is offline   Reply With Quote

Old   February 12, 2014, 05:37
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The elapsed wall clock time is a new(ish) feature which makes it very easy. The alternative using a cron job is the old way of doing it - but the idea of running cfx5stop to stop a job is also useful with other triggers which are not built into CFX.

As for how to use cron: http://www.lmgtfy.com/?q=cron (sorry about the sarcasm but I have been itching to use that link )
ghorrocks is offline   Reply With Quote

Old   February 12, 2014, 06:02
Default
  #5
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 14
JuPa is on a distinguished road
Excellent. Thanks for your replies. I'll do a bit more digging around using cron, and I'll run a few simple jobs using the command to see if it works.

P.S - Lance. I agree. I've had no luck getting the lapsed wall clock time control to work on 16 cores. I doubt it'll work when I ratchet up the power to 64 or 128 cores!
JuPa is offline   Reply With Quote

Old   February 12, 2014, 06:57
Default
  #6
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Quote:
Originally Posted by RicochetJ View Post
P.S - Lance. I agree. I've had no luck getting the lapsed wall clock time control to work on 16 cores. I doubt it'll work when I ratchet up the power to 64 or 128 cores!
If I remember correctly I got the control to work using 64 cores, but there was no way that it worked for 128 or more. However, cfx5stop worked fine for the same simulation. I asked Ansys about this a long time ago, but they never addressed the issue.
Lance 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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 09:34
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
difference in CPU and wall clock time Atit CFX 6 May 22, 2007 08:43


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