CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Simple UDF problem

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 11, 2006, 04:36
Default Simple UDF problem
Posts: n/a
Hello all,

I have a small problem, that im sure is not difficult to solve, but i cant get my head around it. Im using the following udf to produce a vibrating wall.

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime) { vel[0]=0.00004*sin(5*time); } It all works fine on a vertical boundary moving normal to itself, but i dont know how to alter the code so that I can use it on a horizontal boundary moving normal to itself.

Any ideas? Thanks Leigh
  Reply With Quote

Old   August 11, 2006, 09:02
Default Re: Simple UDF problem
Posts: n/a
vel[0] represents the velocity in x-direction. change this to vel[1] or vel[2] for the y and z directions
  Reply With Quote

Old   August 11, 2006, 09:41
Default Re: Simple UDF problem
Posts: n/a
Thanks alot, much appreciated!!

  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Simple UDF problem phil FLUENT 5 May 30, 2011 01:45
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 02:32
problem in compoile UDF h.daniyel FLUENT 5 June 12, 2008 05:06
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 10:16

All times are GMT -4. The time now is 00:38.