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

labelToCell - Read cellIDs from an external file.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 20, 2013, 07:03
Default labelToCell - Read cellIDs from an external file.
  #1
Member
 
Join Date: Aug 2012
Posts: 74
Rep Power: 4
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
Member
 
Join Date: Aug 2012
Posts: 74
Rep Power: 4
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4Foam-groovyBC build problem zxj160 OpenFOAM 18 July 30, 2013 13:14
fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 12 May 2, 2013 10:52
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 35 March 1, 2012 21:41
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46
PHI file structure Eugene Phoenics 9 November 2, 2001 23:00


All times are GMT -4. The time now is 01:33.