文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 互联网 > FLUENT UDS example
侵权投诉

FLUENT UDS example

10.5.1 Postprocessing Using User-Defined Scalars

Below is an example of a compiled UDF that computes the gradient of temperature to the fourth power, and stores its magnitude in a user-defined scalar. The computed temperature gradient can, for example, be subsequently used to plot contours. Although the practical application of this UDF is questionable, its purpose here is to show the methodology of computing gradients of arbitrary quantities that can be used for postprocessing.

/***********************************************************************/ /* UDF for computing the magnitude of the gradient of T^4 */

/***********************************************************************/

#include "udf.h"

/* Define which user-defined scalars to use. */

enum

{

T4,

MAG_GRAD_T4,

N_REQUIRED_UDS

};

DEFINE_ADJUST(adjust_fcn, domain)

{

Thread *t;

cell_t c;

face_t f;

/* Make sure there are enough user-defined scalars. */

if (n_uds < N_REQUIRED_UDS)

Internal_Error("not enough user-defined scalars allocated");

/* Fill first UDS with temperature raised to fourth power. */

thread_loop_c (t,domain)

{

if (NULL != THREAD_STORAGE(t,SV_UDS_I(T4)))

{

begin_c_loop (c,t)

{

real T = C_T(c,t);

C_UDSI(c,t,T4) = pow(T,4.);

}

end_c_loop (c,t)

第1页

你可能喜欢

热门文档

相关文档

  • Fluent6.3中UDS(用户自定义标量方程)的英文帮助文件

    Fluent6.3中UDS(用户自定义标量方程)的英文帮助文件_计算机软件及应用_IT/...combustion applications or for example in plasma-enhanced surface reaction ...

  • Fluent 常见问题

    21页 免费 Fluent-UDF宏大全 7页 2财富值 Fluent学习笔记 暂无评价 43页 2财富值 Fluent 经典问题 9页 2财富值 FLUENT UDS example 3页 10财富值...

  • 博研联盟_一个简单而完整的UDS例子

    博研联盟_一个简单而完整的UDS例子_能源/化工_工程科技_专业资料。fluent一个简单而完整的 UDS 例子标准方程形式: gearboy ? ?ρφ ? ? ?ψφ ? Γ ?φ...

  • fluent

    21 十一、 FLUENT UDS 感谢清洁能源网友提供的精彩演示,详细内容请上网查找源项和扩散项 1.准备工作 ? ? ? ??? ? 扩散系数1 源项的UDF 22 十一、 FLUENT ...

  • 利用FLUENT二次开发(UDF)辅助科学计算

    具体步骤三: FLUENT设置 具体步骤三: FLUENT设置 ? ? ? ? 1,启动FLUENT,读入CAS文件 1,启动FLUENT,读入CAS文件 2,编译编写好的UDF文件uds-flux.c 2,编译...

  • 利用FLUENT二次开发(UDF)辅助科学计算

    ? ? ? 1,启动FLUENT,读入CAS文件 2,编译编写好的UDF文件uds-flux.c 菜单:define>user-defined>functions>complied 先点击build编译,再点击load读入库. ? ? ...

  • Fluent_UDF_14.5_L04_UDS

    Fluent_UDF_14.5_L04_UDS_数学_自然科学_专业资料。Chapter 4 User Defined Memories and Scalars 14.5 Release User Defined Functions in ANSYS Fluent ? ...

  • FLUENT 高手进阶—Numerical Implentation of Low-Reyn...

    Fortunately, FLUENT’s User-Defined Subroutine (UDS) option allows the user...2k function of k and y, for example, ε w = ν 2 . Although FLUENT...

  • Fluent

    定义 FLUENT 输运方程 中的源项,用户自定义标量输运方程(UDS)中的源项扩散率...Example extern Domain *domain; DEFINE_ON_DEMAND(my_udf) { ... } is ...

  • 手把手教你怎么用UDS解自己的方程

    手把手教你怎么用UDS解自己的方程_计算机软件及应用_IT/计算机_专业资料。用FLuent软件求解UDS方程,还算有用手把手教你怎么用 UDS 解自己的方程 所谓 UDS,就是...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email