




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 时尚配饰设计委托合同
- 城市更新项目厂房拆迁补偿协议范本
- 物权纠纷财产保全申请书范例
- 2025年综合类-企业管理咨询实务-第四章人力资源管理咨询历年真题摘选带答案(5套单选100题合辑)
- 2025年综合类-临床执业医师实践技能-职业素质综合练习历年真题摘选带答案(5套单选100题合辑)
- 2025年综合类-临床医学检验临床血液-白血病概述历年真题摘选带答案(5套单选100题合辑)
- 2025年综合类-中学教师-文化素养历年真题摘选带答案(5套单选100题合辑)
- 学校校内餐饮管理办法
- 2025年综合类-中医临床三基(护士)-内科护理历年真题摘选带答案(5卷单选题百道集合)
- 2025年综合类-世博会知识竞赛-世博会知识竞赛-汽车知识竞赛历年真题摘选带答案(5套单选100题合辑)
- 新型电力系统配电网网格化规划及应用
- 2025至2030中国扭蛋机行业市场发展现状及商业模式与投融资战略报告
- 2024年苏州昆山国创投资集团有限公司招聘笔试真题
- 2025年四川省成都市中考地理真题(原卷版)
- 检验科信息管理制度
- (甘肃高考卷)2024年甘肃省普通高中学业水平等级性考试高考物化生+政史地真题试卷及答案
- 国企员工考勤管理制度
- (2025)纪检监察业务知识考试题及含答案
- 2025年大模型应用:从提示工程到AI智能体报告
- 大连智能巡检机器人项目投资计划书
- 2025届广东省佛山市南海中学七下数学期末学业水平测试试题含解析
评论
0/150
提交评论