Ansys12CFX官方教程11B.ppt_第1页
Ansys12CFX官方教程11B.ppt_第2页
Ansys12CFX官方教程11B.ppt_第3页
Ansys12CFX官方教程11B.ppt_第4页
Ansys12CFX官方教程11B.ppt_第5页
已阅读5页,还剩14页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Chapter11CFXExpressionLanguage CEL IntroductiontoCFX CEL CFXExpressionLanguageAllowstheusertocreateequations canbefunctionsofsolution systemvariables thatcanbeusedinCFX PreandCFD PostExample CEL Thesyntaxrulesarethesameasthoseforconventionalarithmetic Operatorsarewrittenas addition subtraction multiplication division exponentiation Variablesandexpressionsarecasesensitive example tvs T Expressionsmustbedimensionallyconsistentforadditionandsubtractionoperations example 1 0 mm 0 45 yds isOK YoucannotaddvalueswithinconsistentdimensionsFractionalanddecimalpowersareallowed example a 1 2 1 0 0 5 Unitsofexpressionsarenotdeclared theyaretheresultofunitsintheexpression example a kgm 3 b ms 1 hasunitsof kgm 2s 1 SomeconstantsarealsoavailableinCELforuseinexpressions eConstant 2 7182818gAccelerationduetogravity 9 806 ms 2 piConstant 3 1415927RUniversalGasConstant 8314 5 m 2s 2K 1 CELRules NumericalfunctionsandoperatorsarealsoavailableinCELRight clickwhencreatingexpressionsforacompletelistCustomfunctionswithUserFortrancanalsobecreated FunctionOperand sDimensions x Operand sValuesResult sDimensionssin x AngleAnyDimensionlesscos x AngleAnyDimensionlesstan x AngleAnyDimensionlessasin x Dimensionless 1 x 1Angleacos x Dimensionless 1 x 1Angleatan x DimensionlessAnyAngleexp x DimensionlessAnyDimensionlessloge x Dimensionless01 m 1 0 Inthiscase iftheresultispreciselyequalto1 m theresultis res1 res2 2 step x is0fornegativex 1forpositivexand0 5forx 0 notethattan x isundefinedfornp 2wheren 1 3 5 bothxandymusthavethesamedimensions BuiltInFunctions xDirection1inReferenceCoordinateFrameyDirection2inReferenceCoordinateFramezDirection3inReferenceCoordinateFramerRadialspatiallocation r x 2 y 2 0 5thetaAngle arctan y x tTimeuVelocityinthexcoordinatedirectionvVelocityintheycoordinatedirectionwVelocityinthezcoordinatedirectionp absolute PressurekeTurbulentkineticenergyedTurbulenteddydissipationTTemperaturesstrnrShearstrainratedensityDensityrNoDimNon dimensionalradius rotatingframeonly viscosityDynamicViscosityCpSpecificHeatCapacityatConstantPressurecondThermalConductivityAVnameAdditionalVariablenamemfMassFraction SolvervariablesareavailableforuseinanyexpressionBelowisapartiallistoftheavailablesystemvariables Whencreatingexpressions right clicktoaccessafulllist Dependingonyourphysics somevariableswillnotbevalid e g youneedtosolverheattransfertouseT SolverVariables HowToCreateExpressions Toaddmoreexpressions similarmethodinCFD Post HowToCreateExpressions Right clickintheDefinitionwindowtoaccessVariables Constants Functions LocatorsandexistingExpressions where istheshearstrainrate CreatingavariableviscosityViscosityofashearthickeningfluid SolverVariableandExpressionNamearebothaccessedviatherightmousebutton CELinCFX Pre Example1 Alternatively anexpressioncanbeentereddirectlyintoafield CELinCFX Pre Example1 Usingan if FunctionSetinlettemperatureto300Kforthefirst19iterationsthenraiseitto320Kafter20iterations Solvervariableaccessedwiththerightmousebutton Note Onthe21stiterationinlettemp 310K CELinCFX Pre Example2 Youcanalsodefineyourown1 Dlinear or3 Dcloudofpointsinterpolationfunctions Importdatapointsoraddmanually UserFunctions Example Havingthetimestepchangewithiterationnumberasshownhere Timestepsizeisinseconds Continuedonnextslide UserFunctions Example IterationNumberisdimensionless Example Havingthetimestepchangewithiterationnumberasshownhere UserFunctions Example IntegratedquantitiescanbeusedinexpressionstoevaluatevariablesoversomelocationExamples CalculatetheareaaverageofCponanisosurface areaAve Cp iso1Massflowofparticularfluidthroughalocator oil massFlow slice1AvailableinCFX PreandCFD PostUsageismorestrictinCFX PreE g theargumentsuppliedtothefunctionmustbeavariable notanexpression syntaxmustalwayssupplyanamedlocationusedinthephysicsdefinitionAboundaryconditionname adomainname amonitorpointname etc Toreferencegeneralmeshregionsusethesyntax REGION Phases componentscanbereferencedusing E g Air Nitrogen massFlow outlet IntegratedQuantities IntegratedQuantities Somefunctionsallowanx yorzoperator area x boundarygivestheareaprojectedinthex directionforce z wallgivesthezcomponentoftheforceonthewallSeedocumentationforafulllistThesefunctionsalsoallowanoptionalcoordinateframe force z MyCoord wallgivesthezcomponentoftheforceonthewallusingthecoordinateframe MyCoord Eachfunctionrequireseither0or1argumentsareaAverequires1argument areaAve Temperature WallmassFlowrequires0arguments massFlow InletReturnvalueunitsdependontheargumentunitsareaAve Temperature WallwillreturnavaluewithunitsofTemperature BelowisapartiallistoffunctionsSeedocumentationforacompletelistRight clickingwhencreatinganexpressionwillshowmostfunctions IntegratedQuantities IntegratedQuantities IntegratedQuantities UsefulFunctions Theinside functionreturns1wheninsidethespecifiedlocationand0whenoutsideUsefultolimitthescopeofafunctiontoasubdomainorboundaryThestep functionreturn1whentheargumentispositiveand0whentheargumentisnegativeUsefulasanon offswitchif functioncanalsobeusedasaswitchareaAve andmassFlowAve areusedtoevaluatetheaverageofaquantityonalocationareaAve isanarea w

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论