|
[Sponsors] |
August 11, 2006, 04:36 |
Simple UDF problem
|
#1 |
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 |
|
August 11, 2006, 09:02 |
Re: Simple UDF problem
|
#2 |
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
|
|
August 11, 2006, 09:41 |
Re: Simple UDF problem
|
#3 |
Guest
Posts: n/a
|
Thanks alot, much appreciated!!
Leigh |
|
|
|
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 |