{"id":4868,"date":"2014-04-22T12:00:22","date_gmt":"2014-04-22T01:00:22","guid":{"rendered":"https:\/\/www.computationalfluiddynamics.com.au\/?p=1018"},"modified":"2025-08-07T13:21:40","modified_gmt":"2025-08-07T02:21:40","slug":"tips-tricks-calculating-mean-age-of-air-with-cfd","status":"publish","type":"post","link":"https:\/\/www.leapaust.com.au\/blog\/cfd\/tips-tricks-calculating-mean-age-of-air-with-cfd\/","title":{"rendered":"Tips &#038; Tricks: Calculating the Mean Age of Air for HVAC simulations in Ansys CFD"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"4868\" class=\"elementor elementor-4868\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-556362a7 e-flex e-con-boxed e-con e-parent\" data-id=\"556362a7\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-610fdee elementor-widget elementor-widget-text-editor\" data-id=\"610fdee\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Engineers who are tasked with designing heating, ventilation and air-conditioning (HVAC) systems for buildings will need to assess the indoor air quality to ensure optimum health and comfort for occupants and meet minimum regulatory requirements.\u00a0 Generally a HVAC CFD analysis will take into account variables such as air temperature, relative humidity, air species concentrations and velocity.\u00a0 Additionally, CFD engineers can use Ansys CFD to solve for the local &#8220;mean age of air&#8221; (MAA) to assess the air quality within an indoor environment. By examining MAA across the habitable space within a building, engineers can quantify the air change effectiveness (ACE) of their ventilation system and confirm that\u00a0 their design meets NABERS\/GreenStar regulations.<\/p><p><strong>How can I plot the Mean Age of Air in Ansys CFD-Post?<\/strong><\/p><p>Usually designers are interested in local distributions, therefore it is useful to plot the ACE as the ratio between the nominal time constant and the age of air or its inverse. Within Ansys CFD-Post, it is possible to calculate the ACE at a specified height with a simple expression defined using CEL.<\/p><p>This allows us to quantify the area occupied by air with an age exceeding the mean value across a reference surface (typically located at breathing height, ie. 1m above floor).\u00a0 According to many regulatory standards, the area exceeding the target value must be less than 5%.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b1dfc77 elementor-widget elementor-widget-image\" data-id=\"b1dfc77\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"1233\" height=\"998\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic111.png\" class=\"attachment-full size-full wp-image-6362\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic111.png 1233w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic111-300x243.png 300w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic111-1024x829.png 1024w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic111-768x622.png 768w\" sizes=\"(max-width: 1233px) 100vw, 1233px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-baf64f4 elementor-widget elementor-widget-text-editor\" data-id=\"baf64f4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>The setup for the Normalised Age of Air variable (expressed as Age of Air\/Nominal Time Constant).<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3b23aed elementor-widget elementor-widget-text-editor\" data-id=\"3b23aed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div>Note that when solving using Fluent, a variable called &#8220;Scalar 0&#8221; will be present in the variable list. Its dimensions can be displayed by defining a new expression such as AgeofAir = Scalar 0 [s]\u00a0 and then creating a new variable which by definition is equal to AgeofAir.<\/div><div>\u00a0<\/div><div><strong>Clipping the Age of Air to a specific range of values<\/strong><\/div><div>\u00a0<\/div><div>This is useful to quantify the size of any pockets of air that may exceed our target MAA value (ie. the value prescribed by regulations). In order to visualize the air which is older than this nominal value, we create an iso-clip for a value greater than the target value, applied to a plane located at a specified height above the floor (typically 1 metre).<\/div><div>\u00a0<\/div><div>The result should look similar to the one shown in the image below. The &#8220;holes&#8221; are regions where the MAA values are above or below the threshold specified in your iso-clip setup (in this case, anything below 1200 secs and above 1300 secs).<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2d9ccba elementor-widget elementor-widget-image\" data-id=\"2d9ccba\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"1284\" height=\"939\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic12.png\" class=\"attachment-full size-full wp-image-6363\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic12.png 1284w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic12-300x219.png 300w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic12-1024x749.png 1024w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic12-768x562.png 768w\" sizes=\"(max-width: 1284px) 100vw, 1284px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-efea915 elementor-widget elementor-widget-text-editor\" data-id=\"efea915\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>An iso-clip for the Age of Air Variable.<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e4717e4 elementor-widget elementor-widget-text-editor\" data-id=\"e4717e4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It is then straightforward to create an expression that quantifies the % area of the iso-clip to the full area of the plane.\u00a0 Typically engineers aim to ensure that this does not exceed 5% (according to the ACE 0.95 criteria). In this example the CEL expression would be written as:<\/p><div><p>Ratio = area()@Iso Clip 1\/area()@Plane 3<\/p><\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c28fe73 elementor-widget elementor-widget-image\" data-id=\"c28fe73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"535\" height=\"880\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic13.png\" class=\"attachment-full size-full wp-image-6364\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic13.png 535w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic13-182x300.png 182w\" sizes=\"(max-width: 535px) 100vw, 535px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d34f4b elementor-widget elementor-widget-text-editor\" data-id=\"1d34f4b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>How to clip the Age of Air Variable to the desired values<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd1ddf1 elementor-widget elementor-widget-text-editor\" data-id=\"fd1ddf1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div><dl id=\"attachment_1084\"><dt><strong>How do I calculate mean age of air in my Ansys CFD simulation?<\/strong><\/dt><\/dl><\/div><p>The mean age of air (MAA) is not automatically included as a predefined variable in general purpose CFD software, such as Ansys CFX and Ansys Fluent. It can be defined in the pre-processing stage as an additional variable using the methods outlined below.\u00a0 This section provides some background and further details on how to include the MAA variable in both Ansys CFX and Ansys Fluent.<\/p><p><strong>Some background&#8230;<\/strong><\/p><p>The mean age of air, denoted\u00a0<img decoding=\"async\" src=\"http:\/\/latex.codecogs.com\/gif.latex?T_{mean}\" alt=\"T_{mean}\" align=\"absmiddle\" \/>, is obtained by solving the following advection equation:<\/p><p><img decoding=\"async\" src=\"http:\/\/latex.codecogs.com\/gif.latex?\\frac{DT_{mean}}{Dt}=1\" alt=\"\\frac{DT_{mean}}{Dt}=1\" align=\"absmiddle\" \/><\/p><p>The derivative with respect of time of the source is 1 so that the integral itself is time. When integrated, the age scalar will equal the residence time.<\/p><p>In Ansys CFD solvers, scalar quantities are multiplied by the density <img decoding=\"async\" src=\"http:\/\/latex.codecogs.com\/gif.latex?rho\" alt=\"rho\" align=\"absmiddle\" \/>\u00a0in the transport equations, so that is in this particular case the equation to use is:<\/p><p><img decoding=\"async\" src=\"http:\/\/latex.codecogs.com\/gif.latex?\\frac{D(\\rho&amp;space;T_{mean})}{Dt}=\\rho\" alt=\"\\frac{D(\\rho T_{mean})}{Dt}=\\rho\" align=\"absmiddle\" \/><\/p><p>The term on the right hand side of the equation is known as the source term, and it has to be taken into account when implementing the mean age of air variable in the simulation.<\/p><p>According to the ACE 0.95 criteria for modern building regulations, for instance, the displacement air within the enclosed environment has to provide an air change effectiveness (ACE) higher than 0.95 for at least 95 % of the net lettable area (NLA) when measured in accordance with ASHRAE 129-1997.<\/p><p>Air change effectiveness is defined as the ratio between the nominal time constant and the average of the age of air at a reference height<\/p><p><img decoding=\"async\" src=\"http:\/\/latex.codecogs.com\/gif.latex?E=\\frac{\\tau&amp;space;_{n}}{A_{avg}}&gt;&amp;space;0.95\" alt=\"E=\\frac{\\tau _{n}}{A_{avg}}&gt; 0.95\" align=\"absmiddle\" \/><\/p><p>The nominal time constant is the ratio between the air volume of a space or building divided by the rate of outdoor air supply, which is the incoming volumetric flow rate. Mean residence time<\/p><p><img decoding=\"async\" src=\"http:\/\/latex.codecogs.com\/gif.latex?\\tau&amp;space;_{n}=\\frac{V}{Q}\" alt=\"\\tau _{n}=\\frac{V}{Q}\" align=\"absmiddle\" \/><\/p><p>The reference surface is taken at 1 [m] above the floor to consider the breathing zone of the enclosed space.<\/p><p>ACE gives a measure of the distribution of air at the breathing height and a value close to unity indicates that the air distribution within the zone has reached perfect mixing. According to the GBCA\u2019s Green Star requirements of IEQ-2 version 2, a\u00a0well designed ceiling air diffusion system will\u00a0achieve an ACE of near unity (between 0.8 and 1.2) at design air flow rates. A displacement ventilation system typically achieves an ACE of greater than 1.2.<\/p><p><strong>How to define the variable &#8220;Age of Air&#8221; in Ansys CFX:<\/strong><\/p><p>To calculate the age of air, it is necessary to create a new variable under the <em>Expression, Functions and Variables<\/em> tree in CFX-Pre. In this example the new variable has been named <em>Age of Air<\/em> . It has units of seconds.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-86032fd elementor-widget elementor-widget-image\" data-id=\"86032fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"78\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/small-pic.png\" class=\"attachment-full size-full wp-image-6369\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/small-pic.png 490w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/small-pic-300x48.png 300w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-dd8c70b elementor-widget elementor-widget-text-editor\" data-id=\"dd8c70b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>Adding an additional variable in CFX-Pre<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d22b359 elementor-widget elementor-widget-image\" data-id=\"d22b359\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"239\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic21.png\" class=\"attachment-full size-full wp-image-6370\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic21.png 558w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic21-300x128.png 300w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8955f4d elementor-widget elementor-widget-text-editor\" data-id=\"8955f4d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>the setup for the creation of the Age of Air Variable<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-53fa894 elementor-widget elementor-widget-text-editor\" data-id=\"53fa894\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>CFX solves a transport equation for the newly created variable . This is shown in the <em>Fluid Models<\/em> tab of the default domain, under the <em>Additional Variable Models<\/em>. As the age of air does not diffuse, it is not necessary to define a <em>Kinematic Diffusivity<\/em> for it. Note, that in Ansys CFX, turbulent diffusion is included by default.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a80b153 elementor-widget elementor-widget-image\" data-id=\"a80b153\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"730\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic3.png\" class=\"attachment-full size-full wp-image-6371\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic3.png 564w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic3-232x300.png 232w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2260051 elementor-widget elementor-widget-text-editor\" data-id=\"2260051\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>The setup of the Age of Air Variable in the Fluid Models tab<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d0dc873 elementor-widget elementor-widget-text-editor\" data-id=\"d0dc873\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>As the transport equation is of type &#8216;specific&#8217;, it is necessary to add a source term equal to the fluid density. This is done by creating a sub domain (here named <em>AoA<\/em>), under the <em>Default Domain<\/em> and defining the &#8216;Source&#8217; to be\u00a0<em>density <\/em>as below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3a68212 elementor-widget elementor-widget-image\" data-id=\"3a68212\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"378\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic4.png\" class=\"attachment-full size-full wp-image-6375\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic4.png 492w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic4-300x230.png 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fe3abe5 elementor-widget elementor-widget-text-editor\" data-id=\"fe3abe5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>Once created the sub domain is displayed in the Default Domain tree<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-be37387 elementor-widget elementor-widget-image\" data-id=\"be37387\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"421\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic51.png\" class=\"attachment-full size-full wp-image-6376\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic51.png 540w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic51-300x234.png 300w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7e9ec0e elementor-widget elementor-widget-text-editor\" data-id=\"7e9ec0e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>The setup for the source in the sub domain<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e95dcc elementor-widget elementor-widget-text-editor\" data-id=\"8e95dcc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div>The last step in Ansys CFX \u00a0is to set a value for Age of Air at any boundary conditions where air can enter the domain. In this example, the Age of Air at the diffuser and at the exhaust (for any return flow) has been set to 0 [s]. It is also possible to specify non-zero values if recycled air is used.<\/div><div>\u00a0<\/div><div><strong>How to define the variable &#8220;Age of Air&#8221; in Ansys Fluent<\/strong><\/div><div>\u00a0<\/div><div>In the previous section we&#8217;ve described the method to include an additional variable (in the form of a transport equation) for calculating the age of air in Ansys CFX. Similarly, in Ansys Fluent we can calculate the age of air through use of a user defined scalar (UDS). This involves creates a user defined scalar for the age of air then solving its equation after a solution for the flowfield has been obtained.<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9dadf69 elementor-widget elementor-widget-image\" data-id=\"9dadf69\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"297\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic6.png\" class=\"attachment-full size-full wp-image-6377\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic6.png 399w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic6-300x223.png 300w\" sizes=\"(max-width: 399px) 100vw, 399px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f036845 elementor-widget elementor-widget-text-editor\" data-id=\"f036845\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>Defining a User-Defined Scalar (UDS)<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-689dcfe elementor-widget elementor-widget-text-editor\" data-id=\"689dcfe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The following UDF computes the diffusivity to account for turbulent diffusion (which is not implicitly defined as in CFX) and the source for the mean age of air. This function can be executed as an interpreted or compiled UDF.<\/p><p>#*******************************************************************<br \/>#include &#8220;udf.h&#8221;<br \/>#include &#8220;prop.h&#8221;<br \/>#This define the AoA diffusivity<br \/>DEFINE_DIFFUSIVITY(mean_age_diff, c, t, i)<br \/>{<br \/>return C_MU_EFF(c,t)\/0.7<br \/>}<br \/>#This defines the source<br \/>DEFINE_SOURCE(mean_age_source, c, t, dS, eqn)<br \/>{<br \/>real source;<br \/>source = C_R(c,t);<br \/>dS[eqn]=0;<br \/>return source;<br \/>}<br \/>#********************************************************************<\/p><p>After the UDF is interpreted or compiled, the name specified in the <tt>DEFINE\u00a0<\/tt>macro argument (e.g., mean_age_diff) will become visible and selectable in the Create\/Edit Materials dialog box in Ansys Fluent<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bc5d24f elementor-widget elementor-widget-image\" data-id=\"bc5d24f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"555\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic7.png\" class=\"attachment-full size-full wp-image-6381\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic7.png 849w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic7-300x196.png 300w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic7-768x502.png 768w\" sizes=\"(max-width: 849px) 100vw, 849px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8719291 elementor-widget elementor-widget-text-editor\" data-id=\"8719291\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>Definition of the UDS Diffusivity in the material dialog box<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c66db7f elementor-widget elementor-widget-text-editor\" data-id=\"c66db7f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The next step is to define the scalar in the volume of fluid representing the solution domain, as shown in the Figure below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7494edc elementor-widget elementor-widget-image\" data-id=\"7494edc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1537\" height=\"887\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic8.png\" class=\"attachment-full size-full wp-image-6382\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic8.png 1537w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic8-300x173.png 300w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic8-1024x591.png 1024w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic8-768x443.png 768w\" sizes=\"(max-width: 1537px) 100vw, 1537px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3f2d6a1 elementor-widget elementor-widget-text-editor\" data-id=\"3f2d6a1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>The next step is to define the scalar in the volume of fluid representing the solution domain, as shown in the Figure below.<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2bead05 elementor-widget elementor-widget-text-editor\" data-id=\"2bead05\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Finally it is necessary to set a boundary condition for the scalar at all inlets and outlets. In this example uds-0 scalar values = 0 at the inlet (but, as in CFX, can be set at a non-zero value if desired). The setup for the new variable for mean age of air in Fluent is now complete.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5cc88e3 elementor-widget elementor-widget-image\" data-id=\"5cc88e3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1312\" height=\"765\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic9.png\" class=\"attachment-full size-full wp-image-6383\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic9.png 1312w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic9-300x175.png 300w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic9-1024x597.png 1024w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic9-768x448.png 768w\" sizes=\"(max-width: 1312px) 100vw, 1312px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-71b0e41 elementor-widget elementor-widget-text-editor\" data-id=\"71b0e41\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>Definition of the UDS at the boundaries<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d8a8631 elementor-widget elementor-widget-image\" data-id=\"d8a8631\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"391\" src=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic10.png\" class=\"attachment-large size-large wp-image-6384\" alt=\"\" srcset=\"https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic10.png 557w, https:\/\/www.leapaust.com.au\/blog\/wp-content\/uploads\/2014\/04\/pic10-300x211.png 300w\" sizes=\"(max-width: 557px) 100vw, 557px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-205588d elementor-widget elementor-widget-text-editor\" data-id=\"205588d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>The User Scalar 0 in the Solution Controls panel . By selecting it the solver will calculate a solution only for the UDS.<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2bd5e83a elementor-widget elementor-widget-text-editor\" data-id=\"2bd5e83a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div>This post has aimed to provide an overview of the age of air parameter in CFD, and some tips on how to create and post-process the results for mean age of air in Ansys CFD. CFD simulations of this type are increasingly being performed by building designers and engineers to both meet stringent building codes and help differentiate the sustainability and liveability aspects of their design.\u00a0 To this effect, Ansys CFD provides engineers with a valuable tool to assess the levels of thermal comfort for building occupants, by examining parameters such as the air temperature and radiant heat loads, as well as a tool to ensure adequate air change effectiveness by solving and assessing the mean age of air. For further information or to discuss your own CFD problem within HVAC industry, please leave a comment below.<\/div>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Engineers who are tasked with designing heating, ventilation and air-conditioning (HVAC) systems for buildings will need to assess the indoor air quality to ensure optimum health and comfort for occupants and meet minimum regulatory requirements.\u00a0 Generally a HVAC CFD analysis will take into account variables such as air temperature, relative humidity, air species concentrations and&hellip;&nbsp;<a href=\"https:\/\/www.leapaust.com.au\/blog\/cfd\/tips-tricks-calculating-mean-age-of-air-with-cfd\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Tips &#038; Tricks: Calculating the Mean Age of Air for HVAC simulations in Ansys CFD<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":1019,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","footnotes":""},"categories":[323],"tags":[382,407,440,448],"class_list":["post-4868","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cfd","tag-air-change-effectiveness","tag-design-and-testing","tag-hvac-simulation","tag-mean-age-of-air"],"_links":{"self":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/comments?post=4868"}],"version-history":[{"count":19,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4868\/revisions"}],"predecessor-version":[{"id":6395,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/posts\/4868\/revisions\/6395"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/media\/1019"}],"wp:attachment":[{"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/media?parent=4868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/categories?post=4868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leapaust.com.au\/blog\/wp-json\/wp\/v2\/tags?post=4868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}