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

Create .res file in cluster

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ghorrocks
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2021, 13:04
Default Create .res file in cluster
  #1
New Member
 
Join Date: Mar 2021
Posts: 3
Rep Power: 5
blank665 is on a distinguished road
Hey guys,

I'm trying to simulate a problem in a server cluster. I start the solver via script over the .def file. The problem is, even when I set a maximum iteration number of lets say 100, the simulation goes on and on, until the server cluster shuts down my job due to walltime limit. Because of that no .res file is created and the simlation was in vain.

This is the script im using (provided by my institute):

https://i.imgur.com/VEn3QqR.png

Is there a way or a batch command to put into the script, so that the result file is created lets say after every 10 iterations ? Or a simpler way would be a command for stopping my simulation correctly after 500 iterations.

Kind Regards
blank665 is offline   Reply With Quote

Old   April 22, 2021, 17:55
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
Don't add links in your posts. No one knows what's exactly behind.
Post additional info on the forum itself. Please go to "Go advanced" to see how. See below.....
Gert-Jan is offline   Reply With Quote

Old   April 22, 2021, 20:01
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
There is a FAQ on images: https://www.cfd-online.com/Wiki/Ansy...n_the_forum.3F

To answer your question:
If you set up the simulation to have a maximum of 100 iterations in CFX-Pre then it will stop at 100 and produce a res file. If your simulation is going beyond 100 iterations then you have not set this.

You have options to save res files every 10 iterations, at any iteration number or many other options. It is all in the Convergence parameters in CFX-Pre.

A final comment:
You appear to be running in PBS, but you just call the cfx5solve command which probably will not run inside PBS. Are you sure this correct?
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   April 23, 2021, 09:27
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
When you are running on a cluster, and have limited time available for a given simulation, you must set the maximum "wall clock time" to a smaller value than the allocated time so the simulation can finish smoothly.

The alternative is to use backup files and let it fail and recover from the last backup file. Though it works, you will be wasting the effort from the last backup file to the point of failure.

The cluster queue is doing what is intended to do, to finish the job immediately once it runs out of time.
aero_head likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Reply

Tags
.res file, cluster setup


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
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 15:02.