ansys 12.0 cfx 官方教程 11a

ansys 12.0 cfx 官方教程 11a

ID:27708968

大小:1.30 MB

页数:19页

时间:2018-12-04

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

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

1、Chapter11 CFXExpressionLanguage (CEL)IntroductiontoCFXCEL-CFXExpressionLanguageAllowstheusertocreateequations(canbefunctionsofsolution/systemvariables)thatcanbeusedinCFX-PreandCFD-PostExample:CELThesyntaxrulesarethesameasthoseforconventionalarithmetic.Operatorsarewrittenas:+(addition)-(sub

2、traction)*(multiplication)/(division)^(exponentiation)Variablesandexpressionsarecasesensitive(example:tvs.T)Expressionsmustbedimensionallyconsistentforadditionandsubtractionoperations(example:1.0[mm]+0.45[yds]isOK)YoucannotaddvalueswithinconsistentdimensionsFractionalanddecimalpowersareallo

3、wed(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.1415927RUniversalGa

4、sConstant:8314.5[m^2s^-2K^-1]CELRulesNumericalfunctionsandoperatorsarealsoavailableinCELRight-clickwhencreatingexpressionsforacompletelistCustomfunctionswithUserFortrancanalsobecreatedFunctionOperand’sDimensions[x]Operand’sValuesResult’sDimensionssin(x)AngleAnyDimensionlesscos(x)AngleAnyDim

5、ensionlesstan(x)***AngleAnyDimensionlessasin(x)Dimensionless-1£x£1Angleacos(x)Dimensionless-1£x£1Angleatan(x)DimensionlessAnyAngleexp(x)DimensionlessAnyDimensionlessloge(x)Dimensionless0

6、*AnyAnyAny(res1andres2musthavethesamedimensions)min(x,y)****AnyAny[x]max(x,y)****AnyAny[x]step(x)*DimensionlessAnyDimensionless*iffunctionscontainatest,andtworesultoutcomes.Thefirstoutcome,res1willbereturnediftestevaluatestotrue.Iftestevaluatestofalse,res2isreturned.Considerthefollowingexam

7、ple,wherewewishtosetvolumefractionto1whenXisgreaterthan1[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. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。