fluent UDF第五章 使用宏存取FLUENT解算器变量 |
您所在的位置:网站首页 › mem文件 › fluent UDF第五章 使用宏存取FLUENT解算器变量 |
第五章
使用宏存取 FLUENT 解算器变量
本章提供了可以存取 FLUENT 解算器中变量的预定义宏。
5.1 介绍
5.2 单元宏
5.3 面宏
5.4 几何图形宏
5.5 节点宏
5.6 多相宏
5.7 DPM 宏
5.8 NO x 宏
5.1 Introduction Fluent Inc. has provided you with a set of predefined functions that you can use to
access data from the FLUENT solver. These functions are primarily implemented in the
code as macros. The macros listed in this chapter are defined in header files such asmem.h, metric.h, and dpm.h. The udf.h file contains definitions for DEFINE macros,as well as #include directives for most of the solver access macro header files found inthis chapter. Therefore, including udf.h in your source code file will also result in theinclusion of solver access .h files.Some examples of solver data you can access using predefined macros are: _ solution variables and their derivatives (e.g., velocity, temperature, turbulencequantities) _ geometry variables (e.g., coordinates, areas, volumes) _ grid and node variables (e.g., node velocities) _ material property variables (e.g., density, viscosity, conductivity) _ discrete phase model variables
5.1 介绍
Fluent 公司提供了一系列预定义函数来从求解器中读写数据。这些函数以宏的形式存放在 代码中。 这章的所列出的宏是被定义在扩展名为 .h 文件里的。 例如 mem.h, metric.h, 和 dpm.h 。 在 udf.h 文件中包含了宏的定义和这章中所用到的大部分宏文件和它的说明。因此如果在你的原 程序中包含了 udf.h 文件,那么也就包含了各种的求解器读写文件了。( .h 文件)。
下面列出了一些使用预先设计的宏来读写数据类型:
——溶液变量及它们的组合变量(速度,温度,湍流量等)
——几何变量(坐标,面积,体积等)
——网格和节点变量(节点速度等)
——材料性质变量(密度,粘度,导电性等)
——分散相模拟变量。
For all types of data except specific heat, the word \access" refers to reading and writing data. In the case of specific heat, however, data can be read but cannot be modified. |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |