|
[Sponsors] |
labelToCell - Read cellIDs from an external file. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2013, 08:03 |
labelToCell - Read cellIDs from an external file.
|
#1 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
Hi
== 1 == I would like to kindly ask whether reading a list of numbers from an external file with topoSet - labelToCell is possible or not. == 2 == I have "topoSetDict" under "system" directory: Code:
actions ( { name topoSetCellIDs; type cellSet; action new; source labelToCell; sourceInfo { value (100 101 102 103); } } == 2 == I have an external txt file (say "output.txt") in which purely the numbers were written: Code:
100 101 102 103 The question is whether these numbers can be read by "value (* * * *)" in the topoSetDict. I appreciate any help. Many thanks in advance. |
|
July 20, 2013, 08:08 |
|
#2 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
For example:
== 4 == When I write Code:
value ("output.txt"); Code:
--> FOAM FATAL IO ERROR: wrong token type - expected int, found on line 30 the word 'output.txt' |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 15:22 |
[swak4Foam] swak4Foam-groovyBC build problem | zxj160 | OpenFOAM Community Contributions | 18 | July 30, 2013 14:14 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 23:00 |