Top Banner
NAS101, Page 8 - NAS101, Page 8 - 1 Section 8 File Management Section
40

NAS101, Page 8 - 1 Section 8 File Management Section.

Jan 19, 2016

Download

Documents

Logan Doyle
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 11

Section 8

File Management Section

Page 2: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 22

File Management Section

PAGE

The NASTRAN Statement 4

File Management Section (FMS) 6

FMS Overview 8

DBSETs 9

Required DBSETs 11

Typical Files Generated 12

Restarts 14

Automatic Restarts (SOLs 101-200) 15

Restart Example 17

Partial Cold Start F04 File 18

Partial Cold Start F06 File 20

Page 3: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 33

File Management Section (cont.)

PAGE

Restart Example – Method 1 21

Restart Example – Method 2 23

Partial Restart F04 File 25

Partial Restart F06 File 27

Restart Example Summary 28

Manipulating The Database 29

ASSIGN and INIT Statements 31

Examples – ASSIGN and INIT 33

EXPAND Statement 36

Example – EXPAND Statement 37

Example – Assigning a FORTRAN File 39

Page 4: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 44

THE NASTRAN STATEMENT The NASTRAN statement is a member of the FMS and is

optional. It should be used to modify operational parameters (system

cells). If used, it is best to place it as the first entry in the input file.

Used only in exceptional circumstances and is not needed for most runs.

For example, to change the buffsize, add either NASTRAN BUFFSIZE=12929

or

NASTRAN SYSTEM(1)=12929

Page 5: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 55

THE NASTRAN STATEMENT (Cont.)

For example, to change the buffsize, add either

NASTRAN BUFFSIZE=12929

or

NASTRAN SYSTEM(1)=12929

See the MSC.Nastran Quick Reference Guide, Section 1, for a complete listing and description of the machine-independent system cells.

Page 6: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 66

FILE MANAGEMENT SECTION (FMS)

The FMS is optional and may not be needed for many problems.

Used to initialize or attach existing MSC.Nastran databases and FORTRAN files

The FMS commands works the same for all platforms

Page 7: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 77

FILE MANAGEMENT SECTION (FMS)

Typical applications Initializing the database (name, size, location , etc.) Splitting up a database into several smaller database sets, which allows

large problems to be solved on machines with limited disk space Expand an existing database. Restart Control.

See Section 2 of the MSC.Nastran Quick Reference Guide for detailed description of the FMS

Page 8: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 88

FMS OVERVIEW

Provides user dynamic file allocation Creation/attachment of database files Creation/attachment of FORTRAN files

Provides data manipulation Restarting Initializing and expanding the database Management of data on the database Database directory prints

Provides means of attaching external databases

Page 9: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 99

DBSETS

A DBSET is a collection of files which are used for a purpose by the program

The MSC.Nastran database consists of several DBSETs which are automatically created by the program:

MASTER - Master directory - contains the description of the database, a list of all files contained in all DBSETs used by the run, and a "table of contents" for each DBSETs.

DBALL - Permanent data is stored here by default

Page 10: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1010

DBSETS (cont.)

SCRATCH - Temporary working files for scratch data blocks - automatically deleted at the end of the run

SCR300 - Temporary working files for the modules - automatically deleted at the end of the run

Page 11: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1111

REQUIRED DBSETS

MASTER and DBALL must be retained if the database is to be used in a subsequent restart run. If no restart is planned, they may be deleted upon completion of the run.

For automatic deletion of MASTER and DBALL, use PARAM, DBALL, SCRATCH or submit with scr=yes.

Page 12: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1212

TYPICAL FILES GENERATED Files generated by submitting the input file test.dat :

test.MASTERtest.DBALLtest.f04test.f06test.log

test.pch

test.plttest.op2test.xdb

test.pch (punch file), test.plt (plot file), test.op2 (output2 file), and test.xdb (xdb file) are created by user requests.

Page 13: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1313

TYPICAL FILES GENERATED (Cont.)

If no restarts or database manipulation are planned, the user may specify that the scratch directory be used for MASTER and DBALL, files on the submittal command. They are automatically deleted upon completion of the run.

