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

Simple UDF problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2006, 05:36
Default Simple UDF problem
  #1
Leigh
Guest
 
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, 10:02
Default Re: Simple UDF problem
  #2
cadaei
Guest
 
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, 10:41
Default Re: Simple UDF problem
  #3
Leigh
Guest
 
Posts: n/a
Thanks alot, much appreciated!!

Leigh
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 05:43
Simple UDF problem phil FLUENT 5 May 30, 2011 02:45
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 03:32
problem in compoile UDF h.daniyel FLUENT 5 June 12, 2008 06:06
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16


All times are GMT -4. The time now is 07:59.