How to count the number of cells of some selected domains?
It's seems pointwise only provide total cell count...but what if I want to know the cell number of some specific domains ?
|
Hello,
You can accomplish this easily using a Glyph script. To get the cell count of an initialized structured or unstructured domain, use the following code: Code:
package require PWI_Glyph Travis |
This information is also available (and sortable) in the List panel. Click the arrow beside Domains. There are columns for the number of points (nodes) and cells for each domain. Clicking the column header will sort by that field; useful for finding very small domains.
If you want a cumulative count of several domains though, scripting is the way to go as Travis pointed out. |
Hi,
sorry bui I'd want to know the total amount of cells instead, while using your script it shows a list of the selected domains with the related number of cells, without computing the sum. Could you help me ? Thanks Victor PS I'm fairly new at pw. |
use the Grid / Cell count... menu
or if you want the total cell count for the selected domains, you can change the script to: Code:
package require PWI_Glyph Code:
Script: Cell counts: |
Thank you for the quick and exhaustive response.
Regards Victor |
All times are GMT -4. The time now is 16:06. |