Example

nastran test scr=yes

Page 14: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1414

RESTARTS

Rigid Format Solutions (SOLs 1 thru 12) These solutions no longer support restarts.

Structured Solutions (SOLs 101,103,etc) Include automatic restart capabilities Minimal user input required for restarts Program detects what has changed in the model and process accordingly.

Page 15: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1515

AUTOMATIC RESTARTS (SOLs 101-200)

Each restart results in a new version on the the database. The previous version being used for restart is deleted at the end of the run unless the user specifies KEEP on the RESTART entry.

The entire Bulk Data is stored on the database. Only changes and additions to the Bulk Data are required in the input file for the restart. The new Bulk Data entries are merged with a copy of the Bulk Data on the database.

All solution-related Case Control commands must be in the restart file.

The program compares the Bulk Data and Case Control for the restart run with that for the previous version that is to be restarted. The program decides what needs to be calculated or recalculated for the current problem.

Page 16: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1616

AUTOMATIC RESTARTS (SOLs 101-200) (Cont.)

Only the necessary operations are performed to solve the problem.

Restarts are invoked using the RESTART statement in the FMS.

Page 17: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1717

RESTART EXAMPLE

Let’s use the stiffened plate model (workshop # 5) for a restart example

Database must be saved in the cold start run e.g. submittal command (assuming filename is soln5.dat)

• nastran soln5 scr=no

Page 18: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1818

PARTIAL COLD START F04 FILE

Page 19: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 1919

PARTIAL COLD START F04 FILE (cont.)

Page 20: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2020

PARTIAL COLD START F06 FILE

Page 21: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2121

RESTART EXAMPLE—METHOD 1

DATA RECOVERY RESTART REQUEST FOR ELEMENT FORCE OUTPUT

Page 22: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2222

RESTART EXAMPLE—METHOD 1 (cont.)

Submittal Command nastran sol5a dbs=soln5

The above submittal command assumes that the cold start filename is soln5.dat and the restart filename is soln5a.dat

Page 23: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2323

RESTART EXAMPLE—METHOD 2

DATA RECOVERY RESTART REQUEST FOR ELEMENT FORCE OUTPUT

Page 24: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2424

RESTART EXAMPLE—METHOD 2 (cont.)

Submittal Command nastran sol5b

The above submittal command assumes that the cold start filename is soln5.dat and the restart filename is soln5b.dat

Note that the attachment of the database is defined inside the file soln5b.dat using the an assign statement

Page 25: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2525

PARTIAL RESTART F04 FILE

Page 26: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2626

PARTIAL RESTART F04 FILE (cont.)

Page 27: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2727

PARTIAL RESTART F06 FILE

Page 28: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2828

RESTART EXAMPLE SUMMARY

The previous restart used the same database as the cold start. Version 1 on the database was deleted because the KEEP option was not

used. If another restart is performed, it defaults to the latest version on the

database which is Version 2.

Only data recovery processing was performed for the restart run in this sample.

USE AUTOMATIC RESTARTS - IT CAN SAVE TIME AND MONEY!

Page 29: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 2929

MANIPULATING THE DATABASE

All FMS defaults can be modified; however, the defaults are adequate for most analyses.

The location and maximum size of the files used for each DBsets may be specified by the user.

The database may be split across multiple physical file located on different disk packs or different machines mounted on a network.

Page 30: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3030

MANIPULATING THE DATABASE (Cont.)

Common FMS statements ASSIGN - Assigns physical file names to DBsets or FORTRAN files to be

used by other FMS statements or DMAP modules. INIT - Creates temporary or permanent DBsets EXPAND - Concatenates additonal DBsets to the existing permenant

DBsets. Used on restarts when the previous run fills the allocated DBsets DBCLEAN - Deletes previous versions from the database DBDIR - Prints the database directory

See Section 2 of the MSC.Nastran Quick Reference Guide for complete description of the FMS statements.

Page 31: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3131

ASSIGN AND INIT STATEMENTS Format (simplified)

ASSIGN dbset_member_name=physical_file_name

INIT dbset_name LOGICAL=(dbset_member_name(p),...)

where p = maximum number of blocks allocated for the member - may be specified as BLOCKS (default), megabytes (mb), megawords (mw), kilobytes (kb), or kilowords (kw) Example:

INIT DBALL, logical=(DB1(1000mb),DB2(1000mb))will create a DBALL, set, consisting of two files, each of which may grow to a maximum size of 1000 megabytes

Block size is machine specific; see The Configuration and Operations Guide for the computer you are using.

Page 32: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3232

ASSIGN AND INIT STATEMENTS (Cont.)

The maximum size of the files used in the permanent DBsets cannot be modified on a restart. Any DBset (for example, DBALL) may be expanded on a restart by adding additional files using an EXPAND entry. You should remove the ASSIGN and INIT statements for existing permanent DBSETS on the restart.

The scratch DBsets may need to be allocated for each run if the default is not adequate.

The INIT statement may be used without the ASSIGN statement to allocate a specific size to the default DBset names.

Page 33: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3333

EXAMPLES - ASSIGN AND INIT

Initializing a scratch file with a maximum size of 1000mb blocks on the SCR2 directory

ASSIGN SCR=’/scr2/test.scratch’INIT SCRATCH,LOGICAL=(SCR(1000mb)) . . .

Initializing the DBALL with 2 DBset each with a maximum size of 500mb and SCRATCH with 3 DBsets each with a maximum size of 2000mb

Page 34: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3434

EXAMPLES - ASSIGN AND INIT (Cont.)

ASSIGN DB1=’/home/mydir/sample.db1’ASSIGN DB2 =’/home/hisdir/sample.db2’ASSIGN SCR1 = ’/scr/sample.scr1’ASSIGN SCR2 =’/scr/sample.scr2’ASSIGN SCR3 =’/scr/sample.scr3’$INIT DBALL,LOGICAL=(DB1(500mb),DB2(500mb))INIT SCRATCH,LOGICAL=(SCR1(2000mb),SCR2(2000mb),

SCR3(2000mb)) . . .

Page 35: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3535

EXAMPLES - ASSIGN AND INIT (Cont.)

Note: Lowercase is shown for UNIX machines. UNIX machines are case sensitive. MSC.Nastran converts all referenced filenames to uppercase unless they are enclosed in single quotes.

Page 36: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3636

EXPAND STATEMENT

Allows the user to add a new files to an existing DBset The ASSIGN statement should be used in conjuction with the

EXPAND statement. Format:

ASSIGN dbset_member_name=phyiscal_file_name

EXPAND dbset_name LOGICAL=(dbset_member_name(p),...)

where p = number of blocks allocated for the member

Page 37: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3737

EXAMPLE - EXPAND STATEMENT

Cold start run

ASSIGN DB1= ’/home/nas101/sample.db1’ASSIGN DB2= ’/home/nas101/sample.db2’ASSIGN SCR= ’/tmp/sample.scr’$INIT DBALL,LOGICAL=(DB1(5000),DB2(5000))INIT SCRATCH,LOGICAL=(SCR(20000))$ . . .

Page 38: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3838

EXAMPLE - EXPAND STATEMENT (Cont.)

Restart run (previous run failed due to full DBALL)

RESTARTASSIGN MASTER=’sample.MASTER’ASSIGN DB3= ’/home/nas101/sample.db3’

ASSIGN SCR= ’/tmp/sample.scr’ $EXPAND DBALL,LOGICAL=(DB3(5000))INIT SCRATCH,LOGICAL=(SCR(20000))$ . . .

Page 39: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 3939

EXAMPLE ASSIGNING A FORTRAN FILE

The following alter write to a formatted ASCII file the global stiffness and mass matrix for a model consisting of a single CBAR element.

Page 40: NAS101, Page 8 - 1 Section 8 File Management Section.

NAS101, Page 8 - NAS101, Page 8 - 4040

EXAMPLE ASSIGNING A FORTRAN FILE (Cont.)