We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
General

General

How to calculate the area fraction on a surface where a variable is less than a certain percentage of the average variable and use this expression as a monitor.

    • 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 steps. This can then be used in a monitor points to monitor the value during the run. 1. Create an additional variable with Type = Specific, Units = [], Tensor Type = Scalar, and Boundary Only Field = true. 2. Create an expression for the percentage difference threshold. threshold=0.1 3. Create an expression for the variable average at the surface. avg=areaAve(T)@out. Temperature, T, is used in this example. 4. In the Domain settings, in the Fluid Models tab, set the Algebraic Equation for the additional variable to: if(abs(T-avg)/avg