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, mnes, 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

輸入檔案位置字串

mnes Object | Array

輸入數據物件或陣列,輸入物件須包含name、nodes、eles,輸入陣列時則各元素為物件(name、nodes、eles)

opt Object <optional>
{}

輸入設定物件,預設{}

Returns:

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

Type
Promise