w-mesh-tecplot

1.0.2 • Public • Published

w-mesh-tecplot

A tool for Tecplot data.

language npm version license gzip file size npm download npm download jsdelivr download

Documentation

To view documentation or get support, visit docs.

Installation

Using npm(ES6 module):

Note: w-mesh-tecplot is mainly dependent on lodash-es and wsemi.

npm i w-mesh-tecplot

Example for read:

Link: [dev source code]

尚待開發

Example for write:

Link: [dev source code]

import fs from 'fs'
import wmt from './src/WMeshTecplot.mjs'


let fpIn = './_mesh/mesh.json'
let fpOut = './_mesh/cv2tecplot.dat'
let name = 'cv2tecplot'

console.log('reading...')
let j = fs.readFileSync(fpIn, 'utf8')
let m = JSON.parse(j)
// console.log('m', m)

console.log('writing...')
wmt.writeTecplot(name, m.nodes, m.eles, fpOut)
    .then((r) => {
        console.log('finish.')
    })
    .catch((err) => {
        console.log(err)
    })

Package Sidebar

Install

npm i w-mesh-tecplot

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.26 MB

Total Files

54

Last publish

Collaborators

  • semisphere