Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General

General

How to calculate a fraction of surface area where a variable is less than a percentage of average variable?

    • FAQFAQ
      Participant

      The area fraction on a surface where a variable is less than a certain percentage of the average variable can be calculated with the following expressions. A report definition can then be created based on the uniformity expression to monitor the value during the run.
      threshold = 0.1
      avg = Average(StaticTemperature,[‘outlet’],Weight =’Area’)
      areaoutlet = Area([‘outlet’])
      uniformity = Sum(IF(abs(StaticTemperature-avg)/avg