1.0.2 • Published 1 month ago

w-mesh-tecplot v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

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) })

1.0.2

1 month ago

1.0.1

2 months ago

1.0.0

5 months ago