




已阅读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年高二物理上学期单元测试(机械振动)
- 2025年自动驾驶技术的自动驾驶测试规范
- 2025年心理测验大题题库及答案
- 2025年医院在岗考试试题及答案
- 2025年疫情防控宣传试题及答案
- 特殊客户-应急预案
- 回收手机合同(标准版)
- 2025年喷砂技能考试试题及答案
- 企业环保测试题及答案
- 保证质押借款合同(标准版)
- 流延膜设备安全操作培训课件
- 2025年放射诊疗培训试题及答案
- (零模)苏州市2026届高三年级期初阳光调研试卷 历史试卷(含答案)
- 九年级英语上学期第一次月考(广东卷)(原卷版)
- 码头生产调度管理办法
- 智能巡查机器人系统设计
- (2025年)江苏省南通市辅警协警笔试笔试模拟考试试题含答案
- 学堂在线 生活英语听说 章节测试答案
- 2024年陕西延长石油招聘真题
- 动态关系网络分析-洞察及研究
- 26.《方帽子店》课件
评论
0/150
提交评论