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
|
Returns:
回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息
- Type
- Promise