f06 Package

This is the pyNastran.f06.rst file.

f06 Module

Inheritance diagram of pyNastran.f06.f06

class pyNastran.f06.f06.F06(debug=False, log=None)[source]

Bases: pyNastran.f06.tables.oes.OES, pyNastran.f06.tables.oef.OEF, pyNastran.f06.tables.oug.OUG, pyNastran.f06.tables.oqg.OQG, pyNastran.f06.tables.lama.LAMA, pyNastran.f06.tables.max_min.MAX_MIN, pyNastran.f06.f06Writer.F06Writer

Initializes the F06 object

Parameters:
  • makeGeom – reads the BDF tables (default=False)
  • debug – prints data about how the F06 was parsed (default=False)
  • log – a logging object to write debug messages to

See also

import logging

Title = None

the TITLE in the Case Control Deck

_case_control_echo()[source]
_element_strain_energies()[source]
EIGENVALUE = -3.741384E-04
CYCLES =  3.078479E-03
                                   E L E M E N T   S T R A I N   E N E R G I E S

        ELEMENT-TYPE = QUAD4               * TOTAL ENERGY OF ALL ELEMENTS IN PROBLEM     =  -1.188367E-05
           MODE               1            * TOTAL ENERGY OF ALL ELEMENTS IN SET      -1 =  -1.188367E-05

                            ELEMENT-ID          STRAIN-ENERGY           PERCENT OF TOTAL    STRAIN-ENERGY-DENSITY
                                     1         -5.410134E-08                -0.0929             -4.328107E-05
                                     2         -3.301516E-09                -0.0057             -2.641213E-06
_executive_control_echo()[source]
_get_grid_point_singularities()[source]
            G R I D   P O I N T   S I N G U L A R I T Y   T A B L E
POINT    TYPE   FAILED      STIFFNESS       OLD USET           NEW USET
 ID            DIRECTION      RATIO     EXCLUSIVE  UNION   EXCLUSIVE  UNION
  1        G      4         0.00E+00          B        F         SB       S    *
  1        G      5         0.00E+00          B        F         SB       S    *
_grid_point_force_balance()[source]
_grid_point_singularity_table()[source]
_grid_point_weight_generator()[source]
_is_marker(marker)[source]

returns True if the word follows the ‘N A S T R A N P A T T E R N’

_nastran_file_and_system_parameter_echo()[source]
_parse_line_blanks(sline, formats)[source]

allows blanks

_process_f06()[source]
_read_f06_subcase_header(n=-2)[source]

-4 -> 1 JANUARY 5, 2014 MSC.NASTRAN 11/25/11 PAGE 14 -3 -> DEFAULT -2 -> xxx subcase 1

_read_f06_table(Format, debug=False)[source]

Reads displacement, spc/mpc forces

Parameters:
  • self – the object pointer
  • Format – list of types [int,str,float,float,float] that maps to sline

See also

self.parseLine

_read_table_dummy()[source]
_set_f06_date(month, day, year)[source]
_start_log(log=None, debug=False)[source]

Sets up a dummy logger if one is not provided

Self:the object pointer
Log:a python logging object
Debug:adds debug messages (True/False)
build_vectorization()[source]
fatal_check(line)[source]
parseLine(sline, formats)[source]
Parameters:
  • self – the object pointer
  • sline – list of strings (split line)
  • formats – list of types [int,str,float,float,float] that maps to sline
read_f06(f06_filename=None, vectorized=False)[source]

Reads the F06 file

Self:the object pointer
F06FileName:the file to be parsed (None -> GUI)
skip(iskip)[source]
stop_after_reading_grid_point_weight(stop=True)[source]
pyNastran.f06.f06._parse_label_isubcase(label_isubcase)[source]

f06Writer Module

Inheritance diagram of pyNastran.f06.f06Writer

class pyNastran.f06.f06Writer.F06Writer[source]

Bases: pyNastran.op2.op2_f06_common.OP2_F06_Common

_clear_results()[source]
add_results(results)[source]
get_all_results()[source]
make_f06_header()[source]

If this class is inherited, the F06 Header may be overwritten

make_grid_point_singularity_table(failed)[source]
make_stamp(Title, today)[source]

If this class is inherited, the PAGE stamp may be overwritten

remove_results(results)[source]
set_results(results)[source]
write_f06(f06_outname, is_mag_phase=False, delete_objects=True, end_flag=False)[source]

Writes an F06 file based on the data we have stored in the object

Parameters:
  • self – the F06 object
  • f06_outname – the name of the F06 file to write
  • is_mag_phase – should complex data be written using Magnitude/Phase instead of Real/Imaginary (default=False; Real/Imag) Real objects don’t use this parameter.
  • delete_objects – should objects be deleted after they’re written to reduce memory (default=True)
  • end_flag – should a dummy Nastran “END” table be made (default=False)
write_summary(f06, card_count=None)[source]
pyNastran.f06.f06Writer.make_end(end_flag=False)[source]
pyNastran.f06.f06Writer.make_f06_header()[source]
pyNastran.f06.f06Writer.make_stamp(Title, today=None)[source]
pyNastran.f06.f06Writer.sorted_bulk_data_header()[source]

f06_classes Module

Inheritance diagram of pyNastran.f06.f06_classes

class pyNastran.f06.f06_classes.MaxDisplacement(data)[source]

Bases: object

write_f06(page_stamp='%i', pageNum=1)[source]

f06_formatting Module

pyNastran.f06.f06_formatting._eigenvalue_header(obj, header, itime, ntimes, dt)[source]
pyNastran.f06.f06_formatting.get_key0(adict)[source]

Gets the “first” key in a dictionary

The entry is kind of irrelevant.

pyNastran.f06.f06_formatting.get_key0_compare(adict)[source]

Gets the “first” key in a dictionary

The entry is kind of irrelevant.

pyNastran.f06.f06_formatting.writeFloats10E(vals)[source]
pyNastran.f06.f06_formatting.writeFloats12E(vals)[source]
pyNastran.f06.f06_formatting.writeFloats13E(vals)[source]
pyNastran.f06.f06_formatting.writeFloats8p4F(vals)[source]
pyNastran.f06.f06_formatting.writeImagFloats13E(vals, isMagPhase)[source]