CFD Online Discussion Forums

CFD Online Discussion Forums (
-   CD-adapco (
-   -   submit/queue batch job (

star February 19, 2009 06:51

submit/queue batch job
Hello! anyone can tell me how to submit a job to be running 3 hours from now on a windows computer? Any script or procedure you can share? thanks in advance!

star February 20, 2009 00:04

Re: submit/queue batch job
no one has ever done job queueing on windows?

Bubba February 20, 2009 01:04

Re: submit/queue batch job
I don''t even like checking my e-mail on Windows.

star February 20, 2009 03:20

Re: submit/queue batch job
cpu's are cheaper on windows desktops, quad core for a couple of thousands, $$. Situations change rapidly, dynamically, rigid loyalty serves little.

HS February 20, 2009 06:55

Re: submit/queue batch job
Do you mean something like this?

@echo off set starccmplus="C:\Program Files\CD-adapco\STAR-CCM+ 3.06.006"

set run1=simulation1.sim set run2=simulation2.sim

set nodes=5


echo The STAR-CCM+ installation is %starccmplus%

echo %date% - %time% - STARTING BATCH > log.txt


REM Run the *.sim until the first stopping criteria is reached


echo %date% - %time% - START %run1% >> log.txt

%starccmplus%\starccm+ -np %nodes% -batch run1

echo %date% - %time% - Complete %run1% >> log.txt

sleep 5


echo %date% - %time% - START %run2% >> log.txt

%starccmplus%\starccm+ -np %nodes% -batch run2

echo %date% - %time% - Complete %run2% >> log.txt

sleep 5

echo %date% - %time% - BATCH FINISHED >> log.txt

star February 20, 2009 09:40

Re: submit/queue batch job
yes! will try yours! thanks, maybe it works with star-cd too!

Chris February 22, 2009 14:22

Re: submit/queue batch job
Use the Windows Task Scheduler to schedule when to run the job. Start > Program Files > Accessories > System Tools > Scheduled Tasks (for XP) or Task Scheduler (vista).

Using a batch script in as above in conjunction with the task scheduler is the most flexible.

If you are getting new systems, look at Windows HPC Server which provides a job scheduler for clusters with resource allocation.

star February 22, 2009 20:59

Re: submit/queue batch job
hey thanksss for the tip! :D

Andy R February 24, 2009 18:25

Re: submit/queue batch job
Why would the windows box be cheaper. Any quad core box I can by with windows I can by with LINUX for less. We have a fairly large Beowulf cluster here, but for some programs we buy a single box just as you describe but with LINUX installed. We save the price of Windows and most analysis codes will run faster on it.

Nothing rigid about wanting the cheapes simplest solution. When that becomes windows, I will be happy to change. - Andy R

star February 25, 2009 05:33

Re: submit/queue batch job
no preference, just maximizing usage on windows, linux and unix. Already have a batch script for linux and unix. Next time could be asking for scripts to queue on xbox.. who knows.

All times are GMT -4. The time now is 05:07.