




已阅读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-2026学年赣美版(2024)小学美术三年级上册《别致版式集》教学设计
- 应急专干面试题库及答案
- 银行中层笔试题及答案
- 银行征信面试题目及答案
- 2025年人社局编外考试题库及答案
- 木制品厂安全生产培训课件
- 电工四级考试理论题库及答案
- 世纪英才教程课件
- 小学科学新教科版三年级上册全册教案(2025秋新版)
- 2025年综合基础知识题库(含答案)
- 七年级上册英语单词形象记忆法
- 小学生科普知识蜜蜂介绍PPT
- GB/T 24346-2009纺织品防霉性能的评价
- FZ/T 12045-2014喷气涡流纺粘胶纤维色纺纱
- 船舶电气知识培训课件
评论
0/150
提交评论