CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error compiling UDF.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By darkluix88

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2014, 05:13
Exclamation Error compiling UDF.
  #1
Member
 
Join Date: Sep 2014
Posts: 43
Rep Power: 12
darkluix88 is on a distinguished road
Hi guys,
I want to create an udf to input a sinusoidal movement to a wall of a tank, so I have made a .c file with this code (found on web) for example:

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime)
{
vel[0]=(0.30823)*((1 - exp(-0.417*time))*1.0472*cos(1.0472*time) + ((0.417*exp(-0.417*time))*sin(1.0472*time)));
}

Now, I receive an error "nmake" (or something similar) when I try to load it and build a libudf. I'm using fluent 14 and to compile udf "Vs2012 Express for desktop" or "Dev-C++"...I've read by tutorials also something regarding folders and sdk commands' prompt, but I didn't understand :-(

can anyone help me to resolve this problem step to step, please?
Thanks in advance
darkluix88 is offline   Reply With Quote

Old   October 27, 2014, 06:55
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
Please provide the exact error message that you see when you try to compile.
pakk is offline   Reply With Quote

Old   October 27, 2014, 06:57
Default
  #3
Member
 
Join Date: Sep 2014
Posts: 43
Rep Power: 12
darkluix88 is on a distinguished road
Hi pakk,
thanks for the help but I've resolved the problem loading fluent with the prompt of commands
pakk likes this.
darkluix88 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 07:12
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 03:51.