Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Queue up simulations in NX Advanced Simulation for NX Nastran solver

Status
Not open for further replies.

Sandcor

Mechanical
Dec 6, 2012
7
Hello!

I am trying to queue up some simulations I prepared in NX Advanced Simulation for overnight calculation with NX Nastran. The softwareversion is Siemens NX 6.

During my search on the web I found a description of how to solve it with a file named "multipleruns.dat". The way is described in the document "What's new in NX 6". According to it you have to do the following steps:
[ol 1]
[li]Create a solver input file for each analysis, noting its file name and
location.[/li]
[li]Using a text editor, create an ASCII text file that lists the input files in
the order in which they should be solved. Include the full path with each
input file name, and use a new line for each input file path/name.[/li]
[li]Name the text file multipleruns.dat and save it in the same directory as
the first input file in the list.[/li]
[li]Solve the input file for the first analysis. The other input files listed in the
text file are automatically solved in sequence.[/li]
[/ol]


I tried to work through the description and did the following:
[ul]
[li]First I created two different parts, meshed them and put some constraints to them[/li]
[li]I exported a solver input by: File -> Export -> Simulation: [Path]\FIRST.dat [/li]
[li]I did this also for the second solution: ... [Path]\SECOND.dat[/li]
[li]After that I opened Notepad and typed the following:
[ul]
[li]\\[Path]\Testing Parts[/li]
[li]FIRST.dat[/li]
[li]\\[Path]\Testing Parts[/li]
[li]SECOND.dat[/li]
[/ul]
[/li]
[li]Then I saved the file under multipleruns.dat in the same file, where the input files are saved[/li]
[li]Finaly I imported the file multipleruns.dat by: File -> Import -> Simulation: Choosed "NX Nastran" , searched for "FIRST.dat" and pressed "OK". After confirming the solution paths, the calculation began.[/li]
[/ul]

The result: The first Solution has been solved. The other not.


Does anybody know, how to queue simulations, so that one can solve them overnight? Perhaps someone knows or sees a mistake in my way.

I would be very glad, if someone will help me with this.

If the problem is unclear or informations are missing, please ask.

Kind regards,

Sandcor
 
Replies continue below

Recommended for you

Dear Sandcor,

I am not sure but I think you need to have the path name and the file name on the same line.

I will check and see if this is the case.

Marilyn Tomlin
 
Hi Marilyn Tomlin and all the others,

first of all: Thank you for your answer Marilyn!

But I still didn't solve the problem

When I read my post again, I realized a big mistake myself. I imported the input files. I didn't confirm a solution but the path to save the "new" model I imported.
Till now I didn't send a solver input file to Nastran manually. I always started my simulations by clicking on the Solve Button and confirmed the following message.

My second try:

[ul]
[li]To create an solver input file, I clicked the button "Solve". Then I changed the dropdown menu to "Write Solver Input File" and got the information "Nastran Deck Successfully Written"[/li]
[li]I repeated that for the second model I want to get solved by the routine[/li]
[li]I wrote both Filenames included with there path into the "multipleruns.dat" like the following:[ul]
[li]C:\NX_Test\firstpart_sim1-solution_1.dat[/li]
[li]C:\NX_Test\secondpart_sim1-solution_1.dat[/li]
[/ul][/li]
[li]Now I had both files opened and pressed the "Solve" button.[/li]
[li]In the next window I changed the dropdown menu entry to "Solve Input File"[/li]
[li]When I clicked the "OK" Button, the solver started its work-[/li]
[li]The "Analysis Job Monitor" and the "Solution Monitor" confirm the correct solution of the first part[/li]
[li]BUT only the solution of the part in which I started the solution gets done[/li]
[/ul]

The effect is still the same: One solutions gets done, the other not

My main questions remains: Does anybody know, how to queue simulations, so that one can solve them one after another?

Thanks for any help,

Sandcor
 
Hi,

finaly the problem is solved.

The way it works:
[ul]
[li]Create the "Solver Input Files"[/li]
[li]Create a file with an text editor like notepad with an entry like the following for each simulation to solve. It could look like:[ul]
[li]"C:\UGS\NX6\NXNASTRAN\bin\nastran.exe" progr=bundle C:\[Path to file]\[Name of "Solver Input File 1"].dat[/li]
[li]"C:\UGS\NX6\NXNASTRAN\bin\nastran.exe" progr=bundle C:\[Path to file]\[Name of "Solver Input File 2"].dat[/li]
[/ul][/li]
[li]Save it as [filename].bat[/li]
[li]To solve the input file you just have to doubleclick the .bat file[/li]
[/ul]

Sandcor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor