cancel
Showing results for 
Search instead for 
Did you mean: 

Running LMS Virtual Lab jobs in batch mode

Creator
Creator

Question : How to run multiple LMS VL-acoustics jobs in batch mode?

 

The solution was originally posted/Answered by Kin_Hong.

 

It is possible to solve several acoustic models in one run as long as they are run manually (in manual
mode). In this scheme, the acoustic models are going to be solved one after each other. This approach
can be very interesting if, for instance, you have prepared several models during your working day and
that you would run those overnight, one after each other, without having to manually interact in
between every job.

Nevertheless, this process requires some manual work. The steps are described in the following steps:


Step 1: Models Databases generation

First, the Databases of the models to be solved have to be generated by running each Virtual.Lab job
manually


After computation, Virtual.Lab will generate the necessary files (*.sdb, *.bat and *.cmd) in the specified
working directory, without launching the solver.
In the case of this example, the following files are generated in the C:\MY_WORKING_PATH directory:
cdecamp-3807-Acoustic.sdb
cdecamp-3807-CommandFile.cmd
cdecamp-3807-SysnoiseScript.bat

Note that the name of the files always starts with the UserName and is followed by the job number.
Please rename those files as jobl1, job2, job3…


Step 2: Command Files editing

The command files (*.cmd) generated in the step 1 have to be edited as explained below:


C:\MY_WORKING_PATH must be replaced by your working directory

cdecamp-3807-Acoustic.sdb must be replaced by you the name of your *.sdb file
(job1.sdb, job2.sdb…).

The three last lines of your file must be deleted.
ENVIRONMENT SECTION SETUP USRDIR 'C:\MY_WORKING_PATH\' RETURN
ENVIRONMENT SECTION SETUP TMPDIR 'C:\MY_WORKING_PATH\' RETURN
Open Model 1 File cdecamp-3807-Acoustic.sdb Original Return
Extract Summary Return
Environment Section SETUP BELL 'on' Return
Environment Section SETUP GEO_TOLERANCE '1E-006' Return
Parameter Model 1


Physical


Save Potentials Step 1
Save Results Step 1
Store Results none


Return
Near 2
Far 5
Quadrature 2 2 1


Positive
Return


Solve
Frequency 3500
Frequency 4000
Frequency 4500


Return
Save Return
Close Return


New Model 1 File cdecamp-3807-SignalFile.sdb Return
Save Return
Exit


Please note that the content of your *.cmd files may vary depending on your computation parameters
and the type of computation you have requested (coupled, non-coupled e.g.).


Step 3: The Master command file

Open a text editor and create a new text file named Master.cmd.
Type in the following code and save the file:

ENVIRONMENT SECTION SETUP USRDIR 'C:\MY_WORKING_PATH\' RETURN
ENVIRONMENT SECTION SETUP TMPDIR 'C:\MY_WORKING_PATH\' RETURN


READ JOB1.CMD RETURN
READ JOB2.CMD RETURN
READ JOB3.CMD RETURN


EXIT


Again, replace C:\MY_WORKING_PATH by your working directory.

Step 4: The Master Batch file

Make a copy of one of the *.bat files generated by VL, edit it and updated it the following way:


Replace C:\MY_WORKING_PATH by your working directory

Replace cdecamp-3807-CommandFile.cmd by Master.cmd

Replace cdecamp-3807-sysnoise.log by Master.log
@ECHO OFF
chdir /d C:\MY_WORKING_PATH
"C:\Program Files\LMS\Virtual.Lab.R8B-SL1\Sysnoise\5.6\bin\
sysnoise_nogui.bat" -nogui -m256 -if C:\MY_WORKING_PATH\cdecamp-3807CommandFile.
cmd -of C:\MY_WORKING_PATH\cdecamp-3807-sysnoise.log


Save the batch file and double click on it in order to launch the execution.
This will allow you to solve several models in one (overnight) run.

 

 

If you want to terminate the solver at any point of time, the only solution is to open task manager and kill the sysnoise.exe process.

 

 

Regards

Kesava Reddy K