c - UDF not appearing in Ansys Fluent
问题描述
I'm trying to prescribe simple motion in 2D, from right to left, at a constant velocity without the effect of gravity.
The code (shown below) was typed up in notepad and saved as a .c file which was then saved to C:\Programs\ANSYS19R3\v195\fluent\ntbin\win64. For some reason it's not appearing in the motion/UDF drop down box after being selected. This is my first time using C.
The code:
#include "udf.h"
static real velx = 0.0;
DEFINE_CG_MOTION(airfoil,dt,velocity,dtime)
{
NV_S(velocity, =, 0.0);
velx = -75;
velocity[0] = velx;
}
Thanks in advance!
解决方案
推荐阅读
- curl - 如何在 post curl 中发送请求正文
- flexbox - Tailwind Flex - 宽度全尺寸
- python - 对类内部的线程使用 Thread.join() 方法
- java - 如何使用 Java 将字符串列表写入 Amazon s3 文件
- github - 如何在 GitHub 操作中签出特定的子模块分支?
- javascript - Ckeditor5 - “小部件工具栏没有项目” {toolbarId: 'mediaEmbed'}
- prolog - Create Prolog 2d list filled with 0
- javascript - How to delete all messages that have URLs that are not www.youtube.com or www.twitter.com
- python - Reload flask app when code changes and idle
- r - Is there a way to view my active objects/files in Visual Studio Code similar to R Studio environment?