Has anyone created a script to count the number of elements (from a selected group) that have filled and that have not filled? If so would you be wiling to share it?
I have a model that I've got multiple areas that are expected to short. I am running multiple studies with different variations and want to easily tell which study is doing the best/worst job at filling or not filling. I think that a count of elements that have filled/no filled would be an easy way to intererate the results.
Solved! Go to Solution.
unfortunatly I have no such script available.
Assume this is for Midplane and/or Dual Domain mesh type, right?
For 3D mesh type, if a short shot, there is an "Unfilled cavity" result plot.
The short shot areas are displayed in dark blue, and other areas are translucent.
Let us see if someone in the community has created such a script.
You are correct, it is a midplane model. There are some areas that I've made really thin, expecting them to short. So I'd like to try and quantify the results to get a better feel for the effect of the different versions that I'm running.
Even with the 3d Unfilled Cavity result, is there a way to get a count of those elements? Or is it just visual?
the 3D unfilled cavity is a nodal result. Then displayed on elements in UI.
An unfilled node will get value 1. So basically from result find the nodes with a value 1 (or rather > 0), or how long the result array is, meaning how many nodes has a result of unfilled cavity.
Get a number of nodes unfilled, using same study with no changes in number of nodes should be ok.
An idea here for Midplane, and other mesh types as well, is to select nodes belonging to cavity, look up how many nodes has a fill time result (=> 0), and use the difference as "unfilled" and short shot.
Will have a look at this in more detail.
Brilliant! Below is the message from Berndt:
I have created a macro that find min and max value of fill time, and number of
nodes with result, and compare with entities selected.
Entities selected = must be cavity nodes for right result
The macro does not check that only nodes are selected, this to make it faster.
(Can be done though, but still has to be cavity entities selected.)
Put cavity nodes on a separate layer, or save to selection list, for easy
selection when using this macro.
Put the attached file in folder such as:
C:\My AMI 2015 Projects\commands
C:\Documents and Settings\user_id\My Documents\My ASMI 2015 Projects\commands
Rename nodes_filled.rename_to_vbs to nodes_filled.vbs
To run command:
In Synergy Ribbon UI:
View > User Interface > Commands
In command line type:
Let me know if this macro helps.
just to remind:
You should do a graphics selection of all nodes that should have a Fill Time result (so not only cavity nodes...).
The script needs to know how many nodes to be filled, and subtract number of nodes actually filled.
(If a negative number, it is 0.)
It should do the job for Midplane / Dual Domain / 3D mesh type.