Skip to content

dsegroup22/pyNastran

 
 

Repository files navigation

Version Download Docs Status
v0.7.2 [Download] (https://github.com/SteveDoyle2/pyNastran/releases) Documentation Status
v0.8.0 PyPi Version Documentation Status Build Status Coverage Status
Master Documentation Status Linux Status Windows Status Coverage Status

v0.8.0

Download GUI

Also, check out the:

for more detailed information.

Overview

pyNastran is an interface library to the various Nastran file formats (BDF, OP2, OP4). Using the BDF interface, you can read/edit/write Nastran geometry without worrying about field formatting. Many checks are also performed to verify that your model is correct. Using the OP2 interface, you can read very large result files very quckly and very efficiently. Additionally, you can also extract a subset of the result data and write F06 result files.

Using the pyNastran GUI, you can read in Nastran models and quickly view results for a model. While it's no FEMAP/Patran, it can replace many tasks that would otherwise require a commercial program.

GUI

News

pyNastran v0.9 progress (12/1/2016)

  • OP2

    • preliminary random results (ATO/CRM/PSD/RMS/NO)
    • improved geometry support
    • MONPNT1/MONPNT3 reading
  • F06 scripts

    • added a preliminary flutter (SOL 145) parser
      • supports multiple subcases
      • PK and PKNL methods supported
      • plot_Vg_Vf(...), plot_Vg(...), plot_root_locus(...)
      • input/output units
      • mode switching not fixed yet
  • BDF

    • 297 cards supported

    • faster node transforms using:

      >>> icd_transform, icp_transform, xyz_cp, nid_cp_cd = get_displacement_index_xyz_cp_cd(dtype='float64, sort_ids=True)
      >>> xyz_cid0 = transform_xyzcp_to_xyz_cid(xyz_cp, icp_transform, cid=0, in_place=False)
    • simplified card adding (card defaults are still a work in progress)

      >>> model.add_grid(nid, xyz=[4.,5.,6.], comment='nid, cp, x, y, z')
  • comments can now be created without worrying about $ signs

    >>> model.add_card(['GRID', 10, None, 4.0, 5.0, 6.0], comment='GRID comment\ngrid,nid,cp,x,y,z')
    $GRID comment
    $grid,nid,cp,x,y,z
    GRID,10,,4.0,5.0,6.0
    
    • unit conversion
  • GUI

    • buttons for picking, rotation center
    • PyQt5 support
    • QScintilla & pygments support for scripting code editor
  • Matlab integration

    • pyNastran works with Matlab 2014a+

pyNastran v0.8.0 has been released (8/21/2016)

The following are some new features from the v0.8 release.

  • BDF
    • unicode support
    • 278 cards supported
    • simplifed method to add cards : grid = GRID(nid, cp, xyz, cd, ps, seid, comment)
    • verify=False in read_bdf(...) will disable checks to allow reading in bad decks
    • lots of optimization work
    • bdf equivalence, renumber, deck merging
    • element quality
  • OP2
    • ~500x faster than v0.7.2
      • non-vectorized OP2 option has been removed
    • matrix support
    • improved SOL 200 support
    • transform displacement/eigenvectors/spc/mpc/applied loads to global coordinate system
    • transform stresses/forces to material coordinate system
    • geometry can be read directly from op2 (not perfect, but when it works, it's much faster)
    • Pandas DataFrame support for use in the Jupyter/iPython Notebook
  • GUI
    • additional results
      • multiple OP2s
      • deflection plots
      • area, max interior angle, skew angle, aspect ratio, taper ratio results
    • SOL 200 support
    • improved legend
    • custom user (nodal/centroidal) results
    • aero models now support sideslip coordinate systems
  • OP4
  • fixed sparse ASCII BIGMAT bug

pyNastran v0.7.2 has been Released (4/25/2015)

Highlights:

  • OP2
    • superelement support
    • vectorized support (uses much less memory; Element Forces not vectorized yet)
      • this is the standard in v0.8
    • additional results (e.g. grid point weight, eigenvalues)
    • PARAM,POST,-2 support
    • catching of most FATAL errors without needing to read the F06
  • F06
    • removed
  • BDF
    • 238 BDF cards
    • large field format and double precision writing
  • GUI
    • much improved GUI with transient support (real only), a results sidebar, logging, and scripting support
  • Other
    • additional readers/converters to/from various other formats (e.g. STL, Cart3d, Panair) as well as GUI support
    • autogenerated online documentation for pyNastran using readthedocs and Sphinx

Most op2 object were changed in order to eliminate errors, and be more consistent. For example, plateStress has been replaced by ctria3_stress, cquad4_stress, ctria6_stress, etc. Also, plate centroids now have a node_id of 0. This greatly simplifies F06 writing and vectorized data extraction.

Version 0.6.1 has been released (6/2013)

Version 0.6 improves BDF reading. The reader is more robust and also requires proper BDF field formatting (e.g. a integer field can't be a float). Additionally, cards also have a comment() method.

Marcin Gąsiorek participated in the latest pyNastran under the European Space Agency's (ESA) "Summer of Code In Space" SOCIS program. The program provides a stipend to students to work on open-source projects. He did a great job of simplifying code and creating nicer documentation.

About

A Python-based interface tool for Nastran's file formats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.0%
  • Assembly 6.4%
  • TeX 0.4%
  • C++ 0.2%
  • Perl 0.0%
  • MATLAB 0.0%