Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to generate different OP2 output file for each subcase?

How to generate different OP2 output file for each subcase?

How to generate different OP2 output file for each subcase?


I have 3 different load subcases for 1G loads in X, Y and Z directions. I would need to have Nastran write 3 different different OP2 output files, one for each subcase. Is it possible? What case control cards should I use?

For instance:
SUBCASE 1 ---> 1GX ---> output file: ...1GX.op2
SUBCASE 2 ---> 1GY ---> output file: ...1GY.op2
SUBCASE 3 ---> 1GZ ---> output file: ...1GZ.op2

BTW, I am using NX Nastran solver 2021.2.


RE: How to generate different OP2 output file for each subcase?

At the risk of frustrating you in case you don't have access to MSC Nastran as well, there is a case control command in MSC Nastran called POST. It may only be available for SOL 101, which appears to be your context. When used with the TOFILE keyword, the POST command may be used to put results from each SUBCASE onto a different post processing unit which you can declare with a name in the FMS section using an ASSIGN statement.

The other possibility is to do what we used to do before POST was available in MSC Nastran. You run the job with the 3 load cases as normal, but request NO data recovery; run the job with the scr=no command line keyword. When the job has finished, you should have the .MASTER and .DBALL database files from this job still in the directory where you ran the job. Now define a read only restart input file where you add the data recovery requests to a different SUBCASE in each restart job. The op2 files created by the restarts will contain only the results for the SUBCASEs where you requested output. If you use a read only restart, you can restart off the same primary database as many times as you want and it will not affect that primary database. If you do the restart correctly, the job does not resolve the problem - the database already contains the solution to your 3 applied loads; in the restarts, once everything has been checked to make sure you didn't change anything (except the data recovery requests), the job jumps straight to data recovery and computes what you asked for.

There is a section about restarts in the Linear Static Analysis User's Guide.


RE: How to generate different OP2 output file for each subcase?

Thank you DG!

I am using NX Nastran (sad), so POST case control command has not been implemented in that solver. I guess I will go with the second option as a workaround. When you mention "no data recovery in the initial run for building the .MASTER/.DBALL database", do you mean no output request (no displacements, no stresses, no forces, etc.)?


RE: How to generate different OP2 output file for each subcase?

Yes, no output requests in the initial run - this is just a suggestion as you said you wanted to obtain 3 separate op2 files of results, and it seemed to simplest way to approach things. You could ask for some output requests in the first job (called the cold start) if you wanted to; doing this would not impact what you can do in the restarts, I just suggested it for simplicity.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close