w-mesh-tecplot
v1.0.4
Published
A tool for Tecplot data.
Downloads
7
Readme
w-mesh-tecplot
A tool for Tecplot data.
Documentation
To view documentation or get support, visit docs.
Installation
Using npm(ES6 module):
Note: w-mesh-tecplot is mainly dependent on
lodash-es
andwsemi
.
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)
})