npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

f06parser

v1.1.6

Published

A module for parsering Nastran .f06 result data file

Downloads

5

Readme

f06parser

Parsering .f06 data files of Nastran software.

Main Methods

  • open( filePath )
  • setPath( filePath )
  • close()
  • get( typeName, elementID )
  • findPage( reg )

Installation

f06parser requires Node.js v4+ to run.

$ npm install f06parser

Example

var Parser = require("f06parser");

var myParser = new Parser();

//  Open f06 file 
myParser.open("./section.f06");

var dataType = "ElementProperty";
var elementID = 20054936;
var result = myParser.get( dataType, elementID );
console.log(JSON.stringify(result, null, " "));
myParser.close(); 

Results:

open(): new path
Mon Jan 00 2000  
Parsing result file: ./section.f06.
{
 "ID": "  20054936",
 "propID": " 5120412",
 "mtlID": "        13",
 "thickness": "  8.0000E-01 ",
 "area": " 4.8043E+01",
 "volum": "  3.8434E+01",
 "strctMass": "  3.0363E-07",
 "non_strMass": "  0.0000E+00",
 "totalMass": "    3.0363E-07"
}
f06Parser:  ./section.f06   closed.

Description of f06.json

The f06 files store the result data of FEM analysis proceed by Nastran. The data are organized into pages. Each of the pages contains a page title line, data entry title lines, data lines and a page end line. Various analysis result items have similar formate, thus we can parser the result data with uniform process.

The items of f06.json include the formate of the data page of .f06 file.
For example, the Displacement item, as shown in following, describes the formate of displacement vector page:

	"Displacement": {
		"PageStartTitle": "D I S P L A C E M E N T   V E C T O R",
		"PageEndTitle":"   PAGE  ", 
		"TitleLineNumber": 2,
		"DtatLineCount": 1,
		"DataLineFormat":{
			"ID": { "Start": 0, "End":14},
			"TYPE": { "Start": 15, "End":24},
			"T1": { "Start": 25, "End":39},
			"T2": { "Start": 40, "End":54}, 
			"T3": { "Start": 55, "End":69}, 
			"R1": { "Start": 70, "End":84}, 
			"R2": { "Start": 85, "End":99}, 
			"R3": { "Start": 100, "End":114}
		}
	}

Its title line contains "D I S P L A C E M E N T V E C T O R". We can found the string," PAGE ", at the end line of the page. The data entry title section takes two lines. Each piece of displacement vector uses only one line. The formate of the data line is presented as above, for example, the ID of the displacement is stored in the first 14 sapces.