wed
DESCRIPTION
WEVHJTRANSCRIPT
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 1/7
UA336027821
About Us Industry Focus Technical Benefits Business Benefits Tips & Tricks Contact Us
PostedByLEAPCFDTeamonApr22,2014|1commentEngineerswhoaretaskedwithdesigningheating,ventilationandairconditioning(HVAC)systemsforbuildingswillneedtoassesstheindoorairqualityto
ensureoptimumhealthandcomfortforoccupantsandmeetminimumregulatoryrequirements.GenerallyaHVACCFDanalysiswilltakeintoaccount
variablessuchasairtemperature,relativehumidity,airspeciesconcentrationsandvelocity.Additionally,CFDengineerscanuseANSYSCFDtosolvefor
thelocal"meanageofair"(MAA)toassesstheairqualitywithinanindoorenvironment.ByexaminingMAAacrossthehabitablespacewithinabuilding,
engineerscanquantifytheairchangeeffectiveness(ACE)oftheirventilationsystemandconfirmthattheirdesignmeetsNABERS/GreenStarregulations.
HowcanIplottheMeanAgeofAirinANSYSCFDPost?
Usuallydesignersareinterestedinlocaldistributions,thereforeitisusefultoplottheACEastheratiobetweenthenominaltimeconstantandtheageofair
oritsinverse.WithinANSYSCFDPost,itispossibletocalculatetheACEataspecifiedheightwithasimpleexpressiondefinedusingCEL.
Thisallowsustoquantifytheareaoccupiedbyairwithanageexceedingthemeanvalueacrossareferencesurface(typicallylocatedatbreathingheight,
ie.1mabovefloor).Accordingtomanyregulatorystandards,theareaexceedingthetargetvaluemustbelessthan5%.
ThesetupfortheNormalisedAgeofAirvariable(expressedasAgeofAir/NominalTimeConstant).
NotethatwhensolvingusingFLUENT,avariablecalled"Scalar0"willbepresentinthevariablelist.ItsdimensionscanbedisplayedbydefininganewexpressionsuchasAgeofAir=Scalar0[s]andthencreatinganewvariablewhichbydefinitionisequaltoAgeofAir.
ClippingtheAgeofAirtoaspecificrangeofvalues
ThisisusefultoquantifythesizeofanypocketsofairthatmayexceedourtargetMAAvalue(ie.thevalueprescribedbyregulations).Inordertovisualize
Home Featured Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinANSYSCFDSearchfor:
Search
SubscribetoBlogviaEmail
emailaddress
Subscribe
LeadingEngineeringApplicationProviders
Australia:1300882240NewZealand:099777444
VisitLEAPWebsiteformoreinformationon
CFD,FEA,CAD,CAMandrelatedsoftware
products,plusourtrainingandwebinar
schedule.
Follow
Recent Popular
Excitingadvances inWindEngineeringusing ANSYSCFDApr14,2015
Using CFD topredict flowgenerated noiseand other
Tips & Tricks: Calculating the Mean Age of Air for HVAC simulations in ANSYS CFD
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 2/7
theairwhichisolderthanthisnominalvalue,wecreateanisoclipforavaluegreaterthanthetargetvalue,appliedtoaplanelocatedataspecifiedheight
abovethefloor(typically1metre).
Theresultshouldlooksimilartotheoneshownintheimagebelow.The"holes"areregionswheretheMAAvaluesareaboveorbelowthethreshold
specifiedinyourisoclipsetup(inthiscase,anythingbelow1200secsandabove1300secs).
AnisoclipfortheAgeofAirVariable.
Itisthenstraightforwardtocreateanexpressionthatquantifiesthe%areaoftheisocliptothefullareaoftheplane.Typicallyengineersaimtoensurethat
thisdoesnotexceed5%(accordingtotheACE0.95criteria).InthisexampletheCELexpressionwouldbewrittenas:
Ratio=area()@IsoClip1/area()@Plane3
HowtocliptheAgeofAirVariabletothedesiredvalues
HowdoIcalculatemeanageofairinmyANSYSCFDsimulation?
Themeanageofair(MAA)isnotautomaticallyincludedasapredefinedvariableingeneralpurposeCFDsoftware,suchasANSYSCFXandANSYS
Fluent.Itcanbedefinedinthepreprocessingstageasanadditionalvariableusingthemethodsoutlinedbelow.Thissectionprovidessomebackground
andfurtherdetailsonhowtoincludetheMAAvariableinbothANSYSCFXandANSYSFluent.
Somebackground...
Themeanageofair,denoted ,isobtainedbysolvingthefollowingadvectionequation:
Thederivativewithrespectoftimeofthesourceis1sothattheintegralitselfistime.Whenintegrated,theagescalarwillequaltheresidencetime.
InANSYSCFDsolvers,scalarquantitiesaremultipliedbythedensity inthetransportequations,sothatisinthisparticularcasetheequationtouse
is:
Thetermontherighthandsideoftheequationisknownasthesourceterm,andithastobetakenintoaccountwhenimplementingthemeanageofair
variableinthesimulation.
AccordingtotheACE0.95criteriaformodernbuildingregulations,forinstance,thedisplacementairwithintheenclosedenvironmenthastoprovideanair
changeeffectiveness(ACE)higherthan0.95foratleast95%ofthenetlettablearea(NLA)whenmeasuredinaccordancewithASHRAE1291997.
aeroacousticeffectsNov6,2014
Smart gasappliancemanufacturersuse rising gascosts to theircompetitiveadvantageOct29,2014
RecentComments
ChrisBennetton
WindEngineeringusingANSYSCFD
OmaronTips&Tricks:Estimatingthe
FirstCellHeightforcorrectY+
HARIHARANon
EstimatingtheFirstCellHeightfor
correctY+
metinonTips&Tricks:Estimatingthe
FirstCellHeightforcorrectY+
HARIHARANon
EstimatingtheFirstCellHeightfor
correctY+
2012CSIROCFDConferenceacousticsaerodynamicsaerospaceanddefence
ANSYSANSYSCFDANSYSMeshingAustralianInternationalAirshowDesignCFDmethodsCFDmodellingofturbulentflowssimulationaccuracycombustioncommonmisconceptionsconsumerproductsConvergenceandtestingdesignoptimisationeulerianmodellingtrainingFaceSizinginteractionformula1CFDSAEgranularflowHPCLayerMeshinginnovationlagrangianparticletrackingMeshControlsettingsindependencemineralsandprocessindustriesmultiphaseflowMultiphysicssimulationpredictionofaerodynamicflowsShearStressTransport(SST)turbulencemodelengineeringtransitionmodellingturbulence
Tags
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 3/7
AddinganadditionalvariableinCFXPre
thesetupforthecreationoftheAgeofAirVariable
ThesetupoftheAgeofAirVariableintheFluidModelstab
Airchangeeffectivenessisdefinedastheratiobetweenthenominaltimeconstantandtheaverageoftheageofairatareferenceheight
Thenominaltimeconstantistheratiobetweentheairvolumeofaspaceorbuildingdividedbytherateofoutdoorairsupply,whichistheincoming
volumetricflowrate.Meanresidencetime
Thereferencesurfaceistakenat1[m]abovethefloortoconsiderthebreathingzoneoftheenclosedspace.
ACEgivesameasureofthedistributionofairatthebreathingheightandavalueclosetounityindicatesthattheairdistributionwithinthezonehas
reachedperfectmixing.AccordingtotheGBCAsGreenStarrequirementsofIEQ2version2,awelldesignedceilingairdiffusionsystemwillachievean
ACEofnearunity(between0.8and1.2)atdesignairflowrates.AdisplacementventilationsystemtypicallyachievesanACEofgreaterthan1.2.
Howtodefinethevariable"AgeofAir"inANSYSCFX:
Tocalculatetheageofair,itisnecessarytocreateanewvariableundertheExpression,FunctionsandVariablestreeinCFXPre.Inthisexamplethenew
variablehasbeennamedAgeofAir.Ithasunitsofseconds.
CFXsolvesatransportequationforthenewlycreatedvariable.ThisisshownintheFluidModelstabofthedefaultdomain,undertheAdditionalVariable
Models.Astheageofairdoesnotdiffuse,itisnotnecessarytodefineaKinematicDiffusivityforit.Note,thatinANSYSCFX,turbulentdiffusionisincluded
bydefault.
Asthetransportequationisoftype'specific',itisnecessarytoaddasourcetermequaltothefluiddensity.Thisisdonebycreatingasubdomain(here
namedAoA),undertheDefaultDomainanddefiningthe'Source'tobedensityasbelow.
modellingmodelswallfunctions
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 4/7
OncecreatedthesubdomainisdisplayedintheDefaultDomaintree
Thesetupforthesourceinthesubdomain
DefiningaUserDefinedScalar(UDS)
ThelaststepinANSYSCFXistosetavalueforAgeofAiratanyboundaryconditionswhereaircanenterthedomain.Inthisexample,theAgeofAiratthe
diffuserandattheexhaust(foranyreturnflow)hasbeensetto0[s].Itisalsopossibletospecifynonzerovaluesifrecycledairisused.
Howtodefinethevariable"AgeofAir"inANSYSFluent
Intheprevioussectionwe'vedescribedthemethodtoincludeanadditionalvariable(intheformofatransportequation)forcalculatingtheageofairin
ANSYSCFX.Similarly,inANSYSFLUENTwecancalculatetheageofairthroughuseofauserdefinedscalar(UDS).Thisinvolvescreatesauserdefined
scalarfortheageofairthensolvingitsequationafterasolutionfortheflowfieldhasbeenobtained.
ThefollowingUDFcomputesthediffusivitytoaccountforturbulentdiffusion(whichisnotimplicitlydefinedasinCFX)andthesourceforthemeanageof
air.ThisfunctioncanbeexecutedasaninterpretedorcompiledUDF.
#*******************************************************************
#include"udf.h"
#include"prop.h"
#ThisdefinetheAoAdiffusivity
DEFINE_DIFFUSIVITY(mean_age_diff,c,t,i)
{
returnC_MU_EFF(c,t)/0.7
}
#Thisdefinesthesource
DEFINE_SOURCE(mean_age_source,c,t,dS,eqn)
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 5/7
ThesetupofthesourcetermfortheUDS
DefinitionoftheUDSattheboundaries
TheUserScalar0intheSolutionControlspanel.ByselectingitthesolverwillcalculateasolutiononlyfortheUDS.
DefinitionoftheUDSDiffusivityinthematerialdialogbox
{
realsource
source=C_R(c,t)
dS[eqn]=0
returnsource
}
#********************************************************************
AftertheUDFisinterpretedorcompiled,thenamespecifiedintheDEFINEmacroargument(e.g.,mean_age_diff)willbecomevisibleandselectableinthe
Create/EditMaterialsdialogboxinANSYSFLUENT
Thenextstepistodefinethescalarinthevolumeoffluidrepresentingthesolutiondomain,asshownintheFigurebelow.
Finallyitisnecessarytosetaboundaryconditionforthescalaratallinletsandoutlets.Inthisexampleuds0scalarvalues=0attheinlet(but,asinCFX,
canbesetatanonzerovalueifdesired).ThesetupforthenewvariableformeanageofairinFLUENTisnowcomplete.
ThisposthasaimedtoprovideanoverviewoftheageofairparameterinCFD,andsometipsonhowtocreateandpostprocesstheresultsformeanage
ofairinANSYSCFD.CFDsimulationsofthistypeareincreasinglybeingperformedbybuildingdesignersandengineerstobothmeetstringentbuilding
codesandhelpdifferentiatethesustainabilityandliveabilityaspectsoftheirdesign.Tothiseffect,ANSYSCFDprovidesengineerswithavaluabletoolto
assessthelevelsofthermalcomfortforbuildingoccupants,byexaminingparameterssuchastheairtemperatureandradiantheatloads,aswellasatool
toensureadequateairchangeeffectivenessbysolvingandassessingthemeanageofair.ForfurtherinformationortodiscussyourownCFDproblem
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 6/7
Privacy&Terms
SubmitComment
withinHVACindustry,pleaseleaveacommentbelow.
Sharethispost
1Comment
SubmitaComment
Youremailaddresswillnotbepublished.Requiredfieldsaremarked*
Name*
Email*
Website
Comment
YoumayusetheseHTMLtagsandattributes:
Author:LEAPCFDTeam
Post a Reply
Gregory CouerbeNOVEMBER7,2014
WithANSYSCFXSolver,iftheAdditionalVariableisdefinedas"Volumetric"insteadofas"Specific"thentheSourcetermistobesetto"1"
(insteadtobeequaltothedensity).Thedefinitionisthereforesimpler.
Typethetext
-
5/23/2015 ComputationalFluidDynamics(CFD)BlogLEAPAustralia&NewZealand|Tips&Tricks:CalculatingtheMeanAgeofAirforHVACsimulationsinA
http://www.computationalfluiddynamics.com.au/tipstrickscalculatingmeanageofairwithcfd/ 7/7
UA336027821
Categories Subscribe to Blog viaEmail
emailaddress
Subscribe
Recent Posts Contact Us
LEAPAustraliaPtyLtd
LeadingEngineeringApplicationProviders
ENQUIRIES:
Australia:1300882240
NewZealand:099777444
VisitLEAPWebsiteformoreinformationon
CFD,FEA,CAD,CAMandrelatedproducts,
plusourengineeringsoftwaretrainingand
webinarschedule.
2014Allrightsreserved
BusinessBenefits
Featured
IndustryFocus
TechnicalBenefits
Tips&Tricks
ExcitingadvancesinWindEngineering
usingANSYSCFD
UsingCFDtopredictflowgenerated
noiseandotheraeroacousticeffects
Smartgasappliancemanufacturersuse
risinggascoststotheircompetitive
advantage
SolvingComplexCombustion
ChallengeswithCFD
UsingCFDtoenhanceyourmixing
processanddrivedowncosts