|
[Sponsors] |
January 18, 2007, 06:59 |
modification of UDF
|
#1 |
Guest
Posts: n/a
|
Hi
i have a udf that cause motion along x-direction of a solid body(2d problem). #include "udf.h" DEFINE_CG_MOTION(vel_comp,dt,vel,omega,time,dtime) { real freq = 34.0; real w = 2.0 * M_PI * freq; real Xcomp = 0.004511; NV_S(vel, = ,0.0); NV_S(omega, = ,0.0); vel[0] = w * Xcomp * cos (w * time); } howto change it cause the motion along y direction . please reply ammi reddy |
|
January 18, 2007, 11:47 |
Re: modification of UDF
|
#2 |
Guest
Posts: n/a
|
change vel[0] to vel [1]
sujith |
|
January 18, 2007, 22:35 |
Re: modification of UDF
|
#3 |
Guest
Posts: n/a
|
thanx it is working
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help needed on UDF for modification of default syamlal o' brien drag law | caai9 | Fluent UDF and Scheme Programming | 9 | August 20, 2014 09:52 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
Flowfield temperature modification through UDF | Hypersonicflow | Fluent UDF and Scheme Programming | 2 | April 18, 2011 14:27 |
Modification of turb. viscosity using UDF? | moon | FLUENT | 4 | October 2, 2003 12:19 |
UDF modification | merac | FLUENT | 4 | March 1, 2001 07:42 |