Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

How to run sysnoise script (cmd) files in LMS virtual lab

Hi,

Actually, I want to do the Direct BEM solutions in LMS virtual lab . 

So I have some sysnoise script files in .cmd format. Please can anyone suggest me how to run these sysnoise files in LMS virtual lab

 

Thanks

13 REPLIES
Solution
Solution
Accepted by topic author Nagaraj_Jade
‎06-19-2016 02:03 AM

Re: How to run sysnoise script (cmd) files in LMS virtual lab

In LMS Virtual.lab , you could create the Sysnoise script cmd file by submit the job using the manual mode.  VL writes out multiple files (*.cmd, *.sdb, *.bat,..) to the spcified working directory.  You just need to execute the *.bat file to run the Sysnoise script *.cmd file.  Please note that these Sysnoise script cmd files must be created by Virtual.lab.  Sysnoise script cmd files created by old stand-alone Sysnoise could not be exacuted by Sysnoise solver in Virtual.lab.

Re: How to run sysnoise script (cmd) files in LMS virtual lab

Dear King_Hang

 

Thanks for your reply.

Actually, I tried manual mode and I can able to execute the .bat and cmd files.

 But I have some old .sdb and .cmd files so that's what I exactly need to run and so your telling that it's not possible.

Don't have any other options..?

Thanks,

Re: How to run sysnoise script (cmd) files in LMS virtual lab

Hello,

I have created 20 different .bat files which was created from LMS Virtual Lab and now I want to run these analysis .bat files sequentially, so the solver runs continuously without my interference.

Can anyone explain how to do?

Regards
Kesava Reddy K

Re: How to run sysnoise script (cmd) files in LMS virtual lab

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.

Re: How to run sysnoise script (cmd) files in LMS virtual lab

Hello Kin Hong,

 

 

Thanks for the solution with very good explanation.

 

 

Regards

Kesava Reddy K

 

Re: How to run sysnoise script (cmd) files in LMS virtual lab

Hello Kin Hong,

In your reply you have mentioned to delete last three lines in Step 2: Command Files editing

Which lines need to be deleted?.

Regards
kesava Reddy K

Re: How to run sysnoise script (cmd) files in LMS virtual lab

Delete these 3 lines:

 

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

Re: How to run sysnoise script (cmd) files in LMS virtual lab

[ Edited ]

Superb. Now I can able to run multiple jobs sequentially.

 

Regards

Kesava Reddy K

Re: How to run sysnoise script (cmd) files in LMS virtual lab

How to terminate or pause the sysnoise calculation at any point of time?