CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > CFX

Create .res file in cluster

Register Blogs Members List Search Today's Posts Mark Forums Read

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2021, 12:04
Default Create .res file in cluster
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):

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, 16:55
Senior Member
Join Date: Oct 2012
Location: Europe
Posts: 1,827
Rep Power: 27
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, 19:01
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
There is a FAQ on images:

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, 08:27
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
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


.res file, cluster setup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:32
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 05:18
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44

All times are GMT -4. The time now is 21:08.