




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 吕梁学院《房屋建筑学课程设计》2024-2025学年第一学期期末试卷
- 湖南石油化工职业技术学院《公益慈善与政策创新》2024-2025学年第一学期期末试卷
- 2024年国家公务员考试申论试卷真题及答案(省级)
- 2025年高级炼钢工面试宝典常见面试题预测及解析
- 洛阳科技职业学院《中国新闻传播史》2024-2025学年第一学期期末试卷
- 新疆能源职业技术学院《计算机体系结构双语》2024-2025学年第一学期期末试卷
- 怀化职业技术学院《初等数论理论教学》2024-2025学年第一学期期末试卷
- 沧州职业技术学院《空间设计》2024-2025学年第一学期期末试卷
- 杭州师范大学《风险评估》2024-2025学年第一学期期末试卷
- 浙江外国语学院《交通管理与控制》2024-2025学年第一学期期末试卷
- 软件项目突发事件应急预案
- 调酒小摊设计方案(3篇)
- 虚拟现实在初中化学教学产品中的应用效果与设计创新(2025年)
- 2025-2026学年秋季第一学期学校德育工作安排表
- 2025年高速公路防汛应急演练方案(带演练脚本可直接使用)
- 2025年职业健康卫生知识培训考试试题及答案
- 游泳培训招生讲解
- 清洁生产审核报告模板
- 社区2025年开展的党委会议记录范文
- 房屋市政工程生产安全重大事故隐患排查表(2024版)
- 2011-2017国民经济行业分类标准转换对照表
评论
0/150
提交评论