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

Queueing the simulations

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 1, 2008, 17:07
Default Queueing the simulations
  #1
CFDLife
Guest
 
Posts: n/a
I am running my simulations on Intel dual core processor (windows based). I have parallel licensing using.

Is there a way I can queue up a few runs, so that the machine can keep working even when i am away?

In other words, how do i create a batch file to run in ANSYS CFX to queue up the simulations.

I read other post where it was mentioned but i guess it was for cfx5 and doesnt work in ANSYS CFX.

Thanks in advance
  Reply With Quote

Old   August 1, 2008, 18:45
Default Re: Queueing the simulations
  #2
Rogerio Fernandes Brito
Guest
 
Posts: n/a
there is a way u can queue up a few runs, then the machine can keep working even when i am away! I just decrease the priority of run, task bar of windows, using low!

  Reply With Quote

Old   August 2, 2008, 04:16
Default Re: Queueing the simulations
  #3
Amit Roghs
Guest
 
Posts: n/a
Write the following perl program to have a batch mode run in sequence.

use strict;

system "cfx5solve -def your file name.def";

system "cfx5solve -def your second file name.def";

After writing the above text in a notepad save it as .pl file extension & give the file name what you wish, I am taking sample.pl

Then type the following in the command prompt of CFX in your working directory of above files.

perl sample.pl

The run will start automatically & when first run is over the other will start automatically.

Do let me know if you have any queries.

Regards,

Amit Roghs
  Reply With Quote

Old   August 3, 2008, 18:37
Default Re: Queueing the simulations
  #4
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

Rogerio's suggestion is a very poor way of doing it. It uses many licenses and also fills up your system memory. Amit's posting shows how to do it using perl but it is much easier to just write a simple batch (Windows) or shell script (unix/linux) and queue them that way.

eg, in windows create a file called "doruns.bat" which contains: cfx5solve -definition run1.def cfx5solve -definition run2.def cfx5solve -definition run3.def cfx5solve -definition run4.def

Run the batch file (using a command line started from the CFX launcher window) and they will be queued up.

Glenn Horrocks
  Reply With Quote

Old   August 4, 2008, 16:18
Default Re: Queueing the simulations
  #5
CFDLife
Guest
 
Posts: n/a
Thanks to all of you, I did what u suggested.

When I run the perl in the command prompt, it says - 'perl' is not recognized as an internal or external command, operable program or batch file.

Is there any solution to this problem?
  Reply With Quote

Old   August 5, 2008, 01:07
Default Re: Queueing the simulations
  #6
Amit Roghs
Guest
 
Posts: n/a
You should run the perl from the Ansys CFX command prompt.
  Reply With Quote

Old   August 5, 2008, 09:13
Default Re: Queueing the simulations
  #7
CFDLife
Guest
 
Posts: n/a
Ok..Here is what i did:

Open a *.cfx file in ANSYS CFX-Pre. Clicked on Tools - > Command Editor Wrote sample.pl and Hit Process (My file name is sample.pl)

I got an error saying

CCL parser failed with message parseCCLineH: syntax error near sample.pl
  Reply With Quote

Old   August 5, 2008, 20:13
Default Re: Queueing the simulations
  #8
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

Unless you are going to use the functionality of perl (looping, if/then, subroutines etc) then forget perl and use a simple batch script. If all you want to do a sequence of simulations it is much easier.

Glenn Horrocks
  Reply With Quote

Old   August 6, 2008, 00:21
Default Re: Queueing the simulations
  #9
Amit Roghs
Guest
 
Posts: n/a
Dude you dont have to do that in *.cfx

I will write down the steps below.

1.Open the Ansys CFX Launcher(not ansys CFX Pre)

2.Go to Tools

3.There you have any option of command prompt.

4.Once you click it there will be a DOS window opening.

5.After that you gotta write perl sample.pl

6.The job will start running automatically.

7.You wont be able to see it directly.

8.Now open the CFX Solver.

9.Go to File Menu,click Monitor Run in Progress.

10.Give path to the working directory where it is being run.

11. You will be able to see the run convergence and the run details as usual.

If you still dont get the procedure then do let me know.

Regards,

Amit Roghs
  Reply With Quote

Old   December 1, 2014, 17:42
Default
  #10
AGP
Member
 
Anonymous
Join Date: Apr 2013
Posts: 34
Rep Power: 4
AGP is on a distinguished road
Is there any way to do the same thing in FLUENT?
AGP is offline   Reply With Quote

Old   December 2, 2014, 01:54
Default
  #11
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,665
Rep Power: 84
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Fluent can be run from the command line so you can do it there. I suspect it can also be run through workbench so that is another way. You can also use batch scheduling software like PBS of LSF.

Try the fluent form for details.
ghorrocks is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Periodic boundary conditions in 3D Eulerian granular flow simulations dsm FLUENT 4 March 2, 2012 20:04
Hardware selection for steady/unsteady incompressible, turbulent and cht simulations maddalena OpenFOAM 2 July 13, 2011 08:55
Timestepping in two - phase Simulations using RSM challenger85 CFX 0 January 4, 2010 06:00
Queueing the simulations CFDLife CFX 4 August 4, 2008 09:33
URANS and Transient Simulations bob Main CFD Forum 0 October 1, 2003 03:54


All times are GMT -4. The time now is 04:13.