|
[Sponsors] |
How to get sum of cell numbers of the selected domains using Glyph Script ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 8, 2015, 03:26 |
How to get sum of cell numbers of the selected domains using Glyph Script ?
|
#1 |
New Member
XieQing
Join Date: Mar 2013
Location: Capital of Qin Dynasty
Posts: 22
Rep Power: 13 |
I know how to count cells of ONE domain using Glyph script
See : http://www.cfd-online.com/Forums/poi...d-domains.html But, how to return the total cell number of many selected domains ? |
|
December 16, 2015, 16:55 |
|
#2 | |
Senior Member
Zach Davis
Join Date: Jan 2010
Location: Los Angeles, CA
Posts: 101
Rep Power: 16 |
Quote:
Code:
set myDomainList "$dom1 $dom2 $dom3" set totalCells 0 foreach dom $myDomainList { incr totalCells [$dom getCellCount] } puts "The total cells of my domains is $totalCells" Last edited by RcktMan77; December 17, 2015 at 12:05. Reason: Bug in myDomainList declaration |
||
Tags |
cell number, get sum, glyph script |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
Cell Numbers | furkan | Siemens | 3 | November 24, 2005 04:06 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |
What is the difference between the cell numbers ? | Lee | Siemens | 3 | September 28, 2003 08:28 |