ansys 12cfx 官方教程 11b

ansys 12cfx 官方教程 11b

ID:27695325

大小:1.44 MB

页数:19页

时间:2018-12-03

ansys 12cfx 官方教程 11b_第1页
ansys 12cfx 官方教程 11b_第2页
ansys 12cfx 官方教程 11b_第3页
ansys 12cfx 官方教程 11b_第4页
ansys 12cfx 官方教程 11b_第5页
资源描述:

《ansys 12cfx 官方教程 11b》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、Chapter11 CFXExpressionLanguage (CEL)IntroductiontoCFXCEL-CFXExpressionLanguageAllowstheusertocreateequations(canbefunctionsofsolution/systemvariables)thatcanbeusedinCFX-PreandCFD-PostExample:CELThesyntaxrulesarethesameasthoseforconventionalarithmeti

2、c.Operatorsarewrittenas:+(addition)-(subtraction)*(multiplication)/(division)^(exponentiation)Variablesandexpressionsarecasesensitive(example:tvs.T)Expressionsmustbedimensionallyconsistentforadditionandsubtractionoperations(example:1.0[mm]+0.45[yds]is

3、OK)YoucannotaddvalueswithinconsistentdimensionsFractionalanddecimalpowersareallowed(example:a^(1/2)+1.0^0.5)Unitsofexpressionsarenotdeclared–theyaretheresultofunitsintheexpression(example:a[kgm^-3]*b[ms^-1]hasunitsof[kgm^-2s^-1]Someconstantsarealsoava

4、ilableinCELforuseinexpressions:eConstant:2.7182818gAccelerationduetogravity:9.806[ms^-2]piConstant:3.1415927RUniversalGasConstant:8314.5[m^2s^-2K^-1]CELRulesNumericalfunctionsandoperatorsarealsoavailableinCELRight-clickwhencreatingexpressionsforacompl

5、etelistCustomfunctionswithUserFortrancanalsobecreatedFunctionOperand’sDimensions[x]Operand’sValuesResult’sDimensionssin(x)AngleAnyDimensionlesscos(x)AngleAnyDimensionlesstan(x)***AngleAnyDimensionlessasin(x)Dimensionless-1£x£1Angleacos(x)Dimensionless

6、-1£x£1Angleatan(x)DimensionlessAnyAngleexp(x)DimensionlessAnyDimensionlessloge(x)Dimensionless0

7、(x,y)****AnyAny[x]max(x,y)****AnyAny[x]step(x)*DimensionlessAnyDimensionless*iffunctionscontainatest,andtworesultoutcomes.Thefirstoutcome,res1willbereturnediftestevaluatestotrue.Iftestevaluatestofalse,res2isreturned.Considerthefollowingexample,wherewe

8、wishtosetvolumefractionto1whenXisgreaterthan1[m],and0ifXislessthan1[m]:if(x>1[m],1,0)Inthiscase,iftheresultispreciselyequalto1[m],theresultis(res1+res2)/2**step(x)is0fornegativex,1forpositivexand0.5forx=0.***notethattan(x)isundefinedfornp/2whe

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。