Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submitting Nastran Jobs in batch mode on Windows

Status
Not open for further replies.

nlgyro

New member
Nov 14, 2009
172
0
0
AU

thread2-270689

This is in response to the query that OP has asked for in the above thread. Although the response suggested "somewhat" answers the question posed, here is a more elegant way of doing it in MS-DOS.

Copy & paste the following line in a notepad window and save it as "run.bat" (for example) in your working directory where you have the nastran input files in *.dat extn

**********
for %%i in (*.dat) do call C:\MSC.Software\MD_Nastran\20101\bin\mdnastran.exe scr=y old=n news=n %%i

**********

Execute the file, by double-clicking on "run.bat"

The path that you see there is the path for the mdnastran exceutable on my machine. Should be changed to whatever "nastran.exe" path the user might have on their machines. If you have the nastran files in *.bdf extension, replace the (*.dat) in the line to (*.bdf)

This runs for any number of nastran I/P files that you may have.
 
Status
Not open for further replies.
Back
Top