©2012ANSYS,Inc.June17,20131Release14.514.5ReleaseTableofContentsUserDefinedFunctionsinANSYSFluent©2012ANSYS,Inc.June17,20132Release14.5TableofContents1.IntroductionL1-11.IntroductionL1-22.BriefIntroductiontoCL1-43.CFDProgramminginFLUENTandDatastructuresL1-82.CompilationandInterpretationofUDFsL2-11.CompilationversusinterpretationL2-22.DirectorystructureforcompiledUDFsL2-43.ComposingUDFsL3-11.DEFINE_PROFILEL3-22.DEFINE_SOURCEandsourcetermsL3-73.DEFINE_INITL3-124.DEFINE_ADJUSTL3-135.DEFINE_EXECUTE_AT_ENDL3-146.User-definedI/OfunctionsL3-157.DEFINE_PROPERTYL3-178.AdditionalMacrosL3-204.User-definedScalarsandUser-definedMemoriesL4-11.UDSL4-22.UDML4-63.ExecuteOnDemandL4-84.ExecuteOnLoadingL4-95.UDFsforDiscretePhaseModelL5-11.DPMDataStructureandMacrosL5-22.DPMFunctionsL5-66.UDFsforMultiphaseModelsL6-11.AdditionalDataStructureandMulti-domainconceptL6-22.AccessingSpecificPhaseDomainL6-53.LoopingmacrosforMultiphaseL6-97.ParallelizingUDFsL7-11.ParallelFLUENTArchitectureL7-22.ParallelizeaserialcodeL7-53.PartitioningL7-74.Inter-processCommunicationsL7-115.GlobalReductionL7-136.SummaryL7-17©2012ANSYS,Inc.June17,20133Release14.5Welcome!WelcometotheAdvancedANSYSFLUENTUDFtrainingcourse!ThistrainingcoursecoversthetopicsofhowtocustomizeANSYSFLUENTviauser-definedfunctionsItisintendedforexperiencedANSYSFLUENTusersCourseObjectives:–WhyandhowtocustomizetheFLUENTsolver–IntroductiontotheFLUENTdatastructureandutilitymacros–Introductiontothetop-levelmacrosforaccessingFLUENTdata–PowerCFDprogrammingwithuser-definedscalarsanduser-definedmemories–Accessingthedatastructureindiscretephasemodelandmultiphasemodels–ParallelizingUDFs