hexagon logo

How to run several Marc jobs in a batch mode?

Hi,
I have a bunch (app. 50) of Marc input deks which I want to run sequentially.​ Usually I work with Nastran and there we can create a .bat file which lists all the input deks.
I tried to do the same for Marc using the run_marc.bat command, but only the first job is executed.
How can I create a .bat file for Marc?
Thanks for your support.
 
Regards, Thomas
  • Hi Thomas,
     
    We can run the marc jobs in batch mode using the .bat file similar to Nastran.
     
    Create a batch file in the same directory where the marc input decks are present. Batch file should like below,
     
    call C:\MSC.Software\Marc\2018.0.0\marc2018\tools\run_marc -j model1
    call C:\MSC.Software\Marc\2018.0.0\marc2018\tools\run_marc -j model2
    call C:\MSC.Software\Marc\2018.0.0\marc2018\tools\run_marc -j model3
     
    Replace model1, model2, model3 with your actual input file names. And chose appropriate Marc installation path.
     
    save the .bat file, and double click the batch file, to launch the batch run.
     
    Regards,
    Kiran
     
  • Dear Kiran,
     
    Thank you for your support. Now it's working.
    In fact, I did it like this. Only I missed the "call" at the beginning.
     
    Regards, Thomas​