TheUr-DefinedGasModel

更新时间:2023-06-04 04:14:04 阅读: 评论:0

Overview and Limitations of the Ur-Defined Real Gas Model The ur-defined real gas model (UDRGM) has been developed for the FLUENT coupled solvers to allow you to write your own custom real gas model to fit your particular modeling needs.
The UDRGM requires a library(库) of functions written in the C programing language. Moreover, there are certain coding requirements that need to be followed when writing the functions. Sample real gas function libraries are provided to assist you in writing your own UDRGM. When UDRGM functions are compiled, they will be grouped in a shared library which later will be loaded and linked with the FLUENT executable.
The procedure for using the UDRGM is defined below:
1.Define the real gas equation of state and all related thermodynamic and transport property equations.(定义实际气体状态方程,并且给出所有相关的热力学性质方程和输运性质方程)
2.Create a C source code file that conforms to the format defined in this ction.
(创造一个符合本节所定义的C的源代码文件。)
3.Start FLUENT and t up your ca file in the usual way.
启动FLUENT ,并按照通常的方式安排你的ca文件
4.Compile your UDRGM C library and build(创建)a shared
(共享的)library file (you can u the available compiled UDF utilities in either the graphical(图形) ur interface or the text command interface)
5.Load your newly created UDRGM library via the text
command menu using the define  ur-defined  real-gas text command.机器人外文翻译
Upon activating the UDRGM, the function library will now supply the fluid material properties for your ca.
6.Run your calculation
The following limitations exist for the UDRGM:
一对一口语1)The ur-defined real gas model can only be ud with the
weighcoupled solvers.(只能使用耦合求解器)
2)The ur-defined real gas model assumes that the fluid
material is a homogeneous, compressible substance (i.e.,
multipha behavior is not taken into account).(多项特性
不能使用过UDRGM)
Writing the UDRGM C Function Library
Creating a UDRGM C function library is reasonably (相当的)straightforward(易懂的); however, your code must make u of specific function names and macros, which will be described in detail below.
paycheckThe basic library requirements are as follows:
1)The code must contain the udf.h file inclusion directive(指
令)at the beginning of the source code. This allows the
definitions for DEFINE macros and other
FLUENT functions to be accessible during the compilation
(编辑)process.
2)The code must include at least one of the
UDF's DEFINE functions (i.e. DEFINE_ON_DEMAND)
to be able to u the compiled UDFs utility (e the sample
UDRGM codes provided below).
example是什么意思
3)Any values that are pasd to the solver by the UDRGM or
returned by the solver to the UDRGM are assumed to be in
fulfilledSI units.(求解过程中以及返回值必须是SI单位制)
4)Y ou must u the principle t(原则设置)of functions
listed below in your UDRGM library. The functions are
the mechanism (原理)by which your thermodynamic
property data are transferred to the FLUENT solver. Note
that ANYNAME can be any string of alphanumeric (文字无忧雅思网
与数字的字符)characters, and allows you to provide
unique names to your library functions.
Below, the UDRGM function names and argument lists are listed, followed by a short description of the function. Function inputs from the FLUENT solver consist of one or more of the
following variables:
注意:Y i[] is inactive at this time, and exists in the argument list for future u. Currently, it has a value of 1.0.
1.void ANYNAME_error(int err, char *f, char *msg)
prints error messages.
2. void ANYNAME_Setup(Domain *domain, char *filename,
int (*messagefunc)(char *format, ...), void (*errorfunc)(char *format, ...)) performs model tup and initialization. Can be ud to read data and parameters related to your UDRGM.
3.double ANYNAME_density(double T, double P, double yi[]) returns the value of density as a function of temperature and pressure. This is your equation of state.
注意:Since this function is called numerous times during each solver iteration, it is important to make this function as numerically efficient as possible.
4.double ANYNAME_specific_heat(double T, double Rho,
古奇英文double yi[])
returns the real gas specific heat at constant pressure as a function of temperature and density.
5.double ANYNAME_enthalpy(double T, double Rho, double yi[])
returns the enthalpy as a function of temperature and density.
6.double ANYNAME_entropy(double T, double Rho, double yi[])
returns the entropy as a function of temperature and density.
7.double ANYNAME_mw(double yi[])
六级阅读满分多少returns the fluid molecular weight.
8.double ANYNAME_speed_of_sound(double T, double Rho, double yi[])
returns the value of speed of sound as a function of temperature and density.
9.double ANYNAME_viscosity(double T, double Rho, double yi[])
德国留学费用
returns the value of dynamic viscosity as a function of temperature and density.
10.double ANYNAME_thermal_conductivity(double T, double Rho, double yi[])

本文发布于:2023-06-04 04:14:04,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/855688.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:求解   定义   方程   性质   使用
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图