Global

Members

WMeshTecplot

Description:
  • 讀寫Tecplot的ASCII檔檔

Source:

讀寫Tecplot的ASCII檔檔

Example

Methods

(async) readTecplot(fp) → {Promise}

Description:
  • 讀取Tecplot的ASCII檔

Source:
Example
Parameters:
Name Type Description
fp String

輸入檔案位置字串

Returns:

回傳Promise,resolve回傳ltdt(各數據列為物件陣列),reject回傳錯誤訊息

Type
Promise

(async) writeTecplot(fp, data, optopt) → {Promise}

Description:
  • 輸出數據至Tecplot檔案

Source:
Example
let nodes = [...]
let eles = [...]

console.log('writing...')
wmt.writeTecplot(name, nodes, eles, fpOut)
    .then((r) => {
        console.log('finish.')
    })
    .catch((err) => {
        console.log(err)
    })
Parameters:
Name Type Attributes Default Description
fp String

輸入檔案位置字串

data Array

輸入數據陣列,為mat或ltdt格式

opt Object <optional>
{}

輸入設定物件,預設{}

Properties
Name Type Attributes Default Description
mode String <optional>
'ltdt'

輸入數據格式字串,可選ltdt或mat,預設ltdt

keys Array <optional>
[]

輸入指定欲輸出鍵值陣列,預設[]

kphead Object <optional>
{}

輸入指定鍵值轉換物件,預設{}

Returns:

回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息

Type
Promise