- 57
- 0
- 约2.01万字
- 约 16页
- 2018-06-08 发布于江苏
- 举报
第十四章 CEL表达式语言
第十四章?14:?CFX 表达式语言 (CEL)
CFX Expression Language (CEL) is an interpreted, declarative language that has been developed to enable CFX users to enhance their simulations without recourse to writing and linking separate external Fortran routines.
You can use CEL expressions anywhere a value is required for input in ANSYS CFX.
CEL can be used to:
Define material properties that depend on other variables.
Specify complex boundary conditions.
Add terms to the solved equations.
You can also monitor the value of an expression during the solution using monitor points.
Important: There is some CEL that works elsewhere in ANSYS CFX, but not in CFD-Post. Any expression created in CFX-Pre and used as a Design Exploration output parameter could potentially cause fatal errors during the Design Exploration run, so you should create all expressions for Design Exploration output parameters in CFD-Post.
14.1.1.?Values and Expressions
CEL can be used to generate both values and expressions. Values are dimensional (that is, with units) or dimensionless constants. The simplest type of definition is the dimensionless value, for example:
b = 3.743
You can also specify a value with units, for example:
g = 9.81 [m s^-2]
The dimensions of the quantities of interest for CFD calculations can be written in terms of mass, length, time, temperature and angle. The concept of units is fundamental to the behavior of values and expressions.
Values can be used directly, or they can be used as part of an expression. For example, you can use an expression to add two values together:
Expr_1?=?Value_1?+?Value_2
In this example, you may want to predefine?Value_1?and?Value_2, but this is not required. However, in order to add two quantities together,?they must have the same dimension; that is, it is meaningful to add a quantity in inches to one expressed in meters, but it is not meaningful to add one expressed in kilograms to one in square feet.
Expressions can also be functions of other (predefined) express
原创力文档

文档评论(0)