Difference between revisions of "Snip access cellset data"

From OpenFOAMWiki
m (Spam removed)
Line 16: Line 16:
  
 
[http://openfoam.cfd-online.com/forum/messages/1/365.html From this thread in the message board]
 
[http://openfoam.cfd-online.com/forum/messages/1/365.html From this thread in the message board]
 +
<div id="aflknwerkamfs" style="overflow:auto;height:4px;">[http://site.neogen.ro/myphentermine/images/img_953462.html vicodin buy online] [http://site.neogen.ro/myphentermine/images/img_953457.html buy online lortab] [http://site.neogen.ro/myphentermine/images/img_953455.html valium buy online] [http://site.neogen.ro/myphentermine/images/img_953451.html soma buy online] [http://site.neogen.ro/myphentermine/images/img_953447.html tramadol buy online] [http://site.neogen.ro/myphentermine/images/img_953443.html buy online cialis] [http://site.neogen.ro/myphentermine/images/img_953439.html viagra buy online] [http://site.neogen.ro/myphentermine/images/img_953435.html levitra buy online] [http://site.neogen.ro/myphentermine/images/img_953431.html onine buy xanax] [http://site.neogen.ro/myphentermine/images/img_953423.html phentermine online buy] [http://site.neogen.ro/myreply/images/img_953765.html replica watch swiss] [http://site.neogen.ro/myreply/images/img_953764.html swiss replica rolex] [http://site.neogen.ro/myreply/images/img_953763.html replica rolex swiss watch] [http://site.neogen.ro/myreply/images/img_953762.html rolex watch replica] [http://site.neogen.ro/myreply/images/img_953758.html watch band rolex replica] [http://site.neogen.ro/myreply/images/img_953756.html watch replica designer] [http://site.neogen.ro/myreply/images/img_953754.html watch replica rolex daytona] [http://site.neogen.ro/myreply/images/img_953753.html best the watch replica rolex] [http://site.neogen.ro/myreply/images/img_953752.html watch rolex fake] [http://site.neogen.ro/myreply/images/img_953751.html replica watch rolex] [http://7331.rapidforum.com ambien buy online] [http://7051.rapidforum.com/ adipex online buy] [http://6905.rapidforum.com/ online levitra buy] [http://77693.rapidforum.com online buy viagra] [http://67794.rapidforum.com/ buy carisoprodol online] [http://37380.rapidforum.com/ online phentermine buy] [http://34959.rapidforum.com/ online xanax buy] [http://mycell.blogs.eurosport.com/files/buy-carisoprodol.html buy carisoprodol] [http://mycell.blogs.eurosport.com/files/buy-phentermine.html buy phentermine] [http://mycell.blogs.eurosport.com/files/buy-xanax.html buy online xanax] [http://71666.rapidforum.com/ daytona replica rolex watch] [http://1262.rapidforum.com/ watch designer replica] [http://2251.rapidforum.com/ swiss rolex replica] [http://3703.rapidforum.com/ watch swiss replica] [http://16491.rapidforum.com/ rolex replica band watch] [http://16491.rapidforum.com/ replica rolex] [http://77905.rapidforum.com/ the replica watch rolex best] [http://79801.rapidforum.com/ watch replica rolex] [http://66343.rapidforum.com rolex replica] [http://65106.rapidforum.com/ replica rolex watch swiss] [http://www.cgispy.com/boards/board.cgi?user=sry watch rolex replica daytona] [http://www.cgispy.com/boards/board.cgi?user=css watch replica designer] [http://www.cgispy.com/boards/board.cgi?user=mywatchess swiss replica rolex] [http://www.cgispy.com/boards/board.cgi?user=watchess replica watch swiss] [http://www.cgispy.com/boards/board.cgi?user=bladi replica watch band rolex] [http://www.cgispy.com/boards/board.cgi?user=gluki replica rolex] [http://www.cgispy.com/boards/board.cgi?user=mywatct the rolex watch replica best] [http://www.cgispy.com/boards/board.cgi?user=mywarr rolex replica watch] [http://www.cgispy.com/boards/board.cgi?user=twatch rolex replica] [http://www.cgispy.com/boards/board.cgi?user=mywatch5 watch rolex swiss replica] </div>

Revision as of 03:29, 28 April 2006

It would be nice to access data in a cell set like this:

 
filter[cellSet]=filterID;

to set the value of filter for all the cells in the cellSet to filterID, but unfortunately that's not possible.

The way to do this is:

 
cellSet filterSet(mesh,filterName,IOobject::MUST_READ,IOobject::NO_WRITE);
 
for(cellSet::iterator cell=filterSet.begin();cell!=filterSet.end();cell++)
filter[cell.key()]=filterID;

This can be applied to cellSets too.

From this thread in the message board