How to use a PERL script to write out the percentage of bad elements (below the limit value, "% Bad") of a give mesh quality metrics in ANSYS TurboGrid batch mode.
The mesh statistics are stored in a CCL object which you can access through perl script using the instructions provided below: The way to do this in a PERL script envirnoment is to implement a PERL command in the session file of TurboGrid as: ! $percentBad = getValue("/MESH ANALYSIS/MESH STATISTICS/MESH ANALYSIS MEASURE:[statistic]", "Fraction Outside Limit"); where [statistic] is one of: Connectivity Number Edge Length Ratio Element Volume Ratio Maximum Face Angle Minimum Face Angle Minimum Volume "Fraction Outside Limit" could be replaced by: "Min Result" - minimum value for statistic "Max Result" - maximum result for statistic "Number of Nodes" - absolute number of nodes that have measure outside the limits (same as "Fraction Outside Limit" * # of nodes in the mesh These values can also be determined for specific domains by appending "/MESH ANALYSIS DOMAIN:" and one of Passage, In or Out after [statistic]. |
||
|