Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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

Member
Joined
Nov 14, 2009
Messages
172
Location
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.

Part and Inventory Search

Sponsor

Back
Top