CFX 学习笔记

@CFX 学习笔记
Three Dimensional Interpolation帮助内容:

3D interpolation functions can be used to specify any quantity in CFX-Pre for which a standard CEL function (for example, sin, cos, step, and so on) can be used. The function is created by interpolating values between a “cloud of points” using a distance weighted average based on the closest three points. Common applications include setting an initial guess or a profile boundary condition from experimental data values.

For a 3D interpolation using the Interpolation (Data Input) option, you should set X, Y, and Z coordinate values and a single value associated with the coordinate. The coordinates and the value are interpreted in the local coordinate frame, which will depend on where the function is used. For example, if the function is used to set a boundary condition value, the coordinate frame selected for that boundary condition will apply. For details, see Coordinate Frames and Coordinate Frames in the CFX-Solver Modeling Guide. If the local coordinate frame is cylindrical, the units for the Argument List should still be those of a Cartesian frame.

Data for 3D interpolation can be entered manually or read from a file. If the file contains data in the profile data format, then it can be imported as described in Profile Boundary Conditions in the CFX-Solver Modeling Guide. Otherwise, numerical values for the 3D interpolation can be imported directly into CFX-Pre using the instructions below. Also see Importing Data from a File for more information on how to import the numerical values from a file.

Enter a unique function name that you will use when setting the value of a quantity using an expression.

Argument Units: Enter a comma separated list of the units used for the coordinates.

These will usually be coordinate axis dimensions (for example, [m], [cm], and so on).

Under Result Units, enter a single unit.

This unit should be a valid unit for the quantity you will be specifying (for example, [m s^-1] for a velocity).

Right-click in the window to import data from a file or delete an entry.

Enter a comma, separating X, Y, Z coordinate values.

The coordinates are interpreted in the local coordinate frame, which will depend on where the function is used.

Enter a Value associated with the Coordinate.

Click Add to add the point to the list (or Remove to remove a highlighted value from the list).

简单来说,从文件中导入数据有以下注意点:
1、新建User Functions,双击或右击进入编辑
选择Interpolation(Data Input),在下方数值表中右击选择导入数据
2、文件格式可以是.txt和.dat;
3、文本格式:
一行代表一组数据,分别为一个空间点的x,y,z坐标值和其相关值,数值之间用逗号或空格隔开

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值