CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

labelToCell - Read cellIDs from an external file.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2013, 07:03
Default labelToCell - Read cellIDs from an external file.
  #1
Senior Member
 
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13
HakikiCanakkaleli is on a distinguished road
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);
        }
        }
Whilst the "value"s are the "cellID"s.

== 2 ==
I have an external txt file (say "output.txt") in which purely the numbers were written:

Code:
100
101
102
103
== 3 ==
The question is whether these numbers can be read by "value (* * * *)" in the topoSetDict.

I appreciate any help.

Many thanks in advance.
HakikiCanakkaleli is offline   Reply With Quote

Old   July 20, 2013, 07:08
Default
  #2
Senior Member
 
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 13
HakikiCanakkaleli is on a distinguished road
For example:

== 4 ==
When I write
Code:
value  ("output.txt");
The following error pops up:

Code:
--> FOAM FATAL IO ERROR: 
wrong token type - expected int, found on line 30 the word 'output.txt'
HakikiCanakkaleli is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
[swak4Foam] swak4Foam-groovyBC build problem zxj160 OpenFOAM Community Contributions 18 July 30, 2013 13:14
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46
PHI file structure Eugene Phoenics 9 November 2, 2001 22:00


All times are GMT -4. The time now is 18:24.